UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

214 lines (193 loc) 4.43 kB
@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); } } :root { --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor)); --calcite-internal-duration-factor: var(--calcite-duration-factor, 1); --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor)); --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor)); --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor)); } .calcite-animate { opacity: 0; animation-fill-mode: both; animation-duration: var(--calcite-animation-timing); } .calcite-animate__in { animation-name: in; } .calcite-animate__in-down { animation-name: in-down; } .calcite-animate__in-up { animation-name: in-up; } .calcite-animate__in-scale { animation-name: in-scale; } /** * Currently only used in Checkbox. */ :root { --calcite-popper-transition: var(--calcite-animation-timing); } :host([hidden]) { display: none; } :host{ margin: 0px; margin-bottom: 1px; box-sizing: border-box; display: flex; align-items: stretch; background-color: var(--calcite-ui-foreground-1); font-size: var(--calcite-font-size--1); line-height: 1rem; color: var(--calcite-ui-text-1); --tw-shadow: 0 1px 0 var(--calcite-ui-border-3); --tw-shadow-colored: 0 1px 0 var(--tw-shadow-color); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); transition: background-color var(--calcite-animation-timing); animation: calcite-fade-in var(--calcite-animation-timing); } :host *{ box-sizing: border-box; } .label{ display: flex; flex: 1 1 auto; cursor: pointer; align-items: center; background-color: transparent; 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; } .label:hover{ background-color: var(--calcite-ui-foreground-2); } :host([non-interactive]:hover){ background-color: var(--calcite-ui-foreground-1); } :host([non-interactive]) .label, :host([non-interactive]) .icon{ pointer-events: none; } .icon{ margin-top: 0px; margin-bottom: 0px; display: flex; cursor: pointer; align-items: center; padding: 0.25rem; color: var(--calcite-ui-brand); flex: 0 0 auto; line-height: 0; } .icon:hover{ background-color: var(--calcite-ui-foreground-2); } .icon-dot{ display: flex; width: 1.5rem; align-items: center; padding: 0.5rem; } .icon-dot:before{ opacity: 0; content: "•"; } .icon calcite-icon{ opacity: 0; } :host([selected]) .icon-dot:before, :host([selected]) .icon calcite-icon { transition: opacity var(--calcite-animation-timing); opacity: 1; } .text-container{ pointer-events: none; display: flex; flex-direction: column; flex-wrap: nowrap; padding-top: 0.5rem; padding-bottom: 0.5rem; padding-left: 0.75rem; padding-right: 0.75rem; font-size: var(--calcite-font-size--2); line-height: 1.375; word-wrap: break-word; word-break: break-word; overflow: hidden; } .title{ font-weight: var(--calcite-font-weight-normal); color: var(--calcite-ui-text-1); } .description{ margin-top: 0.125rem; font-weight: var(--calcite-font-weight-normal); color: var(--calcite-ui-text-3); } .actions{ margin: 0px; display: flex; flex: 0 1 auto; align-items: stretch; justify-content: flex-end; } .actions--start ~ .label { padding-inline-start: 0.25rem; } :host([disabled]){ pointer-events: none; cursor: default; -webkit-user-select: none; user-select: none; opacity: var(--calcite-ui-opacity-disabled); } :host([disabled]) ::slotted([calcite-hydrated][disabled]), :host([disabled]) [calcite-hydrated][disabled] { /* prevent opacity stacking */ opacity: 1; }