@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
103 lines (86 loc) • 1.45 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.
*/
:root {
--calcite-popper-transition: 150ms ease-in-out;
}
:host([hidden]) {
display: none;
}
:host {
display: flex;
position: relative;
pointer-events: none;
--calcite-scrim-background: rgba(255, 255, 255, 0.75);
}
:host([theme=dark]) {
--calcite-scrim-background: rgba(0, 0, 0, 0.75);
}
@keyframes calcite-scrim-fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.scrim {
align-items: center;
animation: calcite-scrim-fade-in 250ms ease-in-out;
background-color: var(--calcite-scrim-background);
bottom: 0;
display: flex;
justify-content: center;
left: 0;
position: absolute;
right: 0;
top: 0;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: 2;
}
.content {
position: relative;
z-index: 1;
color: var(--calcite-ui-text-2);
}