UNPKG

mbio-ui

Version:

Web components library containing lightweight, ready-to-use and framework-agnostic User Interface elements.

110 lines 3.5 kB
/* colors */ html, :host, *[theme="light"] { --neutral-1: 156, 167, 182; --neutral-2: 255, 255, 255; --accent-1: 70, 169, 269; --accent-1b: 70, 110, 250; --base-0: 255, 255, 255; --base-1: 234, 237, 239; --base-2: 245, 245, 245; --base-3: 255, 255, 255; --base-4: 255, 255, 255; --functional-blue: 20, 120, 220; --functional-red: 220, 40, 40; --functional-yellow: 220, 168, 40; --functional-green: 50, 168, 40; --text-1: rgb(109, 122, 141, .90); --text-2: rgb(156, 166, 182, .90); --text-3: rgba(255, 255, 255, .20); --shadow-1: 0 2px 8px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.05); } *[theme="dark"] { --neutral-1: 105, 105, 105; --neutral-2: 0, 0, 0; --accent-1: 70, 169, 269; --accent-1b: 70, 110, 250; --base-0: 18, 20, 22; --base-1: 8, 8, 8; --base-2: 18, 20, 22; --base-3: 18, 20, 22; --base-4: 18, 20, 22; --functional-blue: 20, 120, 220; --functional-red: 220, 40, 40; --functional-yellow: 220, 160, 40; --functional-green: 40, 160, 40; --text-1: rgb(109, 122, 141, .90); --text-2: rgb(156, 166, 182, .90); --text-3: rgba(255, 255, 255, .20); --shadow-1: 0 2px 8px rgba(0,0,0,.2), 0 1px 4px rgba(0,0,0,.15); } /* typography */ @font-face { font-family: 'md-icons'; src: local('Material Icons'), local('MaterialIcons-Regular'), url('./fonts/md-icons.ttf') format('truetype'); } @font-face { font-family: 'open-sans'; font-style: normal; font-weight: 400; src: local('Open Sans Regular'), local('OpenSans-Regular'), url('./fonts/open-sans-regular.woff2') format('woff2'), url('./fonts/open-sans-regular.woff') format('woff'); } @font-face { font-family: 'open-sans'; font-style: normal; font-weight: 600; src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url('./fonts/open-sans-semibold.woff2') format('woff2'), url('./fonts/open-sans-semibold.woff') format('woff'); } @font-face { font-family: 'open-sans'; font-style: normal; font-weight: 700; src: local('Open Sans Bold'), local('OpenSans-Bold'), url('./fonts/open-sans-bold.woff2') format('woff2'), url('./fonts/open-sans-bold.woff') format('woff'); } html, body { --body-1: normal 14px/24px 'open-sans'; --body-2: normal 12px/16px 'open-sans'; --header-1: bold 16px/24px 'open-sans'; --header-2: bold 14px/24px 'open-sans'; --transition-1: 0.1s all ease-out; --border-radius: 4px; --spacing-xs: calc(var(--spacing-s) / 2); --spacing-s: 8px; --spacing-m: calc(var(--spacing-s) * 1.5); --spacing-l: calc(var(--spacing-s) * 2);; font-family: 'open-sans', sans-serif; font-style: normal; font-weight: 400; font-size: 14px; line-height: 24px; color: var(--text-1); height: 100%; width: 100%; margin: 0; overflow: hidden; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; } /* scrollbar */ *::-webkit-scrollbar { width: 8px; height: 8px; background-color: transparent; visibility: hidden; } *::-webkit-scrollbar-track { background-color: rgba(var(--neutral-1), .05); border-radius: 8px; } *::-webkit-scrollbar-thumb { background-color: rgba(var(--neutral-1), .10); border-radius: 8px; } *::-webkit-scrollbar-thumb:active, *::-webkit-scrollbar-thumb:hover { background-color: rgba(var(--neutral-1), .20) } kor-swipe-actions::-webkit-scrollbar { display: none; }