@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
127 lines (106 loc) • 2.12 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 {
margin-bottom: 1px;
display: flex;
box-shadow: 0 1px 0 var(--calcite-ui-border-3);
transition: background-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}
calcite-pick-list-item {
box-shadow: none;
flex-grow: 1;
position: relative;
margin: 0;
}
:host([active]),
:host([selected]) {
box-shadow: 0 0 0 1px var(--calcite-ui-brand);
}
.handle {
display: flex;
align-items: center;
justify-content: center;
padding-top: 0;
padding-bottom: 0;
padding-left: 0.25rem;
padding-right: 0.25rem;
background-color: transparent;
border-style: none;
color: var(--calcite-ui-text-1);
cursor: move;
color: var(--calcite-ui-border-1);
outline-offset: 0;
outline-color: transparent;
transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
}
.handle:hover {
background-color: var(--calcite-ui-foreground-2);
color: var(--calcite-ui-text-1);
}
.handle:focus {
outline: 2px solid var(--calcite-ui-brand);
outline-offset: -2px;
}
.handle--activated {
background-color: var(--calcite-ui-foreground-3);
color: var(--calcite-ui-text-1);
}
.handle calcite-icon {
color: inherit;
}