UNPKG

preact-material-components

Version:
160 lines (145 loc) 4.43 kB
/*! Material Components for the Web Copyright (c) 2018 Google Inc. License: MIT */ .mdc-dialog { display: flex; position: fixed; top: 0; left: 0; align-items: center; justify-content: center; width: 100%; height: 100%; visibility: hidden; z-index: 5; } .mdc-dialog__backdrop { background-color: rgba(0, 0, 0, 0.87); /* @alternate */ background-color: var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, 0.87)); position: fixed; top: 0; left: 0; align-items: center; justify-content: center; width: 100%; height: 100%; opacity: 0; z-index: -1; } .mdc-dialog__surface { 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, 0.12); background-color: #fff; /* @alternate */ background-color: var(--mdc-theme-background, #fff); display: inline-flex; flex-direction: column; width: calc(100% - 30px); min-width: 640px; max-width: 865px; -webkit-transform: translateY(150px) scale(0.8); transform: translateY(150px) scale(0.8); border-radius: 2px; opacity: 0; } .mdc-dialog[dir="rtl"] .mdc-dialog__surface, [dir="rtl"] .mdc-dialog .mdc-dialog__surface { text-align: right; } .mdc-dialog__header { display: flex; align-items: center; padding: 24px 24px 0; } .mdc-dialog[dir="rtl"] .mdc-dialog__header, [dir="rtl"] .mdc-dialog .mdc-dialog__header { text-align: right; } .mdc-dialog__header__empty { padding: 0; } .mdc-dialog__header__title { font-family: Roboto, sans-serif; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; font-size: 1.25rem; line-height: 2rem; font-weight: 500; letter-spacing: 0.0125em; text-decoration: inherit; text-transform: inherit; flex: 1; margin: 0; } .mdc-dialog__body { color: rgba(0, 0, 0, 0.54); /* @alternate */ color: var(--mdc-theme-text-secondary-on-light, rgba(0, 0, 0, 0.54)); font-family: Roboto, sans-serif; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; font-size: 1rem; line-height: 1.5rem; font-weight: 400; letter-spacing: 0.03125em; text-decoration: inherit; text-transform: inherit; margin-top: 20px; padding: 0 24px 24px; } .mdc-dialog__body--scrollable { max-height: 195px; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1); overflow-x: auto; overflow-y: scroll; -webkit-overflow-scrolling: touch; } .mdc-dialog__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding: 8px; } .mdc-dialog__footer__button { /* @noflip */ margin-left: 0; /* @noflip */ margin-right: 8px; } [dir="rtl"] .mdc-dialog__footer__button, .mdc-dialog__footer__button[dir="rtl"] { /* @noflip */ margin-left: 8px; /* @noflip */ margin-right: 0; } .mdc-dialog__footer__button:last-child { /* @noflip */ margin-left: 0; /* @noflip */ margin-right: 0; } [dir="rtl"] .mdc-dialog__footer__button:last-child, .mdc-dialog__footer__button:last-child[dir="rtl"] { /* @noflip */ margin-left: 0; /* @noflip */ margin-right: 0; } .mdc-dialog__action:not(:disabled) { color: #018786; /* @alternate */ color: var(--mdc-theme-secondary, #018786); } @media (max-width: 640px) { .mdc-dialog { min-width: 280px; } .mdc-dialog__surface { min-width: 280px; } .mdc-dialog__body { line-height: 24px; } } .mdc-dialog--animating { visibility: visible; } .mdc-dialog--animating .mdc-dialog__backdrop { transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1); } .mdc-dialog--animating .mdc-dialog__surface { transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1); transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1); transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1); } .mdc-dialog--open { visibility: visible; } .mdc-dialog--open .mdc-dialog__backdrop { opacity: .3; } .mdc-dialog--open .mdc-dialog__surface { -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); opacity: 1; } .mdc-dialog-scroll-lock { overflow: hidden; } /*# sourceMappingURL=mdc.dialog.css.map*/