blob: fb74849e18d3e536845efc471cfcd5a25ebf7d59 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001/**
2 * Copyright 2015 Google Inc. All Rights Reserved.
3 * Copyright 2016 Leif Olsen. All Rights Reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 * SASS based on css from Google Chrome Dialog polyfill, https://github.com/GoogleChrome/dialog-polyfill
18 * @include 'node_modules/dialog-polyfill/dialog-polyfill.css' before using this
19 */
20
21@import "../variables";
22
23dialog.mdlext-dialog {
24 position: absolute;
25 border: 0;
26 opacity: 0;
27 padding: $mdlext-dialog-padding;
28 background-color: $mdlext-dialog-background-color;
29
30 &[open] {
31 animation: mdlext-open-dialog $mdlext-dialog-open-animation;
32 }
33 &[open]::backdrop {
34 animation: mdlext-darken-backdrop $mdlext-dialog-backdrop-animation;
35 }
36 &[open] + .backdrop {
37 animation: mdlext-darken-backdrop $mdlext-dialog-backdrop-animation;
38 }
39}
40
41@keyframes mdlext-darken-backdrop {
42 to { background: $mdlext-dialog-backdrop-color; }
43}
44@keyframes mdlext-open-dialog {
45 to { opacity: 1; }
46}