carbon-custom-elements
Version:
A Carbon Design System variant that's as easy to use as native HTML elements, with no framework tax, no framework silo.
13 lines (12 loc) • 9.28 kB
JavaScript
/**
* @license
*
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { css } from 'lit-element';
export default css([
"a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans','Helvetica Neue',Arial,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:'IBM Plex Mono',Menlo,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Courier,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-productive-heading-06-font-size,2.625rem);font-weight:var(--cds-productive-heading-06-font-weight,300);line-height:var(--cds-productive-heading-06-line-height,3.125rem);letter-spacing:var(--cds-productive-heading-06-letter-spacing,0)}h2{font-size:var(--cds-productive-heading-05-font-size,2rem);font-weight:var(--cds-productive-heading-05-font-weight,400);line-height:var(--cds-productive-heading-05-line-height,2.5rem);letter-spacing:var(--cds-productive-heading-05-letter-spacing,0)}h3{font-size:var(--cds-productive-heading-04-font-size,1.75rem);font-weight:var(--cds-productive-heading-04-font-weight,400);line-height:var(--cds-productive-heading-04-line-height,2.25rem);letter-spacing:var(--cds-productive-heading-04-letter-spacing,0)}h4{font-size:var(--cds-productive-heading-03-font-size,1.25rem);font-weight:var(--cds-productive-heading-03-font-weight,400);line-height:var(--cds-productive-heading-03-line-height,1.75rem);letter-spacing:var(--cds-productive-heading-03-letter-spacing,0)}h5{font-size:var(--cds-productive-heading-02-font-size,1rem);font-weight:var(--cds-productive-heading-02-font-weight,600);line-height:var(--cds-productive-heading-02-line-height,1.375rem);letter-spacing:var(--cds-productive-heading-02-letter-spacing,0)}h6{font-size:var(--cds-productive-heading-01-font-size,.875rem);font-weight:var(--cds-productive-heading-01-font-weight,600);line-height:var(--cds-productive-heading-01-line-height,1.125rem);letter-spacing:var(--cds-productive-heading-01-letter-spacing,.16px)}p{font-size:var(--cds-body-long-02-font-size,1rem);font-weight:var(--cds-body-long-02-font-weight,400);line-height:var(--cds-body-long-02-line-height,1.5rem);letter-spacing:var(--cds-body-long-02-letter-spacing,0)}a{color:#0062ff}em{font-style:italic}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@-webkit-keyframes rotate-end-p1{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes rotate-end-p1{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@-webkit-keyframes rotate-end-p2{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate-end-p2{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes init-stroke{0%{stroke-dashoffset:240}100%{stroke-dashoffset:40}}@keyframes init-stroke{0%{stroke-dashoffset:240}100%{stroke-dashoffset:40}}@-webkit-keyframes stroke-end{0%{stroke-dashoffset:40}100%{stroke-dashoffset:240}}@keyframes stroke-end{0%{stroke-dashoffset:40}100%{stroke-dashoffset:240}}.bx--loading{box-sizing:border-box;margin:0;padding:0;border:0;font-size:100%;font-family:inherit;vertical-align:baseline;-webkit-animation-name:rotate;animation-name:rotate;-webkit-animation-duration:690ms;animation-duration:690ms;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;width:10.5rem;height:10.5rem}.bx--loading *,.bx--loading :after,.bx--loading :before{box-sizing:inherit}.bx--loading svg circle{-webkit-animation-name:init-stroke;animation-name:init-stroke;-webkit-animation-duration:10ms;animation-duration:10ms;-webkit-animation-timing-function:cubic-bezier(.2,0,.38,.9);animation-timing-function:cubic-bezier(.2,0,.38,.9)}.bx--loading__svg{fill:transparent}.bx--loading__svg circle{stroke-width:8;stroke-linecap:butt;stroke-dasharray:240}.bx--loading__stroke{stroke:var(--cds-interactive-04,#0f62fe);stroke-dashoffset:40}.bx--loading--small .bx--loading__stroke{stroke-dashoffset:99}.bx--loading--stop{-webkit-animation:rotate-end-p1 .7s cubic-bezier(.2,0,1,.9) forwards,rotate-end-p2 .7s cubic-bezier(.2,0,1,.9) .7s forwards;animation:rotate-end-p1 .7s cubic-bezier(.2,0,1,.9) forwards,rotate-end-p2 .7s cubic-bezier(.2,0,1,.9) .7s forwards}.bx--loading--stop svg circle{-webkit-animation-name:stroke-end;animation-name:stroke-end;-webkit-animation-duration:.7s;animation-duration:.7s;-webkit-animation-timing-function:cubic-bezier(.2,0,1,.9);animation-timing-function:cubic-bezier(.2,0,1,.9);-webkit-animation-delay:.7s;animation-delay:.7s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.bx--loading--small{width:2rem;height:2rem}.bx--loading--small circle{stroke-width:12}.bx--loading--small .bx--loading__svg{stroke:var(--cds-interactive-04,#0f62fe)}.bx--loading__background{stroke:var(--cds-ui-03,#e0e0e0);stroke-dashoffset:0}.bx--loading-overlay{position:fixed;top:0;right:0;height:100%;width:100%;background-color:rgba(var(--cds-ui-02,#fff),.6);display:flex;justify-content:center;align-items:center;transition:background-color 720ms cubic-bezier(.4,.14,.3,1);z-index:z(\"overlay\")}.bx--loading-overlay--stop{display:none}@keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes rotate-end-p1{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes rotate-end-p2{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes init-stroke{0%{stroke-dashoffset:240}100%{stroke-dashoffset:40}}@keyframes stroke-end{0%{stroke-dashoffset:40}100%{stroke-dashoffset:240}}@-webkit-keyframes stroke{100%{stroke-dashoffset:0}}@keyframes stroke{100%{stroke-dashoffset:0}}.bx--inline-loading,:host(bx-inline-loading){display:flex;width:100%;min-height:2rem;align-items:center}.bx--inline-loading .bx--loading__svg circle,:host(bx-inline-loading) .bx--loading__svg circle{stroke-width:12}.bx--inline-loading .bx--loading__stroke,:host(bx-inline-loading) .bx--loading__stroke{stroke-dashoffset:99}.bx--inline-loading__text{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);line-height:var(--cds-label-01-line-height,1rem);letter-spacing:var(--cds-label-01-letter-spacing,.32px);color:var(--cds-text-02,#525252)}.bx--inline-loading__animation{position:relative;width:2rem;height:2rem;display:flex;justify-content:center;align-items:center}.bx--inline-loading__checkmark-container{fill:var(--cds-interactive-04,#0f62fe)}.bx--inline-loading__checkmark-container.bx--inline-loading__svg{width:.75rem;position:absolute;top:.75rem}.bx--inline-loading__checkmark-container[hidden]{display:none}.bx--inline-loading__checkmark{fill:none;stroke:var(--cds-interactive-04,#0f62fe);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;stroke-width:1.8;stroke-dasharray:12;stroke-dashoffset:12;-webkit-animation-name:stroke;animation-name:stroke;-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.bx--inline-loading--error{fill:var(--cds-support-01,#da1e28);width:1rem;height:1rem}.bx--inline-loading--error[hidden]{display:none}.bx--loading--small .bx--inline-loading__svg{stroke:var(--cds-interactive-04,#0f62fe)}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.bx--inline-loading__checkmark-container{top:1px;left:.5rem}.bx--inline-loading__checkmark{-webkit-animation:none;animation:none;stroke-dashoffset:0;stroke-dasharray:0}}:host(bx-inline-loading){min-height:2rem}:host(bx-inline-loading) .bx--inline-loading__checkmark-container{fill:var(--cds-interactive-04,#0f62fe);width:1rem;height:1rem;top:auto;position:relative}:host(bx-inline-loading) .bx--inline-loading--error{fill:var(--cds-support-01,#da1e28);width:1rem;height:1rem}",
]);