@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
153 lines (126 loc) • 2.6 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;
}
:host {
/* Component spacing variables */
--calcite-icon-size: 1rem;
--calcite-spacing-eighth: ;
--calcite-spacing-quarter: 0.25rem;
--calcite-spacing-half: 0.5rem;
--calcite-spacing-three-quarters: 0.75rem;
--calcite-spacing: 1rem;
--calcite-spacing-plus-quarter: 1.25rem;
--calcite-spacing-plus-half: 1.5rem;
--calcite-spacing-double: 2rem;
--calcite-menu-min-width: 10rem;
--calcite-header-min-height: 3rem;
--calcite-footer-min-height: 3rem;
}
:root {
--calcite-popper-transition: 150ms ease-in-out;
}
:host([hidden]) {
display: none;
}
:host {
background-color: transparent;
display: block;
margin-bottom: var(--calcite-spacing-quarter);
}
:host(:last-child) {
margin-bottom: 0;
}
/* Shared styles for header elements */
.header {
margin: 0;
display: flex;
align-items: center;
justify-content: space-between;
color: var(--calcite-ui-text-2);
fill: var(--calcite-ui-text-2);
}
.heading {
padding: 0;
margin: 0;
font-weight: var(--calcite-font-weight-medium);
line-height: 1.5;
}
.header .heading {
flex: 1 0 auto;
padding: var(--calcite-spacing-half) var(--calcite-spacing-half);
}
h1.heading {
font-size: var(--calcite-font-size-2);
}
h2.heading {
font-size: var(--calcite-font-size-1);
}
h3.heading {
font-size: var(--calcite-font-size-0);
}
h4.heading,
h5.heading {
font-size: var(--calcite-font-size--1);
}
h3.heading {
font-size: 0.875rem;
line-height: 1.5;
color: var(--calcite-ui-text-3);
margin: var(--calcite-spacing-half) var(--calcite-spacing);
}
.container--indented {
margin-left: var(--calcite-spacing-plus-half);
}
.calcite--rtl.container--indented {
margin-left: 0;
margin-right: var(--calcite-spacing-plus-half);
}