@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
188 lines (159 loc) • 3.46 kB
CSS
@charset "UTF-8";
/* 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 {
align-items: stretch;
display: flex;
margin: 0 0 1px 0;
color: var(--calcite-ui-text-1);
transition: background-color 150ms ease-in-out;
animation: calcite-fade-in 150ms ease-in-out;
box-shadow: 0 1px 0 var(--calcite-ui-border-3);
--calcite-icon-dot-size: 16px;
}
:host(:hover) {
background-color: var(--calcite-ui-foreground-2);
}
.icon {
align-items: center;
color: var(--calcite-ui-brand);
display: flex;
flex: 0 0 auto;
line-height: 0;
margin: 0 var(--calcite-spacing-half);
opacity: 0;
}
.icon-dot {
width: calc(var(--calcite-icon-dot-size) / 2);
margin: calc(var(--calcite-icon-dot-size) / 2);
}
.icon-dot:before {
content: "•";
}
:host([selected]) .icon {
transition: opacity 150ms ease-in-out;
opacity: 1;
}
.label {
background-color: transparent;
display: flex;
flex: 1 1 auto;
padding: var(--calcite-spacing-three-quarters);
align-items: center;
cursor: pointer;
outline-offset: 0;
outline-color: transparent;
transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
}
.label:focus {
outline: 2px solid var(--calcite-ui-blue-1);
outline-offset: -2px;
}
.text-container {
display: flex;
flex-flow: column nowrap;
overflow: hidden;
pointer-events: none;
padding: 0 var(--calcite-spacing-quarter);
}
.title {
font-size: 0.75rem;
line-height: 1.5;
word-wrap: break-word;
word-break: break-word;
color: var(--calcite-ui-text-1);
}
.description {
color: var(--calcite-ui-text-3);
font-family: var(--calcite-code-family);
margin-top: var(--calcite-spacing-quarter);
font-size: 0.75rem;
line-height: 1.5;
word-wrap: break-word;
word-break: break-word;
}
.actions {
align-items: stretch;
display: flex;
flex: 0 0 auto;
justify-self: flex-end;
margin: 0;
}
.actions--start ~ .label {
padding-left: var(--calcite-spacing-quarter);
}
.calcite--rtl .actions--start ~ .label {
padding-left: unset;
padding-right: var(--calcite-spacing-quarter);
}