UNPKG

@claromentis/design-system

Version:

Claromentis Design System Component Library

729 lines (645 loc) 14.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: "— "; } .popover { position: absolute; top: 0; left: 0; z-index: 1060; display: block; max-width: 276px; 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-style: normal; font-weight: 400; line-height: 1.5; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; white-space: normal; word-spacing: normal; line-break: auto; font-size: 0.875rem; word-wrap: break-word; background-color: #fff; background-clip: padding-box; border: 1px solid #e1e7ef; border-radius: 6px; } .popover .arrow { position: absolute; display: block; width: 1rem; height: 0.5rem; margin: 0 6px; } .popover .arrow::before, .popover .arrow::after { position: absolute; display: block; content: ""; border-color: transparent; border-style: solid; } .bs-popover-top, .bs-popover-auto[x-placement^=top] { margin-bottom: 0.5rem; } .bs-popover-top > .arrow, .bs-popover-auto[x-placement^=top] > .arrow { bottom: calc(-0.5rem - 1px); } .bs-popover-top > .arrow::before, .bs-popover-auto[x-placement^=top] > .arrow::before { bottom: 0; border-width: 0.5rem 0.5rem 0; border-top-color: rgba(0, 0, 0, 0.25); } .bs-popover-top > .arrow::after, .bs-popover-auto[x-placement^=top] > .arrow::after { bottom: 1px; border-width: 0.5rem 0.5rem 0; border-top-color: #fff; } .bs-popover-right, .bs-popover-auto[x-placement^=right] { margin-left: 0.5rem; } .bs-popover-right > .arrow, .bs-popover-auto[x-placement^=right] > .arrow { left: calc(-0.5rem - 1px); width: 0.5rem; height: 1rem; margin: 6px 0; } .bs-popover-right > .arrow::before, .bs-popover-auto[x-placement^=right] > .arrow::before { left: 0; border-width: 0.5rem 0.5rem 0.5rem 0; border-right-color: rgba(0, 0, 0, 0.25); } .bs-popover-right > .arrow::after, .bs-popover-auto[x-placement^=right] > .arrow::after { left: 1px; border-width: 0.5rem 0.5rem 0.5rem 0; border-right-color: #fff; } .bs-popover-bottom, .bs-popover-auto[x-placement^=bottom] { margin-top: 0.5rem; } .bs-popover-bottom > .arrow, .bs-popover-auto[x-placement^=bottom] > .arrow { top: calc(-0.5rem - 1px); } .bs-popover-bottom > .arrow::before, .bs-popover-auto[x-placement^=bottom] > .arrow::before { top: 0; border-width: 0 0.5rem 0.5rem 0.5rem; border-bottom-color: rgba(0, 0, 0, 0.25); } .bs-popover-bottom > .arrow::after, .bs-popover-auto[x-placement^=bottom] > .arrow::after { top: 1px; border-width: 0 0.5rem 0.5rem 0.5rem; border-bottom-color: #fff; } .bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^=bottom] .popover-header::before { position: absolute; top: 0; left: 50%; display: block; width: 1rem; margin-left: -0.5rem; content: ""; border-bottom: 1px solid #fff; } .bs-popover-left, .bs-popover-auto[x-placement^=left] { margin-right: 0.5rem; } .bs-popover-left > .arrow, .bs-popover-auto[x-placement^=left] > .arrow { right: calc(-0.5rem - 1px); width: 0.5rem; height: 1rem; margin: 6px 0; } .bs-popover-left > .arrow::before, .bs-popover-auto[x-placement^=left] > .arrow::before { right: 0; border-width: 0.5rem 0 0.5rem 0.5rem; border-left-color: rgba(0, 0, 0, 0.25); } .bs-popover-left > .arrow::after, .bs-popover-auto[x-placement^=left] > .arrow::after { right: 1px; border-width: 0.5rem 0 0.5rem 0.5rem; border-left-color: #fff; } .popover-header { padding: 1rem 1.2rem; margin-bottom: 0; font-size: 1rem; color: #2e3747; background-color: #fff; border-bottom: 1px solid #f2f2f2; border-top-left-radius: calc(0.3rem - 1px); border-top-right-radius: calc(0.3rem - 1px); } .popover-header:empty { display: none; } .popover-body { padding: 0.5rem 0.75rem; color: #2e3747; } .popover-wrapper { position: relative; display: block; } .popover-wrapper .inner { cursor: pointer; margin: 0 auto; } .popover-wrapper:after, .popover-wrapper:before { content: " "; background: #fff; bottom: -22px; left: 50%; margin-left: -9px; position: absolute; pointer-events: none; visibility: hidden; opacity: 0; transition: 0.2s; transform: translate(0, -5px) rotate(-45deg); } .popover-wrapper:before { z-index: 9999; width: 15px; height: 14px; } .popover-wrapper:after { border: 1px solid var(--ui-border-color-enabled); z-index: 0; width: 16px; height: 16px; box-shadow: 0px 0px 6px -1px rgba(0, 0, 0, 0.21); } .popover-wrapper .popover.bs-popover-bottom, .popover-wrapper .popover.bs-popover-auto[x-placement^=bottom] { top: 100%; right: 0; left: -220px; margin: 0 auto; width: 300px; visibility: hidden; opacity: 0; transform: translate(0, -5px); transition: 0.3s; margin-top: 13px; box-shadow: 0px 0px 6px -1px rgba(0, 0, 0, 0.21); } .popover-wrapper .popover.bs-popover-bottom.pump-left, .popover-wrapper .popover.pump-left.bs-popover-auto[x-placement^=bottom] { transform: none; left: 0; } .popover-wrapper .popover-header { border-bottom: 0; padding-bottom: 0; font-size: 18px; border-top-left-radius: 6px; border-top-right-radius: 6px; padding-top: 1.2rem; } .popover-wrapper .popover-header a { color: var(--body-color); } .popover-wrapper .popover-header a:hover { text-decoration: none; opacity: 0.8; } .popover-wrapper .popover-header a[href="javascript:void(0);"] { cursor: default; } .popover-wrapper .popover-header a[href="javascript:void(0);"]:hover { opacity: 1; } .popover-wrapper .popover-body { padding-bottom: 1.2rem; } .popover-wrapper .popover-body p { font-size: 14px; margin-bottom: 0.5em; } .popover-wrapper .popover-body p:last-of-type { margin-bottom: 0; } .popover-wrapper.in:after, .popover-wrapper.in:before, .popover-wrapper.in .popover.bs-popover-bottom, .popover-wrapper.in .popover.bs-popover-auto[x-placement^=bottom] { visibility: visible; opacity: 1; transform: translate(0); transition: 0.3s; } .popover-wrapper.in:after, .popover-wrapper.in:before { transform: translate(0) rotate(-45deg); transition: 0.5s; }