Chromium Code Reviews| 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 button[is='paper-icon-button-light'] { | 8 button[is='paper-icon-button-light'] { |
| 9 --paper-icon-button-light-ripple: { | 9 -webkit-margin-end: -8px; /* Allow ripple to overlap the end. */ |
| 10 /* Center the ripple on the icon button. */ | |
| 11 height: 36px; | |
| 12 left: -8px; | |
| 13 top: -8px; | |
| 14 width: 36px; | |
| 15 }; | |
| 16 -webkit-margin-start: 16px; | 10 -webkit-margin-start: 16px; |
| 17 background-size: cover; | 11 background-position: center; |
| 12 background-repeat: no-repeat; | |
| 13 background-size: 20px; | |
|
Dan Beam
2016/10/04 02:08:39
should this 20px be var(--settings-icon-size)?
dschuyler
2016/10/04 18:38:45
Done.
| |
| 18 flex-shrink: 0; | 14 flex-shrink: 0; |
| 19 height: 20px; | 15 height: var(--settings-icon-ripple-size); |
| 20 width: 20px; | 16 width: var(--settings-icon-ripple-size); |
| 21 } | 17 } |
| 22 | 18 |
| 23 [actionable] button[is="paper-icon-button-light"].icon-arrow-right { | 19 :host-context([dir=rtl]) button[is='paper-icon-button-light'] { |
| 20 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ | |
| 21 } | |
| 22 | |
| 23 [actionable] button[is="paper-icon-button-light"].icon-subpage-arrow { | |
| 24 background-image: url(images/arrow_right.svg); | 24 background-image: url(images/arrow_right.svg); |
| 25 } | 25 } |
| 26 | 26 |
| 27 [actionable] button[is="paper-icon-button-light"].icon-external { | 27 [actionable] button[is="paper-icon-button-light"].icon-external { |
| 28 background-image: url(images/open_in_new.svg); | 28 background-image: url(images/open_in_new.svg); |
| 29 } | 29 } |
| 30 | 30 |
| 31 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ | 31 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ |
| 32 h2 { | 32 h2 { |
| 33 align-items: center; | 33 align-items: center; |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 424 /* Turns the arrow direction downwards, when the bubble is placed above | 424 /* Turns the arrow direction downwards, when the bubble is placed above |
| 425 * the anchor element */ | 425 * the anchor element */ |
| 426 .search-bubble-innards.above::after { | 426 .search-bubble-innards.above::after { |
| 427 -webkit-transform: rotate(-135deg); | 427 -webkit-transform: rotate(-135deg); |
| 428 bottom: -5px; | 428 bottom: -5px; |
| 429 top: auto; | 429 top: auto; |
| 430 } | 430 } |
| 431 </style> | 431 </style> |
| 432 </template> | 432 </template> |
| 433 </dom-module> | 433 </dom-module> |
| OLD | NEW |