@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
128 lines (106 loc) • 1.88 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: 1 1 auto;
align-items: stretch;
background-color: transparent;
width: 100%;
overflow: hidden;
position: relative;
}
:host .frame {
display: flex;
flex: 1 1 auto;
align-items: stretch;
width: 100%;
padding: 0;
margin: 0;
flex-direction: column;
position: relative;
}
:host ::slotted(calcite-panel) {
height: 100%;
}
:host .frame--advancing {
animation: calcite-frame-advance 150ms ease-in-out;
}
:host .frame--retreating {
animation: calcite-frame-retreat 150ms ease-in-out;
}
@keyframes calcite-frame-advance {
0% {
--bg-opacity: 0.5;
transform: translate3d(50px, 0, 0);
}
100% {
--bg-opacity: 1;
transform: translate3d(0, 0, 0);
}
}
@keyframes calcite-frame-retreat {
0% {
--bg-opacity: 0.5;
transform: translate3d(-50px, 0, 0);
}
100% {
--bg-opacity: 1;
transform: translate3d(0, 0, 0);
}
}