UNPKG

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.38 kB
/** * @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:inherit;font-size:100%;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:''}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 skeleton{0%{width:0%;left:0;right:auto;opacity:.3}20%{width:100%;left:0;right:auto;opacity:1}28%{width:100%;left:auto;right:0}51%{width:0%;left:auto;right:0}58%{width:0%;left:auto;right:0}82%{width:100%;left:auto;right:0}83%{width:100%;left:0;right:auto}96%{width:0%;left:0;right:auto}100%{width:0%;left:0;right:auto;opacity:.3}}@keyframes skeleton{0%{width:0%;left:0;right:auto;opacity:.3}20%{width:100%;left:0;right:auto;opacity:1}28%{width:100%;left:auto;right:0}51%{width:0%;left:auto;right:0}58%{width:0%;left:auto;right:0}82%{width:100%;left:auto;right:0}83%{width:100%;left:0;right:auto}96%{width:0%;left:0;right:auto}100%{width:0%;left:0;right:auto;opacity:.3}}.bx--content-switcher,:host(bx-content-switcher){display:flex;justify-content:space-evenly;width:100%;height:2.5rem}.bx--content-switcher--disabled{cursor:not-allowed}.bx--content-switcher-btn{box-sizing:border-box;margin:0;padding:0;border:0;font-size:100%;font-family:inherit;vertical-align:baseline;font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);line-height:var(--cds-body-short-01-line-height,1.125rem);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);outline:2px solid transparent;outline-offset:-2px;background-color:var(--cds-ui-01,#f4f4f4);display:inline-flex;align-items:center;width:100%;padding:.5rem 1rem;margin:0;white-space:nowrap;overflow:hidden;text-align:left;text-decoration:none;border:none;color:var(--cds-text-02,#525252);transition:all 70ms cubic-bezier(.2,0,.38,.9);position:relative}.bx--content-switcher-btn *,.bx--content-switcher-btn ::after,.bx--content-switcher-btn ::before{box-sizing:inherit}.bx--content-switcher-btn:focus{box-shadow:inset 0 0 0 2px var(--cds-focus,#0f62fe);z-index:3}.bx--content-switcher-btn:hover{cursor:pointer}.bx--content-switcher-btn:active,.bx--content-switcher-btn:hover{background-color:var(--cds-hover-ui,#e5e5e5);color:var(--cds-text-01,#161616);z-index:3}.bx--content-switcher-btn:disabled{color:var(--cds-disabled-02,#c6c6c6);background-color:var(--cds-disabled-01,#f4f4f4);pointer-events:none}.bx--content-switcher-btn:disabled:hover{cursor:not-allowed}.bx--content-switcher--light .bx--content-switcher-btn{background-color:var(--cds-ui-02,#fff)}.bx--content-switcher--light .bx--content-switcher-btn:hover{background-color:var(--cds-hover-light-ui,#e5e5e5)}.bx--content-switcher-btn:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.bx--content-switcher-btn:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.bx--content-switcher-btn::before{content:'';display:block;height:1rem;width:.0625rem;background-color:var(--cds-ui-03,#e0e0e0);position:absolute;z-index:2;left:0}.bx--content-switcher-btn:first-of-type::before{display:none}.bx--content-switcher--light .bx--content-switcher-btn::before{background-color:var(--cds-decorative-01,#e0e0e0)}.bx--content-switcher--light .bx--content-switcher--selected+.bx--content-switcher-btn::before,.bx--content-switcher--light .bx--content-switcher--selected::before,.bx--content-switcher--light .bx--content-switcher-btn:focus+.bx--content-switcher-btn::before,.bx--content-switcher--light .bx--content-switcher-btn:focus::before,.bx--content-switcher--light .bx--content-switcher-btn:hover+.bx--content-switcher-btn::before,.bx--content-switcher--light .bx--content-switcher-btn:hover::before,.bx--content-switcher--selected+.bx--content-switcher-btn::before,.bx--content-switcher--selected::before,.bx--content-switcher-btn:focus+.bx--content-switcher-btn::before,.bx--content-switcher-btn:focus::before,.bx--content-switcher-btn:hover+.bx--content-switcher-btn::before,.bx--content-switcher-btn:hover::before{background-color:transparent}.bx--content-switcher__icon{fill:var(--cds-text-02,#525252);transition:fill 70ms cubic-bezier(.2,0,.38,.9)}.bx--content-switcher__icon+span{margin-left:.5rem}.bx--content-switcher__label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.bx--content-switcher-btn:focus .bx--content-switcher__icon,.bx--content-switcher-btn:hover .bx--content-switcher__icon{fill:var(--cds-text-01,#161616)}.bx--content-switcher--light .bx--content-switcher-btn.bx--content-switcher--selected,.bx--content-switcher-btn.bx--content-switcher--selected{background-color:var(--cds-ui-05,#161616);color:var(--cds-inverse-01,#fff);z-index:3}.bx--content-switcher--light .bx--content-switcher-btn.bx--content-switcher--selected:disabled,.bx--content-switcher-btn.bx--content-switcher--selected:disabled{background-color:var(--cds-disabled-03,#8d8d8d);color:var(--cds-disabled-02,#c6c6c6)}.bx--content-switcher-btn.bx--content-switcher--selected .bx--content-switcher__icon{fill:var(--cds-inverse-01,#fff)}:host(bx-content-switcher-item){width:100%;outline:0}:host(bx-content-switcher-item) .bx--content-switcher-btn{height:100%}:host(bx-content-switcher-item) .bx--content-switcher-btn:first-child,:host(bx-content-switcher-item) .bx--content-switcher-btn:last-child{border-radius:0}:host(bx-content-switcher-item) .bx--content-switcher-btn::before{content:'';display:block;height:1rem;width:.0625rem;background-color:var(--cds-ui-03,#e0e0e0);position:absolute;z-index:2;left:0}:host(bx-content-switcher-item) .bx--content-switcher-btn.bx--content-switcher--selected::before,:host(bx-content-switcher-item) .bx--content-switcher-btn:focus::before,:host(bx-content-switcher-item) .bx--content-switcher-btn:hover::before{background-color:transparent}:host(bx-content-switcher-item[hide-divider]) .bx--content-switcher-btn::before{background-color:transparent}:host(bx-content-switcher-item:first-of-type) .bx--content-switcher-btn{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}:host(bx-content-switcher-item:first-of-type) .bx--content-switcher-btn::before{content:none}:host(bx-content-switcher-item:last-of-type) .bx--content-switcher-btn{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}", ]);