Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> | |
| 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> | |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html"> | |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> | |
| 6 | |
| 7 <dom-module id="error-dialog"> | |
| 8 <template> | |
| 9 <style include="shared-styles"> | |
| 10 #backdrop { | |
| 11 align-items: center; | |
| 12 background: rgba(255, 255, 255, 0.6); | |
| 13 bottom: 0; | |
| 14 display: flex; | |
| 15 justify-content: center; | |
| 16 left: 0; | |
| 17 position: absolute; | |
| 18 right: 0; | |
| 19 top: 0; | |
| 20 } | |
| 21 | |
| 22 #dialog { | |
| 23 background: white; | |
| 24 border-radius: 2px; | |
| 25 box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), | |
| 26 0 6px 30px 5px rgba(0, 0, 0, 0.12), | |
| 27 0 8px 10px -5px rgba(0, 0, 0, 0.4); | |
| 28 color: var(--primary-text-color); | |
| 29 width: 512px; | |
| 30 } | |
| 31 | |
| 32 #title-bar { | |
| 33 padding: 6px; | |
| 34 } | |
| 35 | |
| 36 #title-bar paper-icon-button { | |
| 37 --paper-icon-button: { | |
| 38 padding: 10px; | |
| 39 }; | |
| 40 } | |
| 41 | |
| 42 #message { | |
| 43 padding: 10px 16px 62px; | |
| 44 white-space: pre-wrap; | |
| 45 word-wrap: break-word; | |
| 46 } | |
| 47 </style> | |
| 48 <template is="dom-if" if="[[!popupHidden_]]"> | |
| 49 <div id="backdrop"> | |
|
dpapad
2016/05/27 23:59:42
Should we be using <paper-dialog> or re-using <set
Moe
2016/05/30 18:33:05
Ah, i didn't know about those other dialog impleme
dpapad
2016/05/31 19:11:59
SG.
| |
| 50 <div id="dialog"> | |
| 51 <div id="title-bar" class="horizontal end-justified layout"> | |
| 52 <paper-icon-button icon="cr:close" on-tap="onCloseTap_"> | |
| 53 </paper-icon-button> | |
| 54 </div> | |
| 55 <div id="message">[[message_]]</div> | |
| 56 </div> | |
| 57 </div> | |
| 58 </template> | |
| 59 </template> | |
| 60 <script src="chrome://md-user-manager/error_dialog.js"></script> | |
| 61 </dom-module> | |
| OLD | NEW |