@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
162 lines (135 loc) • 2.74 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([disabled]) {
pointer-events: none;
cursor: default;
}
.container {
background-color: var(--calcite-ui-foreground-1);
box-sizing: border-box;
font-family: var(--calcite-sans-family);
display: flex;
}
.container * {
box-sizing: border-box;
}
.content-container {
display: flex;
flex: 1 1 auto;
outline-offset: 0;
outline-color: transparent;
transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
align-items: stretch;
padding: 0;
color: var(--calcite-ui-text-2);
}
.content-container--button {
background-color: var(--calcite-ui-foreground-1);
border-style: none;
cursor: pointer;
outline-offset: 0;
outline-color: transparent;
transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
text-align: initial;
}
.content-container--button:hover {
background-color: var(--calcite-ui-foreground-2);
}
.content-container--button:hover .label,
.content-container--button:hover .description {
color: var(--calcite-ui-text-1);
}
.content-container--button:focus {
outline: 2px solid var(--calcite-ui-brand);
outline-offset: -2px;
}
.content {
justify-content: center;
display: flex;
flex: 1 1 auto;
flex-direction: column;
padding: 0.75rem;
}
.label,
.description {
font-weight: var(--calcite-font-weight-normal);
font-family: var(--calcite-sans-family);
font-size: var(--calcite-font-size--2);
word-wrap: break-word;
word-break: break-word;
}
.label {
color: var(--calcite-ui-text-1);
}
.description {
color: var(--calcite-ui-text-3);
}
.content-start,
.content-end {
flex: 0 1 auto;
pointer-events: none;
}
.actions-start,
.actions-end,
.content-start,
.content-end {
display: flex;
align-items: center;
}
.content-start ::slotted(calcite-icon),
.content-end ::slotted(calcite-icon) {
align-self: center;
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.actions-start ::slotted(calcite-action),
.actions-end ::slotted(calcite-action) {
align-self: stretch;
color: inherit;
}