@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
96 lines (78 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;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
border: 1px solid var(--calcite-ui-border-1);
background-color: var(--calcite-ui-foreground-1);
}
:host([layout=vertical]) {
flex-direction: column;
align-items: start;
align-self: flex-start;
}
:host([width=full]) {
width: 100%;
}
:host([width=full]) ::slotted(calcite-radio-group-item) {
flex: 1 1 auto;
}
:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item) {
justify-content: start;
}
::slotted(calcite-radio-group-item[checked]),
::slotted(calcite-radio-group-item:focus) {
z-index: 0;
}
:host([disabled]) {
opacity: var(--calcite-ui-opacity-disabled);
pointer-events: none;
}