| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog-behavior/p
aper-dialog-behavior.html"> | |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog-behavior/p
aper-dialog-shared-styles.html"> | |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | |
| 6 <link rel="import" href="/settings_root_css.html"> | |
| 7 | |
| 8 <dom-module id="settings-dialog"> | |
| 9 <template> | |
| 10 <style include="paper-dialog-shared-styles"> | |
| 11 :host { | |
| 12 border-radius: 2px; | |
| 13 } | |
| 14 | |
| 15 :host ::content > * { | |
| 16 /* Overrides paper-dialog-shared-styles. */ | |
| 17 -webkit-padding-end: 0; | |
| 18 -webkit-padding-start: 0; | |
| 19 margin-bottom: 0; | |
| 20 margin-top: 0; | |
| 21 } | |
| 22 | |
| 23 .title-container { | |
| 24 align-items: center; | |
| 25 /* TODO(dbeam): should this be a --settings-separator-line? */ | |
| 26 border-bottom: 1px solid rgba(0, 0, 0, 0.14); | |
| 27 display: flex; | |
| 28 min-height: 52px; | |
| 29 } | |
| 30 | |
| 31 :host ::content .title { | |
| 32 font-size: 114.28%; /* (16px / 14px) * 100 */ | |
| 33 } | |
| 34 | |
| 35 #close { | |
| 36 --paper-icon-button: { | |
| 37 height: 40px; | |
| 38 width: 40px; | |
| 39 }; | |
| 40 -webkit-margin-end: 6px; | |
| 41 /* <paper-icon-button> overrides --iron-icon-{height,width}, so this | |
| 42 * padding essentially reduces 40x40 to 20x20. */ | |
| 43 padding: 10px; | |
| 44 } | |
| 45 | |
| 46 .body-container { | |
| 47 display: flex; | |
| 48 flex-direction: column; | |
| 49 max-width: 800px; | |
| 50 min-width: 512px; | |
| 51 /* TODO(dbeam): use <paper-dialog-scrollable> to get dividers? */ | |
| 52 overflow: auto; | |
| 53 } | |
| 54 | |
| 55 :host ::content .body { | |
| 56 margin: 12px 0; | |
| 57 } | |
| 58 | |
| 59 :host ::content .body, | |
| 60 :host ::content .title { | |
| 61 -webkit-padding-end: 24px; | |
| 62 -webkit-padding-start: 24px; | |
| 63 flex: 1; | |
| 64 } | |
| 65 | |
| 66 :host ::content .body, | |
| 67 :host ::content .footer, | |
| 68 :host ::content paper-button { | |
| 69 font-size: 92.86%; /* (13px / 14px) * 100 */ | |
| 70 } | |
| 71 | |
| 72 :host ::content .button-container { | |
| 73 -webkit-padding-end: 16px; | |
| 74 -webkit-padding-start: 16px; | |
| 75 display: flex; | |
| 76 justify-content: flex-end; | |
| 77 margin-bottom: 12px; | |
| 78 margin-top: 12px; | |
| 79 } | |
| 80 | |
| 81 :host ::content .button-container .cancel-button { | |
| 82 -webkit-margin-end: 8px; | |
| 83 color: var(--paper-grey-600); | |
| 84 } | |
| 85 | |
| 86 :host ::content .footer { | |
| 87 background-color: var(--paper-grey-200); | |
| 88 border-bottom-left-radius: inherit; | |
| 89 border-bottom-right-radius: inherit; | |
| 90 margin: 0; | |
| 91 padding: 12px 20px; | |
| 92 } | |
| 93 </style> | |
| 94 <div class="title-container"> | |
| 95 <content select=".title"></content> | |
| 96 <paper-icon-button icon="cr:clear" on-tap="cancel" id="close"> | |
| 97 </paper-icon-button> | |
| 98 </div> | |
| 99 <div class="body-container"> | |
| 100 <content select=".body"></content> | |
| 101 </div> | |
| 102 <content select=".button-container"></content> | |
| 103 <content select=".footer"></content> | |
| 104 </template> | |
| 105 <script src="settings_dialog.js"></script> | |
| 106 </dom-module> | |
| OLD | NEW |