Chromium Code Reviews| 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 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/default-th eme.html"> | |
| 5 | 6 |
| 6 <dom-module id="cr-dialog"> | 7 <dom-module id="cr-dialog"> |
| 7 <template> | 8 <template> |
| 8 <style> | 9 <style> |
| 9 :host { | 10 :host { |
| 10 border: 0; | 11 border: 0; |
| 11 border-radius: 2px; | 12 border-radius: 2px; |
| 12 bottom: 0; | 13 bottom: 0; |
| 13 box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.12), | 14 box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.12), |
| 14 0px 16px 16px rgba(0, 0, 0, 0.24); | 15 0px 16px 16px rgba(0, 0, 0, 0.24); |
| 15 color: inherit; | 16 color: inherit; |
| 16 padding: 0; | 17 padding: 0; |
| 17 top: 0; | 18 top: 0; |
| 18 width: 512px; | 19 width: 512px; |
| 19 } | 20 } |
| 20 | 21 |
| 21 :host::backdrop { | 22 :host::backdrop { |
| 22 background-color: rgba(0, 0, 0, 0.6); | 23 background-color: rgba(0, 0, 0, 0.6); |
| 23 bottom: 0; | 24 bottom: 0; |
| 24 left: 0; | 25 left: 0; |
| 25 position: fixed; | 26 position: fixed; |
| 26 right: 0; | 27 right: 0; |
| 27 top: 0; | 28 top: 0; |
| 28 } | 29 } |
| 29 | 30 |
| 30 .title-container { | 31 .title-container { |
| 31 align-items: center; | 32 align-items: center; |
| 32 /* TODO(dbeam): should this be a --settings-separator-line? */ | 33 border-bottom: 1px solid; |
| 33 border-bottom: 1px solid rgba(0, 0, 0, 0.14); | 34 border-bottom-color: var(--divider-color); |
|
Dan Beam
2017/02/02 03:59:29
border-bottom: 1px solid var(--divider-color);
tommycli
2017/02/02 17:10:29
Done. Okay awesome I did not think that would work
| |
| 34 display: flex; | 35 display: flex; |
| 35 min-height: 52px; | 36 min-height: 52px; |
| 36 } | 37 } |
| 37 | 38 |
| 38 :host ::content .title { | 39 :host ::content .title { |
| 39 font-size: 123.07%; /* (16px / 13px) * 100 */ | 40 font-size: 123.07%; /* (16px / 13px) * 100 */ |
| 40 } | 41 } |
| 41 | 42 |
| 42 #close { | 43 #close { |
| 43 --paper-icon-button: { | 44 --paper-icon-button: { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 margin-bottom: 12px; | 78 margin-bottom: 12px; |
| 78 margin-top: 12px; | 79 margin-top: 12px; |
| 79 } | 80 } |
| 80 | 81 |
| 81 :host ::content .button-container .cancel-button { | 82 :host ::content .button-container .cancel-button { |
| 82 -webkit-margin-end: 8px; | 83 -webkit-margin-end: 8px; |
| 83 color: var(--paper-grey-600); | 84 color: var(--paper-grey-600); |
| 84 } | 85 } |
| 85 | 86 |
| 86 :host ::content .footer { | 87 :host ::content .footer { |
| 87 background-color: var(--paper-grey-200); | |
| 88 border-bottom-left-radius: inherit; | 88 border-bottom-left-radius: inherit; |
| 89 border-bottom-right-radius: inherit; | 89 border-bottom-right-radius: inherit; |
| 90 margin: 0; | 90 margin: 0; |
| 91 padding: 12px 20px; | 91 padding: 12px 20px; |
| 92 } | 92 } |
| 93 | |
| 94 :host ::content .border-top-divider { | |
| 95 border-top: 1px solid; | |
| 96 border-top-color: var(--divider-color); | |
|
Dan Beam
2017/02/02 03:59:29
border-top: 1px solid var(--divider-color);
tommycli
2017/02/02 17:10:29
Done.
| |
| 97 } | |
| 93 </style> | 98 </style> |
| 94 <div class="title-container"> | 99 <div class="title-container"> |
| 95 <content select=".title"></content> | 100 <content select=".title"></content> |
| 96 <paper-icon-button icon="cr:clear" on-tap="cancel" id="close" | 101 <paper-icon-button icon="cr:clear" on-tap="cancel" id="close" |
| 97 aria-label$="[[closeText]]"> | 102 aria-label$="[[closeText]]"> |
| 98 </paper-icon-button> | 103 </paper-icon-button> |
| 99 </div> | 104 </div> |
| 100 <div class="body-container"> | 105 <div class="body-container"> |
| 101 <content select=".body"></content> | 106 <content select=".body"></content> |
| 102 </div> | 107 </div> |
| 103 <content select=".button-container"></content> | 108 <content select=".button-container"></content> |
| 104 <content select=".footer"></content> | 109 <content select=".footer"></content> |
| 105 </template> | 110 </template> |
| 106 <script src="cr_dialog.js"></script> | 111 <script src="cr_dialog.js"></script> |
| 107 </dom-module> | 112 </dom-module> |
| OLD | NEW |