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_vars_css.html"> | 2 <link rel="import" href="settings_vars_css.html"> |
3 | 3 |
4 <!-- Common styles for Material Design settings. --> | 4 <!-- Common styles for Material Design settings. --> |
5 <dom-module id="settings-shared"> | 5 <dom-module id="settings-shared"> |
6 <template> | 6 <template> |
7 <style include="cr-shared-style"> | 7 <style include="cr-shared-style"> |
8 :host-context([dir=rtl]) button[is='paper-icon-button-light'] { | 8 :host-context([dir=rtl]) button[is='paper-icon-button-light'] { |
9 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ | 9 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ |
10 } | 10 } |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
308 .settings-box .start.two-line { | 308 .settings-box .start.two-line { |
309 display: flex; | 309 display: flex; |
310 } | 310 } |
311 | 311 |
312 /* The start (left in LTR) part (horizontally) of a row. */ | 312 /* The start (left in LTR) part (horizontally) of a row. */ |
313 .settings-box .start { | 313 .settings-box .start { |
314 align-items: center; | 314 align-items: center; |
315 flex: auto; | 315 flex: auto; |
316 } | 316 } |
317 | 317 |
318 /* For grouping elements with common flex options. */ | |
318 .settings-row { | 319 .settings-row { |
319 align-items: center; | 320 align-items: center; |
320 display: flex; | 321 display: flex; |
321 flex-direction: row; | 322 flex-direction: row; |
322 max-width: 100%; | 323 max-width: 100%; |
324 /* Workaround for text elision in sub-elements. See: | |
325 * https://www.google.com/search?q=flexbox+truncated+text&oq=flexbox+tru ncated+text */ | |
hcarmona
2017/05/06 01:26:32
Can we point to a more concrete source rather than
dschuyler
2017/05/06 01:32:43
I'd prefer to remove the reference.
I didn't want
dschuyler
2017/05/06 01:39:40
Done.
| |
326 min-width: 0; | |
327 } | |
328 | |
329 /* Expand to fill-up available space. */ | |
330 .settings-row.wide { | |
331 flex: 1; | |
323 } | 332 } |
324 | 333 |
325 .no-outline, | 334 .no-outline, |
326 [scrollable] .no-outline { | 335 [scrollable] .no-outline { |
327 background: none; | 336 background: none; |
328 outline: none; | 337 outline: none; |
329 } | 338 } |
330 | 339 |
331 /* Helper for a list frame to automatically avoid the separator line. */ | 340 /* Helper for a list frame to automatically avoid the separator line. */ |
332 .vertical-list > *:not(:first-of-type) { | 341 .vertical-list > *:not(:first-of-type) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
400 transform: rotate(-135deg); | 409 transform: rotate(-135deg); |
401 } | 410 } |
402 | 411 |
403 .column-header { | 412 .column-header { |
404 color: var(--paper-grey-600); | 413 color: var(--paper-grey-600); |
405 font-weight: 500; | 414 font-weight: 500; |
406 } | 415 } |
407 </style> | 416 </style> |
408 </template> | 417 </template> |
409 </dom-module> | 418 </dom-module> |
OLD | NEW |