UNPKG

@kelvininc/ui-components

Version:
172 lines (168 loc) 5.87 kB
/** HEADINGS **/ /** LABELS **/ /** SPANS **/ /** PARAGRAPHS **/ /** CODE/CONSOLE **/ @property --rotation { syntax: "<angle>"; initial-value: 0deg; inherits: false; } @keyframes rotate-border { to { --rotation: 360deg; } } :host { /** * @prop --badge-min-width: Badge's minimum width. * @prop --badge-max-width: Badge's maximum width. * @prop --badge-height: Badge's height. * @prop --badge-width: Badge's width. * @prop --badge-background-color-none: Badge's background color when state is none. * @prop --badge-background-color-info: Badge's background color when state is info. * @prop --badge-background-color-warning: Badge's background color when state is warning. * @prop --badge-background-color-error: Badge's background color when state is error. * @prop --badge-background-color-success: Badge's background color when state is success. * @prop --badge-warning-text-color: Badge's text color when state is warning. * @prop --badge-text-color-none: Badge's text color when state is none. * @prop --badge-text-color-info: Badge's text color when state is info. * @prop --badge-text-color-warning: Badge's text color when state is warning. * @prop --badge-text-color-error: Badge's text color when state is error. * @prop --badge-text-color-success: Badge's text color when state is success. */ --badge-min-width: 16px; --badge-max-width: fit-content; --badge-height: 16px; --badge-width: unset; } .badge { font-family: var(--kv-primary-font, "proxima-nova", sans-serif, "Arial"); font-size: 10px; font-weight: 400; font-stretch: normal; font-style: normal; line-height: 15px; letter-spacing: normal; text-transform: none; display: flex; align-items: center; justify-content: center; min-width: var(--badge-min-width); max-width: var(--badge-max-width); height: var(--badge-height); width: var(--badge-width); padding: 0 var(--kv-spacing, 4px); line-height: var(--badge-height); border-radius: 8px; } .badge--state-none { color: var(--badge-text-color-none); background-color: var(--badge-background-color-none); } .badge--state-info { color: var(--badge-text-color-info); background-color: var(--badge-background-color-info); } .badge--state-warning { color: var(--badge-text-color-warning); background-color: var(--badge-background-color-warning); } .badge--state-error { color: var(--badge-text-color-error); background-color: var(--badge-background-color-error); } .badge--state-success { color: var(--badge-text-color-success); background-color: var(--badge-background-color-success); } /** HEADINGS **/ /** LABELS **/ /** SPANS **/ /** PARAGRAPHS **/ /** CODE/CONSOLE **/ @property --rotation { syntax: "<angle>"; initial-value: 0deg; inherits: false; } @keyframes rotate-border { to { --rotation: 360deg; } } :host { /** * @prop --badge-min-width: Badge's minimum width. * @prop --badge-max-width: Badge's maximum width. * @prop --badge-height: Badge's height. * @prop --badge-width: Badge's width. * @prop --badge-background-color-none: Badge's background color when state is none. * @prop --badge-background-color-info: Badge's background color when state is info. * @prop --badge-background-color-warning: Badge's background color when state is warning. * @prop --badge-background-color-error: Badge's background color when state is error. * @prop --badge-background-color-success: Badge's background color when state is success. * @prop --badge-warning-text-color: Badge's text color when state is warning. * @prop --badge-text-color-none: Badge's text color when state is none. * @prop --badge-text-color-info: Badge's text color when state is info. * @prop --badge-text-color-warning: Badge's text color when state is warning. * @prop --badge-text-color-error: Badge's text color when state is error. * @prop --badge-text-color-success: Badge's text color when state is success. */ --badge-min-width: 16px; --badge-max-width: fit-content; --badge-height: 16px; --badge-width: unset; } .badge { font-family: var(--kv-primary-font, "proxima-nova", sans-serif, "Arial"); font-size: 10px; font-weight: 400; font-stretch: normal; font-style: normal; line-height: 15px; letter-spacing: normal; text-transform: none; display: flex; align-items: center; justify-content: center; min-width: var(--badge-min-width); max-width: var(--badge-max-width); height: var(--badge-height); width: var(--badge-width); padding: 0 var(--kv-spacing, 4px); line-height: var(--badge-height); border-radius: 8px; } .badge--state-none { color: var(--badge-text-color-none); background-color: var(--badge-background-color-none); } .badge--state-info { color: var(--badge-text-color-info); background-color: var(--badge-background-color-info); } .badge--state-warning { color: var(--badge-text-color-warning); background-color: var(--badge-background-color-warning); } .badge--state-error { color: var(--badge-text-color-error); background-color: var(--badge-background-color-error); } .badge--state-success { color: var(--badge-text-color-success); background-color: var(--badge-background-color-success); } :host { --badge-background-color-none: var(--kv-neutral-6, #3f3f3f); --badge-text-color-none: var(--kv-neutral-2, #e5e5e5); --badge-background-color-info: var(--kv-secondary-5, #8358fe); --badge-text-color-info: var(--kv-neutral-2, #e5e5e5); --badge-background-color-warning: var(--kv-warning, #ffc043); --badge-text-color-warning: var(--kv-neutral-0, #fff); --badge-background-color-error: var(--kv-error, #e11900); --badge-text-color-error: var(--kv-neutral-0, #fff); --badge-background-color-success: var(--kv-success, #05a357); --badge-text-color-success: var(--kv-neutral-0, #fff); }