UNPKG

@claromentis/design-system

Version:

Claromentis Design System Component Library

665 lines (571 loc) 11.4 kB
@charset "UTF-8"; :root { --white: #FFF; --black: #000; --brand-blue: var(--blue-500); --brand-grey: var(--gray-500); /*-----------TEXT COLOURS-----------*/ --headings-color: var(--gray-800); --subheadings-color: var(--gray-700); --body-color: var(--gray-900); /*-----------UI COLOURS-----------*/ --ui-bg-color-enabled: var(--gray-100); --ui-border-color-enabled: var(--gray-400); --ui-bg-color-disabled: var(--gray-100); --ui-border-color-disabled: var(--gray-300); --ui-text-color-disabled: var(--gray-500); --ui-box-shadow-focus: var(--blue-200); --ui-border-color-focus: var(--blue-600); --ui-border-color-focus-hover: var(--gray-600); --ui-bg-color-focus-hover: var(--gray-200); --ui-color-active: var(--blue-600); --ui-bg-color-active: var(--blue-700); --ui-color-active-hover: var(--blue-700); --ui-bg-color-active-hover: var(--gray-200); --ui-bg-color-hover: var(--gray-100); --ui-border-color-hover: var(--gray-500); /*-----------INPUT UI COLOURS-----------*/ --input-bg-color-enabled: var(--gray-100); --input-border-color-enabled: var(--gray-400); --input-bg-color-dark-enabled: var(--gray-400); --input-bg-color-disabled: var(--gray-100); --input-border-color-disabled: var(--gray-300); --input-text-color-disabled: var(--gray-500); --input-box-shadow-focus: var(--blue-200); --input-border-color-focus: var(--blue-600); --input-border-color-focus-hover: var(--gray-600); --input-bg-color-focus-hover: var(--gray-200); --input-color-active: var(--blue-600); --input-bg-color-active: var(--blue-200); --input-color-active-hover: var(--blue-700); --input-bg-color-active-hover: var(--gray-200); --input-bg-color-hover: var(--gray-100); --input-border-color-hover: var(--gray-500); --input-bg-dark-color-hover: var(--input-border-color-hover); /*---------INVERTED COLOURS---------*/ --inverted-background: var(--gray-900); --inverted-border-color: var(--gray-700); } /** * This file contains global Sass functions, variables and mixins to use for * building components, including those from Bootstrap 4. * * No CSS should actually be defined here, otherwise any components that * include this file will output these classes. */ /*-----------BUTTONS-----------*/ /*-----------BADGE-----------*/ /*-----------CARD-----------*/ /*-----------DROPDOWN-----------*/ /*-----------POPOVER-----------*/ /*-----------PROGRESS BAR-----------*/ *, *::before, *::after { box-sizing: border-box; } html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; text-align: left; background-color: #fff; } [tabindex="-1"]:focus:not(:focus-visible) { outline: 0 !important; } hr { box-sizing: content-box; height: 0; overflow: visible; } h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; } p { margin-top: 0; margin-bottom: 1rem; } abbr[title], abbr[data-original-title] { text-decoration: underline; text-decoration: underline dotted; cursor: help; border-bottom: 0; text-decoration-skip-ink: none; } address { margin-bottom: 1rem; font-style: normal; line-height: inherit; } ol, ul, dl { margin-top: 0; margin-bottom: 1rem; } ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; } dt { font-weight: 700; } dd { margin-bottom: 0.5rem; margin-left: 0; } blockquote { margin: 0 0 1rem; } b, strong { font-weight: bolder; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } a { color: #007bff; text-decoration: none; background-color: transparent; } a:hover { color: #0056b3; text-decoration: underline; } a:not([href]):not([class]) { color: inherit; text-decoration: none; } a:not([href]):not([class]):hover { color: inherit; text-decoration: none; } pre, code, kbd, samp { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 1em; } pre { margin-top: 0; margin-bottom: 1rem; overflow: auto; -ms-overflow-style: scrollbar; } figure { margin: 0 0 1rem; } img { vertical-align: middle; border-style: none; } svg { overflow: hidden; vertical-align: middle; } table { border-collapse: collapse; } caption { padding-top: 0.75rem; padding-bottom: 0.75rem; color: #6c757d; text-align: left; caption-side: bottom; } th { text-align: inherit; text-align: -webkit-match-parent; } label { display: inline-block; margin-bottom: 0.5rem; } button { border-radius: 0; } button:focus:not(:focus-visible) { outline: 0; } input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; } button, input { overflow: visible; } button, select { text-transform: none; } [role=button] { cursor: pointer; } select { word-wrap: normal; } button, [type=button], [type=reset], [type=submit] { -webkit-appearance: button; } button:not(:disabled), [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled) { cursor: pointer; } button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner { padding: 0; border-style: none; } input[type=radio], input[type=checkbox] { box-sizing: border-box; padding: 0; } textarea { overflow: auto; resize: vertical; } fieldset { min-width: 0; padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; max-width: 100%; padding: 0; margin-bottom: 0.5rem; font-size: 1.5rem; line-height: inherit; color: inherit; white-space: normal; } progress { vertical-align: baseline; } [type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button { height: auto; } [type=search] { outline-offset: -2px; -webkit-appearance: none; } [type=search]::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; } output { display: inline-block; } summary { display: list-item; cursor: pointer; } template { display: none; } [hidden] { display: none !important; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { margin-bottom: 0.5rem; font-weight: 500; line-height: 1.2; } h1, .h1 { font-size: 2.5rem; } h2, .h2 { font-size: 2rem; } h3, .h3 { font-size: 1.75rem; } h4, .h4 { font-size: 1.5rem; } h5, .h5 { font-size: 1.25rem; } h6, .h6 { font-size: 1rem; } .lead { font-size: 1.25rem; font-weight: 300; } .display-1 { font-size: 6rem; font-weight: 300; line-height: 1.2; } .display-2 { font-size: 5.5rem; font-weight: 300; line-height: 1.2; } .display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; } .display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; } hr { margin-top: 1rem; margin-bottom: 1rem; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); } small, .small { font-size: 0.875em; font-weight: 400; } mark, .mark { padding: 0.2em; background-color: #fcf8e3; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; } .list-inline-item { display: inline-block; } .list-inline-item:not(:last-child) { margin-right: 0.5rem; } .initialism { font-size: 90%; text-transform: uppercase; } .blockquote { margin-bottom: 1rem; font-size: 1.25rem; } .blockquote-footer { display: block; font-size: 0.875em; color: #6c757d; } .blockquote-footer::before { content: "— "; } .badge { display: inline-block; padding: 4px 6px; font-size: calc(12px); font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .badge { transition: none; } } a.badge:hover, a.badge:focus { text-decoration: none; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .badge-pill { padding-right: 4px; padding-left: 4px; border-radius: 10rem; } .badge-primary { color: #fff; background-color: #4399df; } a.badge-primary:hover, a.badge-primary:focus { color: #fff; background-color: #2380cd; } a.badge-primary:focus, a.badge-primary.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(67, 153, 223, 0.5); } .badge-secondary { color: #212529; background-color: #edf2f7; } a.badge-secondary:hover, a.badge-secondary:focus { color: #212529; background-color: #cad9e7; } a.badge-secondary:focus, a.badge-secondary.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(237, 242, 247, 0.5); } .badge-success { color: #fff; background-color: #3ba06a; } a.badge-success:hover, a.badge-success:focus { color: #fff; background-color: #2d7b52; } a.badge-success:focus, a.badge-success.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(59, 160, 106, 0.5); } .badge-danger { color: #fff; background-color: #e24040; } a.badge-danger:hover, a.badge-danger:focus { color: #fff; background-color: #d11f1f; } a.badge-danger:focus, a.badge-danger.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(226, 64, 64, 0.5); } .badge-warning { color: #212529; background-color: #e8c554; } a.badge-warning:hover, a.badge-warning:focus { color: #212529; background-color: #e2b628; } a.badge-warning:focus, a.badge-warning.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(232, 197, 84, 0.5); } .badge-info { color: #fff; background-color: #4399df; } a.badge-info:hover, a.badge-info:focus { color: #fff; background-color: #2380cd; } a.badge-info:focus, a.badge-info.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(67, 153, 223, 0.5); } .badge-dark { color: #fff; background-color: #2e3747; } a.badge-dark:hover, a.badge-dark:focus { color: #fff; background-color: #1a1f28; } a.badge-dark:focus, a.badge-dark.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(46, 55, 71, 0.5); } .badge-light { color: #212529; background-color: #f8fafc; } a.badge-light:hover, a.badge-light:focus { color: #212529; background-color: #d3e3ee; } a.badge-light:focus, a.badge-light.focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(248, 250, 252, 0.5); } .badge { display: inline-flex; align-items: center; font-weight: 300; } .badge-gold { color: var(--body-color); background-image: linear-gradient(105deg, #ffcb19 0%, #f9b867 97%); } .badge-gold ::slotted(*) { --cla-icon-color: var(--body-color); } .badge-pill { padding-right: 8px; padding-left: 8px; } .badge-lg { padding: 8px 10px; } .dark { color: var(--white); } .light { color: var(--black); } ::slotted(*) { margin-right: 5px; }