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; |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
328 /* Expand to fill-up available space. */ | 329 /* Expand to fill-up available space. */ |
329 .settings-row.wide { | 330 .settings-row.wide { |
330 flex: 1; | 331 flex: 1; |
331 } | 332 } |
332 | 333 |
333 .no-outline { | 334 .no-outline { |
334 background: none; | 335 background: none; |
335 outline: none; | 336 outline: none; |
336 } | 337 } |
337 | 338 |
339 /* Prevent icon-button's ripples from fighting with potential scrollbars. | |
340 * Also apply to all iron-lists to align the buttons across them all.*/ | |
341 [scrollable], | |
342 .scroll-container, | |
343 iron-list { | |
344 --cr-paper-icon-button-margin: { | |
345 -webkit-margin-start: 0; | |
346 -webkit-margin-end: 0; | |
347 }; | |
348 } | |
dschuyler
2017/06/06 18:58:39
fyi, I'm working on a CL at https://codereview.chr
scottchen
2017/06/06 22:33:12
Acknowledged.
| |
349 | |
338 /* Helper for a list frame to automatically avoid the separator line. */ | 350 /* Helper for a list frame to automatically avoid the separator line. */ |
339 .vertical-list > *:not(:first-of-type) { | 351 .vertical-list > *:not(:first-of-type) { |
340 border-top: var(--settings-separator-line); | 352 border-top: var(--settings-separator-line); |
341 } | 353 } |
342 | 354 |
343 /* The separator a vertical line like a horizontal rule <hr> tag, but goes | 355 /* 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 | 356 * the other way. An example is near the |sign out| button on the People |
345 * settings. */ | 357 * settings. */ |
346 :-webkit-any(.settings-box, .list-item) .separator { | 358 :-webkit-any(.settings-box, .list-item) .separator { |
347 -webkit-border-start: var(--settings-separator-line); | 359 -webkit-border-start: var(--settings-separator-line); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
407 transform: rotate(-135deg); | 419 transform: rotate(-135deg); |
408 } | 420 } |
409 | 421 |
410 .column-header { | 422 .column-header { |
411 color: var(--paper-grey-600); | 423 color: var(--paper-grey-600); |
412 font-weight: 500; | 424 font-weight: 500; |
413 } | 425 } |
414 </style> | 426 </style> |
415 </template> | 427 </template> |
416 </dom-module> | 428 </dom-module> |
OLD | NEW |