UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

224 lines (185 loc) • 3.73 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. */ :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 { display: block; --calcite-tip-manager-height: 18vh; --calcite-tip-max-width: 540px; } :host([closed]) { display: none; } /* 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); } .header .heading { padding-left: 0.5rem; padding-right: 0.5rem; } .container { overflow: hidden; position: relative; padding-top: 0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; padding-bottom: 0; outline-offset: 0; outline-color: transparent; transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out; min-height: 150px; } .container:focus { outline: 2px solid var(--calcite-ui-brand); outline-offset: 2px; } .tip-container { margin-top: 0.25rem; overflow: auto; display: flex; justify-content: center; align-items: flex-start; outline-offset: 0; outline-color: transparent; transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out; animation-name: none; animation-duration: 150ms; animation-timing-function: cubic-bezier(0.215, 0.44, 0.42, 0.88); height: var(--calcite-tip-manager-height); } .tip-container:focus { outline: 2px solid var(--calcite-ui-brand); outline-offset: 2px; } ::slotted(calcite-tip) { border-style: none; max-width: var(--calcite-tip-max-width); } .tip-container--advancing { animation-name: tip-advance; } .tip-container--retreating { animation-name: tip-retreat; } /* Pagination Styles*/ .pagination { display: flex; align-items: center; justify-content: center; padding-top: 0.25rem; padding-bottom: 0.25rem; padding-left: 0; padding-right: 0; } .page-position { font-size: var(--calcite-font-size--2); line-height: 1rem; margin-top: 0; margin-bottom: 0; margin-left: 0.5rem; margin-right: 0.5rem; } /* @keyframes*/ @keyframes tip-advance { 0% { opacity: 0; transform: translate3d(50px, 0, 0) scale(0.99); } 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } } @keyframes tip-retreat { 0% { opacity: 0; transform: translate3d(-50px, 0, 0) scale(0.99); } 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }