UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

96 lines (80 loc) 1.46 kB
/* 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 { display: flex; flex-direction: column; box-sizing: border-box; background-color: var(--calcite-ui-foreground-1); color: var(--calcite-ui-text-2); font-size: var(--calcite-font-size-1); } ::slotted(calcite-action) { display: flex; outline-offset: 0; outline-color: transparent; transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out; margin: 0.125rem; } ::slotted(calcite-action[active]) { outline: 2px solid var(--calcite-ui-brand); outline-offset: 2px; outline-offset: 0px; } .menu-button { align-self: stretch; flex: 0 1 auto; height: 100%; position: relative; } .menu { flex-direction: column; flex-wrap: nowrap; outline: 2px solid transparent; outline-offset: 2px; }