OLD | NEW |
(Empty) | |
| 1 /* Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ |
| 4 |
| 5 /** |
| 6 * @fileoverview |
| 7 * Common dialog styles for Material Design settings. |
| 8 */ |
| 9 |
| 10 <dom-module id="settings-dialog"> |
| 11 <template> |
| 12 <style> |
| 13 paper-dialog { |
| 14 max-width: 800px; |
| 15 min-width: 500px; |
| 16 } |
| 17 |
| 18 #dialog-content { |
| 19 -webkit-padding-end: 0; |
| 20 -webkit-padding-start: 0; |
| 21 margin-bottom: 0; |
| 22 margin-top: 0; |
| 23 } |
| 24 |
| 25 paper-dialog .top-row { |
| 26 align-items: center; |
| 27 border-bottom: 1px solid gainsboro; |
| 28 display: flex; |
| 29 padding-bottom: 5px; |
| 30 padding-top: 5px; |
| 31 } |
| 32 |
| 33 paper-dialog .title { |
| 34 flex: 1; |
| 35 font-size: 1.13em; |
| 36 } |
| 37 |
| 38 paper-dialog .body { |
| 39 font-size: 1em; |
| 40 margin: 20px 0; |
| 41 } |
| 42 |
| 43 paper-dialog .title, |
| 44 paper-dialog .body { |
| 45 -webkit-padding-end: 24px; |
| 46 -webkit-padding-start: 24px; |
| 47 } |
| 48 |
| 49 paper-dialog .action-button { |
| 50 -webkit-margin-start: 10px; |
| 51 font-weight: 500; |
| 52 } |
| 53 |
| 54 paper-dialog .action-button:not([disabled]) { |
| 55 background-color: rgb(66, 133, 244); |
| 56 color: white; |
| 57 } |
| 58 |
| 59 paper-dialog .cancel-button { |
| 60 color: rgb(109, 109, 109); |
| 61 font-weight: 500; |
| 62 } |
| 63 |
| 64 paper-dialog .explanation { |
| 65 margin-bottom: 35px; |
| 66 } |
| 67 |
| 68 paper-dialog .button-container { |
| 69 display: flex; |
| 70 justify-content: flex-end; |
| 71 } |
| 72 |
| 73 paper-dialog paper-button { |
| 74 margin: 0; |
| 75 min-width: auto; |
| 76 } |
| 77 |
| 78 paper-dialog paper-button[toggles][active] { |
| 79 background-color: LightGray; |
| 80 } |
| 81 </style> |
| 82 </template> |
| 83 </dom-module> |
OLD | NEW |