| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/assert.html"> | 2 <link rel="import" href="chrome://resources/html/assert.html"> |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 5 | 5 |
| 6 <dom-module id="cr-dialog"> | 6 <dom-module id="cr-dialog"> |
| 7 <template> | 7 <template> |
| 8 <style> | 8 <style> |
| 9 :host { | 9 :host { |
| 10 border: 0; | 10 border: 0; |
| 11 border-radius: 2px; | 11 border-radius: 2px; |
| 12 bottom: 0; | 12 bottom: 0; |
| 13 color: inherit; | 13 color: inherit; |
| 14 padding: 0; | 14 padding: 0; |
| 15 top: 0; | 15 top: 0; |
| 16 width: 512px; |
| 16 } | 17 } |
| 17 | 18 |
| 18 :host::backdrop { | 19 :host::backdrop { |
| 19 background-color: rgba(0, 0, 0, 0.6); | 20 background-color: rgba(0, 0, 0, 0.6); |
| 20 bottom: 0; | 21 bottom: 0; |
| 21 left: 0; | 22 left: 0; |
| 22 position: fixed; | 23 position: fixed; |
| 23 right: 0; | 24 right: 0; |
| 24 top: 0; | 25 top: 0; |
| 25 } | 26 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 45 /* <paper-icon-button> overrides --iron-icon-{height,width}, so this | 46 /* <paper-icon-button> overrides --iron-icon-{height,width}, so this |
| 46 * padding essentially reduces 40x40 to 20x20. */ | 47 * padding essentially reduces 40x40 to 20x20. */ |
| 47 padding: 10px; | 48 padding: 10px; |
| 48 } | 49 } |
| 49 | 50 |
| 50 .body-container { | 51 .body-container { |
| 51 display: flex; | 52 display: flex; |
| 52 flex-direction: column; | 53 flex-direction: column; |
| 53 /* TODO(dbeam): copy <paper-dialog-scrollable>'s dividers? */ | 54 /* TODO(dbeam): copy <paper-dialog-scrollable>'s dividers? */ |
| 54 overflow: auto; | 55 overflow: auto; |
| 55 width: 512px; | |
| 56 } | 56 } |
| 57 | 57 |
| 58 :host ::content .body { | 58 :host ::content .body { |
| 59 padding-bottom: 12px; | 59 padding-bottom: 12px; |
| 60 padding-top: 12px; | 60 padding-top: 12px; |
| 61 } | 61 } |
| 62 | 62 |
| 63 :host ::content .body, | 63 :host ::content .body, |
| 64 :host ::content .title { | 64 :host ::content .title { |
| 65 -webkit-padding-end: 24px; | 65 -webkit-padding-end: 24px; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 96 </paper-icon-button> | 96 </paper-icon-button> |
| 97 </div> | 97 </div> |
| 98 <div class="body-container"> | 98 <div class="body-container"> |
| 99 <content select=".body"></content> | 99 <content select=".body"></content> |
| 100 </div> | 100 </div> |
| 101 <content select=".button-container"></content> | 101 <content select=".button-container"></content> |
| 102 <content select=".footer"></content> | 102 <content select=".footer"></content> |
| 103 </template> | 103 </template> |
| 104 <script src="cr_dialog.js"></script> | 104 <script src="cr_dialog.js"></script> |
| 105 </dom-module> | 105 </dom-module> |
| OLD | NEW |