@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
123 lines (100 loc) • 1.69 kB
CSS
/* mixins & extensions */
@keyframes in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes in-down {
0% {
opacity: 0;
transform: translate3D(0, -5px, 0);
}
100% {
opacity: 1;
transform: translate3D(0, 0, 0);
}
}
@keyframes in-up {
0% {
opacity: 0;
transform: translate3D(0, 5px, 0);
}
100% {
opacity: 1;
transform: translate3D(0, 0, 0);
}
}
@keyframes in-scale {
0% {
opacity: 0;
transform: scale3D(0.95, 0.95, 1);
}
100% {
opacity: 1;
transform: scale3D(1, 1, 1);
}
}
/**
* Currently only used in Checkbox.
*/
:host {
/* Base ":host" styles for the component */
box-sizing: border-box;
background-color: var(--calcite-ui-foreground-1);
color: var(--calcite-ui-text-2);
font-size: var(--calcite-font-size--1);
}
:host * {
box-sizing: border-box;
}
:root {
--calcite-popper-transition: 150ms ease-in-out;
}
:host([hidden]) {
display: none;
}
:host {
display: flex;
flex-direction: column;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 0;
padding-right: 0;
--columns: 3;
}
:host([columns="1"]) {
--columns: 1;
}
:host([columns="2"]) {
--columns: 2;
}
:host([columns="3"]) {
--columns: 3;
}
:host([columns="4"]) {
--columns: 4;
}
:host([columns="5"]) {
--columns: 5;
}
:host([columns="6"]) {
--columns: 6;
}
:host(:first-child) {
padding-top: 0;
}
:host([layout=horizontal]) {
flex-direction: row;
}
:host([layout=grid]) {
background-color: var(--calcite-ui-background);
display: grid;
grid-gap: 1px;
gap: 1px;
place-content: stretch;
padding: 1px;
grid-template-columns: repeat(var(--columns), auto);
}