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

Side by Side Diff: chrome/browser/resources/md_user_manager/user_manager_dialog.html

Issue 2024233003: MD User Manager: Refactors existing dialogs in User Manager into <user-manager-dialog> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-locked-test
Patch Set: Initial Created 4 years, 6 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://md-user-manager/shared_styles.html"> 1 <link rel="import" href="chrome://md-user-manager/shared_styles.html">
2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 2 <link rel="import" href="chrome://resources/cr_elements/icons.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/iron-flex-layout/classe s/iron-flex-layout.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"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
6 6
7 <!-- TODO(mahmadi): refactor this and import-supervised-user reusing 7 <dom-module id="user-manager-dialog">
8 <paper-dialog> or <settings-dialog> -->
9 <dom-module id="error-dialog">
10 <template> 8 <template>
11 <style include="shared-styles"> 9 <style include="shared-styles">
12 #backdrop { 10 #backdrop {
13 align-items: center; 11 align-items: center;
14 background: rgba(255, 255, 255, 0.6); 12 background: rgba(255, 255, 255, 0.6);
15 bottom: 0; 13 bottom: 0;
16 display: flex; 14 display: flex;
17 justify-content: center; 15 justify-content: center;
18 left: 0; 16 left: 0;
19 position: absolute; 17 position: absolute;
20 right: 0; 18 right: 0;
21 top: 0; 19 top: 0;
22 } 20 }
23 21
24 #dialog { 22 #dialog {
25 background: white; 23 background: white;
26 border-radius: 2px; 24 border-radius: 2px;
27 box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 25 box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14),
28 0 6px 30px 5px rgba(0, 0, 0, 0.12), 26 0 6px 30px 5px rgba(0, 0, 0, 0.12),
29 0 8px 10px -5px rgba(0, 0, 0, 0.4); 27 0 8px 10px -5px rgba(0, 0, 0, 0.4);
30 color: var(--primary-text-color); 28 color: var(--primary-text-color);
31 width: 512px; 29 width: 512px;
32 } 30 }
33 31
34 #title-bar { 32 #title-bar {
35 padding: 6px; 33 align-items: center;
34 border-bottom: var(--user-manager-separator-line);
35 min-height: 52px;
36 @apply(--user-manager-dialog-title-bar);
36 } 37 }
37 38
38 #title-bar paper-icon-button { 39 #close {
39 --paper-icon-button: { 40 --paper-icon-button: {
41 height: 40px;
40 padding: 10px; 42 padding: 10px;
43 width: 40px;
41 }; 44 };
45 -webkit-margin-end: 6px;
46 -webkit-margin-start: auto;
47 flex-shrink: 0;
42 } 48 }
43 49
44 #message { 50 :host ::content .title {
45 padding: 10px 16px 62px; 51 -webkit-margin-end: 10px;
46 white-space: pre-wrap; 52 -webkit-margin-start: 16px;
47 word-wrap: break-word; 53 font-size: 16px;
54 }
55
56 :host ::content .body > * {
57 padding: 0 16px;
58 }
59
60 :host ::content .body > .no-padding {
61 padding: 0;
62 }
63
64 :host ::content .footer {
65 margin-top: 20px;
66 padding: 16px;
48 } 67 }
49 </style> 68 </style>
50 <template is="dom-if" if="[[!popupHidden_]]"> 69 <template is="dom-if" if="[[!dialogHidden_]]">
51 <div id="backdrop"> 70 <div id="backdrop">
52 <div id="dialog"> 71 <div id="dialog">
53 <div id="title-bar" class="horizontal end-justified layout"> 72 <div id="title-bar" class="horizontal justified layout">
54 <paper-icon-button icon="cr:close" on-tap="onCloseTap_"> 73 <content select=".title"></content>
74 <paper-icon-button icon="cr:close" id="close" on-tap="close">
55 </paper-icon-button> 75 </paper-icon-button>
56 </div> 76 </div>
57 <div id="message">[[message_]]</div> 77 <content select=".body"></content>
78 <content select=".footer"></content>
58 </div> 79 </div>
59 </div> 80 </div>
60 </template> 81 </template>
61 </template> 82 </template>
62 <script src="chrome://md-user-manager/error_dialog.js"></script> 83 <script src="chrome://md-user-manager/user_manager_dialog.js"></script>
63 </dom-module> 84 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698