OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --> |
| 10 |
| 11 <link rel="import" href="../polymer/polymer.html"> |
| 12 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> |
| 13 <link rel="import" href="../paper-styles/default-theme.html"> |
| 14 <link rel="import" href="../paper-styles/typography.html"> |
| 15 <link rel="import" href="../paper-styles/shadow.html"> |
| 16 |
| 17 <!-- |
| 18 ### Styling |
| 19 |
| 20 The following custom properties and mixins are available for styling. |
| 21 |
| 22 Custom property | Description | Default |
| 23 ----------------|-------------|---------- |
| 24 `--paper-dialog-background-color` | Dialog background color
| `--primary-background-color` |
| 25 `--paper-dialog-color` | Dialog foreground color
| `--primary-text-color` |
| 26 `--paper-dialog` | Mixin applied to the dialog
| `{}` |
| 27 `--paper-dialog-title` | Mixin applied to the title (`<h2>`) element
| `{}` |
| 28 `--paper-dialog-button-color` | Button area foreground color
| `--default-primary-color` |
| 29 --> |
| 30 |
| 31 <dom-module id="paper-dialog-shared-styles"> |
| 32 <template> |
| 33 <style> |
| 34 :host { |
| 35 display: block; |
| 36 margin: 24px 40px; |
| 37 |
| 38 background: var(--paper-dialog-background-color, --primary-background-co
lor); |
| 39 color: var(--paper-dialog-color, --primary-text-color); |
| 40 |
| 41 @apply(--paper-font-body1); |
| 42 @apply(--shadow-elevation-16dp); |
| 43 @apply(--paper-dialog); |
| 44 } |
| 45 |
| 46 :host > ::content > * { |
| 47 margin-top: 20px; |
| 48 padding: 0 24px; |
| 49 } |
| 50 |
| 51 :host > ::content > .no-padding { |
| 52 padding: 0; |
| 53 } |
| 54 |
| 55 :host > ::content > *:first-child { |
| 56 margin-top: 24px; |
| 57 } |
| 58 |
| 59 :host > ::content > *:last-child { |
| 60 margin-bottom: 24px; |
| 61 } |
| 62 |
| 63 :host > ::content h2 { |
| 64 position: relative; |
| 65 margin: 0; |
| 66 @apply(--paper-font-title); |
| 67 |
| 68 @apply(--paper-dialog-title); |
| 69 } |
| 70 |
| 71 :host > ::content .buttons { |
| 72 position: relative; |
| 73 padding: 8px 8px 8px 24px; |
| 74 margin: 0; |
| 75 |
| 76 color: var(--paper-dialog-button-color, --primary-color); |
| 77 |
| 78 @apply(--layout-horizontal); |
| 79 @apply(--layout-end-justified); |
| 80 } |
| 81 </style> |
| 82 </template> |
| 83 </dom-module> |
OLD | NEW |