OLD | NEW |
---|---|
1 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> |
2 <link rel="import" href="settings_icons_css.html"> | |
2 <link rel="import" href="settings_vars_css.html"> | 3 <link rel="import" href="settings_vars_css.html"> |
3 | 4 |
4 <!-- Common styles for Material Design settings. --> | 5 <!-- Common styles for Material Design settings. --> |
5 <dom-module id="settings-shared"> | 6 <dom-module id="settings-shared"> |
6 <template> | 7 <template> |
7 <style include="cr-shared-style"> | 8 <style include="settings-icons cr-shared-style"> |
8 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ | 9 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ |
9 h2 { | 10 h2 { |
10 align-items: center; | 11 align-items: center; |
11 align-self: flex-start; | 12 align-self: flex-start; |
12 color: var(--paper-grey-600); | 13 color: var(--paper-grey-600); |
13 display: flex; | 14 display: flex; |
14 font-size: inherit; | 15 font-size: inherit; |
15 font-weight: 500; | 16 font-weight: 500; |
16 margin: 0; | 17 margin: 0; |
17 padding-bottom: 12px; | 18 padding-bottom: 12px; |
18 padding-top: 24px; | 19 padding-top: 24px; |
19 } | 20 } |
20 | 21 |
21 iron-icon { | 22 iron-icon { |
22 flex-shrink: 0; /* Prevent distortion of icons in cramped UI. */ | 23 flex-shrink: 0; /* Prevent distortion of icons in cramped UI. */ |
23 } | 24 } |
24 | 25 |
25 iron-icon[icon='cr:check'], | 26 iron-icon[icon='cr:check'], |
26 iron-icon[icon='settings:done'] { | 27 iron-icon[icon='settings:done'] { |
27 --iron-icon-fill-color: var(--google-green-500); | 28 --iron-icon-fill-color: var(--google-green-500); |
28 } | 29 } |
29 | 30 |
30 paper-icon-button { | 31 paper-icon-button { |
31 -webkit-margin-end: var(--cr-icon-ripple-margin); | 32 @apply(--cr-paper-icon-button-margin); |
32 -webkit-margin-start: 16px; | |
33 color: var(--paper-grey-600); | 33 color: var(--paper-grey-600); |
34 flex-shrink: 0; | 34 flex-shrink: 0; |
35 } | 35 } |
36 | 36 |
37 .separator + button[is='paper-icon-button-light'], | 37 .separator + button[is='paper-icon-button-light'], |
38 .separator + paper-icon-button { | 38 .separator + paper-icon-button { |
39 -webkit-margin-start: var(--cr-icon-ripple-margin)); | 39 -webkit-margin-start: var(--cr-icon-ripple-margin)); |
40 } | 40 } |
41 | 41 |
42 .list-item paper-icon-button { | 42 .list-item paper-icon-button { |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
328 /* Expand to fill-up available space. */ | 328 /* Expand to fill-up available space. */ |
329 .settings-row.wide { | 329 .settings-row.wide { |
330 flex: 1; | 330 flex: 1; |
331 } | 331 } |
332 | 332 |
333 .no-outline { | 333 .no-outline { |
334 background: none; | 334 background: none; |
335 outline: none; | 335 outline: none; |
336 } | 336 } |
337 | 337 |
338 /* Prevent icon-button's ripples from fighting with potential scrollbars. | |
339 * Also apply to all iron-lists to align the buttons across them all.*/ | |
340 [scrollable], | |
341 .scroll-container, | |
342 iron-list { | |
dschuyler
2017/06/07 23:21:21
wdyt of something like
.list-item button
akin to l
scottchen
2017/06/08 22:13:15
there's no more paper-icon-button after this cl, s
| |
343 --cr-paper-icon-button-margin: { | |
344 -webkit-margin-start: 0; | |
dschuyler
2017/06/07 23:21:22
Where is it necessary to set the -start to zero?
scottchen
2017/06/08 22:13:15
It helps align items with their headers. Otherwise
| |
345 -webkit-margin-end: 0; | |
346 }; | |
347 } | |
348 | |
338 /* Helper for a list frame to automatically avoid the separator line. */ | 349 /* Helper for a list frame to automatically avoid the separator line. */ |
339 .vertical-list > *:not(:first-of-type) { | 350 .vertical-list > *:not(:first-of-type) { |
340 border-top: var(--settings-separator-line); | 351 border-top: var(--settings-separator-line); |
341 } | 352 } |
342 | 353 |
343 /* The separator a vertical line like a horizontal rule <hr> tag, but goes | 354 /* The separator a vertical line like a horizontal rule <hr> tag, but goes |
344 * the other way. An example is near the |sign out| button on the People | 355 * the other way. An example is near the |sign out| button on the People |
345 * settings. */ | 356 * settings. */ |
346 :-webkit-any(.settings-box, .list-item) .separator { | 357 :-webkit-any(.settings-box, .list-item) .separator { |
347 -webkit-border-start: var(--settings-separator-line); | 358 -webkit-border-start: var(--settings-separator-line); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
407 transform: rotate(-135deg); | 418 transform: rotate(-135deg); |
408 } | 419 } |
409 | 420 |
410 .column-header { | 421 .column-header { |
411 color: var(--paper-grey-600); | 422 color: var(--paper-grey-600); |
412 font-weight: 500; | 423 font-weight: 500; |
413 } | 424 } |
414 </style> | 425 </style> |
415 </template> | 426 </template> |
416 </dom-module> | 427 </dom-module> |
OLD | NEW |