Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/browser/resources/settings/settings_dialog.html

Issue 1774283002: [MD settings] move footer class into dialog style-module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer_config.html"> 1 <link rel="import" href="chrome://resources/html/polymer_config.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog-behavior/p aper-dialog-behavior.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"> 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"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
7 7
8 <dom-module id="settings-dialog"> 8 <dom-module id="settings-dialog">
9 <template> 9 <template>
10 <style include="paper-dialog-shared-styles"></style> 10 <style include="paper-dialog-shared-styles"></style>
11 <style> 11 <style>
12 .body-content {
13 font-size: 1em;
14 margin: 20px 0;
15 }
16
12 .dialog-content { 17 .dialog-content {
13 -webkit-padding-end: 0; 18 -webkit-padding-end: 0;
14 -webkit-padding-start: 0; 19 -webkit-padding-start: 0;
15 margin-bottom: 0; 20 margin-bottom: 0;
16 margin-top: 0; 21 margin-top: 0;
17 } 22 }
18 23
19 .footer-container { 24 .footer-container {
20 margin: 0; 25 margin: 0;
21 padding: 0; 26 padding: 0;
22 } 27 }
23 28
24 .top-row { 29 .top-row {
25 align-items: center; 30 align-items: center;
26 border-bottom: 1px solid gainsboro; 31 border-bottom: 1px solid var(--paper-grey-300);
27 display: flex; 32 display: flex;
28 padding-bottom: 5px; 33 padding-bottom: 5px;
29 padding-top: 5px; 34 padding-top: 5px;
30 } 35 }
31 36
32 .body-content {
33 font-size: 1em;
34 margin: 20px 0;
35 }
36
37 :host { 37 :host {
38 max-width: 800px; 38 max-width: 800px;
39 min-width: 500px; 39 min-width: 500px;
40 } 40 }
41 41
42 :host ::content .title {
43 flex: 1;
44 font-size: 1.13em;
45 }
46
47 :host ::content .title,
48 .body-content {
49 -webkit-padding-end: 24px;
50 -webkit-padding-start: 24px;
51 }
52
53 :host ::content .body { 42 :host ::content .body {
54 margin-bottom: 35px; 43 margin-bottom: 35px;
55 } 44 }
56 45
57 :host ::content .button-container { 46 :host ::content .button-container {
58 display: flex; 47 display: flex;
59 justify-content: flex-end; 48 justify-content: flex-end;
60 } 49 }
61 50
62 :host ::content .button-container .cancel-button { 51 :host ::content .button-container .cancel-button {
63 color: rgb(109, 109, 109); 52 color: var(--paper-grey-600);
64 font-weight: 500; 53 font-weight: 500;
65 } 54 }
55
56 :host ::content .footer {
57 background-color: var(--paper-grey-200);
58 margin: 0;
59 padding: 20px;
60 }
61
62 :host ::content .row {
63 align-items: center;
64 display: flex;
65 min-height: 40px;
66 }
67
68 :host ::content .row .start {
69 flex: 1;
70 }
71
72 :host ::content .title {
73 flex: 1;
74 font-size: 1.13em;
75 }
76
77 :host ::content .title,
78 .body-content {
79 -webkit-padding-end: 24px;
80 -webkit-padding-start: 24px;
81 }
66 </style> 82 </style>
67 <div class="dialog-content"> 83 <div class="dialog-content">
68 <div class="top-row"> 84 <div class="top-row">
69 <content select=".title"></content> 85 <content select=".title"></content>
70 <paper-icon-button icon="clear" on-tap="cancel" id="close"> 86 <paper-icon-button icon="clear" on-tap="cancel" id="close">
71 </paper-icon-button> 87 </paper-icon-button>
72 </div> 88 </div>
73 <div class="body-content"> 89 <div class="body-content">
74 <content select=".body"></content> 90 <content select=".body"></content>
75 <content select=".button-container"></content> 91 <content select=".button-container"></content>
76 </div> 92 </div>
77 </div> 93 </div>
78 <div class="footer-container"> 94 <div class="footer-container">
79 <content select=".footer"></content> 95 <content select=".footer"></content>
80 </div> 96 </div>
81 </template> 97 </template>
82 <script src="settings_dialog.js"></script> 98 <script src="settings_dialog.js"></script>
83 </dom-module> 99 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698