UNPKG

@anypoint-web-components/anypoint-dialog

Version:

A Material design dialog with compatibility with Anypoint platform

72 lines (61 loc) 1.58 kB
import { css } from 'lit-element'; export default css` :host { display: block; margin: 24px 40px; background: var(--anypoint-dialog-background-color, var(--primary-background-color)); color: var(--anypoint-dialog-color, var(--primary-text-color)); font-size: 1rem; border-radius: 4px; box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0,0,0,.12); } :host > ::slotted(*) { margin-top: 20px; padding: 0 24px; color: var(--anypoint-dialog-content-color, rgba(0,0,0,.6)); } :host > ::slotted(.no-padding) { padding: 0; } :host > ::slotted(*:first-child) { margin-top: 24px; } :host > ::slotted(*:last-child) { margin-bottom: 24px; } :host > ::slotted(h2), :host > ::slotted(.title) { position: relative; margin: 0; margin-top: 24px; margin-bottom: 24px; font-size: 1.25rem; line-height: 2rem; font-weight: 500; color: var(--anypoint-dialog-title-color, rgba(0,0,0,1)); } :host > ::slotted(.dialog-buttons), :host > ::slotted(.buttons) { position: relative; padding: 8px; margin: 0; display: flex; flex-direction: row; justify-content: flex-end; } :host([compatibility]) > ::slotted(h2), :host([compatibility]) > ::slotted(.title) { font-size: 2rem; padding: 20px 40px; margin: 0; background-color: #f9fafb; border-bottom: 1px solid #e8e9ea; font-family:"DIN Pro", "Open Sans", sans-serif; } :host([compatibility]) > ::slotted(*) { padding: 20px 40px; color: var(--anypoint-dialog-content-color, rgba(0,0,0,1)); } `;