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

Side by Side Diff: ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html

Issue 2702523005: MD Settings: long dialog body should have overscroll line. (Closed)
Patch Set: format and annotation Created 3 years, 8 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/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 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/default-th eme.html">
6 6
7 <dom-module id="cr-dialog"> 7 <dom-module id="cr-dialog">
8 <template> 8 <template>
9 <style> 9 <style>
10 :host { 10 :host {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 }; 52 };
53 -webkit-margin-end: 6px; 53 -webkit-margin-end: 6px;
54 /* <paper-icon-button> overrides --iron-icon-{height,width}, so this 54 /* <paper-icon-button> overrides --iron-icon-{height,width}, so this
55 * padding essentially reduces 40x40 to 20x20. */ 55 * padding essentially reduces 40x40 to 20x20. */
56 padding: 10px; 56 padding: 10px;
57 } 57 }
58 58
59 .body-container { 59 .body-container {
60 display: flex; 60 display: flex;
61 flex-direction: column; 61 flex-direction: column;
62 /* TODO(dbeam): copy <paper-dialog-scrollable>'s dividers? */ 62 /* TODO(dbeam): copy <paper-dialog-scrollable>'s dividers? */
dpapad 2017/03/29 17:42:16 This TODO is being addressed with this CL. Can we
scottchen 2017/03/29 21:02:08 Done.
63 overflow: auto; 63 overflow: auto;
64 /* Prevent layout moving when border does appear. */
65 border-bottom: 1px solid transparent;
66
67 @apply(--cr-dialog-body-container);
68 }
69
70 .body-container.bottom-scrollable {
71 border-bottom: 1px solid var(--paper-grey-300);
64 } 72 }
65 73
66 :host ::content .body { 74 :host ::content .body {
67 padding-bottom: 12px; 75 padding-bottom: 12px;
68 padding-top: 12px; 76 padding-top: 12px;
69 } 77 }
70 78
71 :host ::content .body, 79 :host ::content .body,
72 :host ::content .title { 80 :host ::content .title {
73 -webkit-padding-end: 24px; 81 -webkit-padding-end: 24px;
(...skipping 29 matching lines...) Expand all
103 <div class="top-container"> 111 <div class="top-container">
104 <div class="title-container" tabindex="-1"> 112 <div class="title-container" tabindex="-1">
105 <content select=".title"></content> 113 <content select=".title"></content>
106 </div> 114 </div>
107 <paper-icon-button icon="cr:clear" on-tap="cancel" id="close" 115 <paper-icon-button icon="cr:clear" on-tap="cancel" id="close"
108 aria-label$="[[closeText]]"> 116 aria-label$="[[closeText]]">
109 </paper-icon-button> 117 </paper-icon-button>
110 </div> 118 </div>
111 <div class="body-container"> 119 <div class="body-container">
112 <content select=".body"></content> 120 <content select=".body"></content>
121 <span id="bodyBottomMarker">
113 </div> 122 </div>
114 <content select=".button-container"></content> 123 <content select=".button-container"></content>
115 <content select=".footer"></content> 124 <content select=".footer"></content>
116 </template> 125 </template>
117 <script src="cr_dialog.js"></script> 126 <script src="cr_dialog.js"></script>
118 </dom-module> 127 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698