@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
177 lines (149 loc) • 2.88 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;
}
:root {
--calcite-popper-transition: 150ms ease-in-out;
}
:host([hidden]) {
display: none;
}
:host {
align-items: stretch;
display: flex;
color: var(--calcite-ui-text-1);
box-shadow: 0 1px 0 var(--calcite-ui-border-3);
margin: 0;
margin-bottom: 1px;
transition: background-color 150ms ease-in-out;
animation: calcite-fade-in 150ms ease-in-out;
}
:host(:hover) {
background-color: var(--calcite-ui-foreground-2);
}
.icon {
align-items: center;
display: flex;
margin-top: 0;
margin-bottom: 0;
margin-left: 0.5rem;
margin-right: 0.5rem;
opacity: 0;
cursor: pointer;
color: var(--calcite-ui-brand);
flex: 0 0 auto;
line-height: 0;
}
.icon-dot {
width: 0.5rem;
margin: 0.5rem;
}
.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-left: 0.75rem;
padding-right: 0.75rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
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-brand);
outline-offset: -2px;
}
.text-container {
display: flex;
overflow: hidden;
pointer-events: none;
padding-top: 0;
padding-bottom: 0;
padding-left: 0.25rem;
padding-right: 0.25rem;
font-size: var(--calcite-font-size--2);
line-height: 1.375;
word-wrap: break-word;
word-break: break-word;
flex-flow: column nowrap;
}
.title {
color: var(--calcite-ui-text-1);
}
.description {
margin-top: 0.125rem;
color: var(--calcite-ui-text-3);
}
.actions {
align-items: stretch;
display: flex;
justify-content: flex-end;
margin: 0;
flex: 0 0 auto;
}
.actions--start ~ .label {
padding-left: 0.25rem;
}
.calcite--rtl .actions--start ~ .label {
padding-left: unset;
padding-right: 0.25rem;
}