@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
144 lines (119 loc) • 2.49 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 {
background-color: var(--calcite-ui-foreground-1);
box-sizing: border-box;
color: var(--calcite-ui-text-3);
display: inline-block;
transition-duration: 150ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
:host(:not([embed])) {
padding: 0.75rem;
box-shadow: 0 0 0 1px var(--calcite-ui-border-2);
}
:host(:not([embed])[href]:hover) {
cursor: pointer;
box-shadow: 0 0 0 2px var(--calcite-ui-brand);
}
:host(:not([embed])[href]:active) {
box-shadow: 0 0 0 3px var(--calcite-ui-brand);
}
:host([icon][heading]:not([description]):not([embed])) {
padding: 0;
}
:host([disabled]) {
opacity: var(--calcite-ui-opacity-disabled);
pointer-events: none;
}
.tile {
display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr));
grid-gap: 0.5rem;
gap: 0.5rem;
pointer-events: none;
}
.heading {
font-size: var(--calcite-font-size--1);
line-height: 1.375;
color: var(--calcite-ui-text-2);
transition-duration: 150ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
font-weight: var(--calcite-font-weight-medium);
pointer-events: none;
}
.large-visual {
align-items: center;
min-height: 12rem;
}
.large-visual .icon {
align-self: flex-end;
}
.large-visual .heading {
align-self: center;
}
.description {
font-size: var(--calcite-font-size--2);
line-height: 1.375;
color: var(--calcite-ui-text-3);
transition-duration: 150ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
pointer-events: none;
}
:host(:hover) .heading,
:host([active]) .heading {
color: var(--calcite-ui-text-1);
}
:host(:hover) .description,
:host([active]) .description {
color: var(--calcite-ui-text-2);
}