@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
195 lines (158 loc) • 2.79 kB
CSS
/* 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 {
position: relative;
display: flex;
flex-direction: row;
margin: 1rem;
border-width: 1px;
border-style: solid;
border-color: var(--calcite-ui-border-2);
}
.container {
padding: 1rem;
}
:host([dismissed]),
:host([dismissed]) .container {
display: none;
}
:host([selected]) .container {
border-style: none;
margin: 0;
padding: 0;
}
/* 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 {
margin-bottom: 0.5rem;
}
.header .heading {
color: var(--calcite-ui-text-2);
padding: 0;
}
.container[hidden] {
display: none;
}
.content {
display: flex;
}
.info {
padding-top: 0;
padding-bottom: 0;
padding-left: 1rem;
padding-right: 1rem;
width: 70%;
}
.info:only-child {
width: 100%;
padding-left: 0;
padding-right: 0;
}
::slotted(p) {
margin-top: 0;
}
::slotted(a) {
outline-offset: 0;
outline-color: transparent;
transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
color: var(--calcite-ui-brand);
}
::slotted(a:focus) {
outline: 2px solid var(--calcite-ui-brand);
outline-offset: 2px;
}
.image-frame {
width: 25%;
}
.image-frame img {
max-width: 100%;
}
::slotted(img) {
max-width: 100%;
}