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 /* Included here so we don't have to include "iron-positioning" in every | 8 /* Included here so we don't have to include "iron-positioning" in every |
| 9 * stylesheet. See crbug.com/498405. */ | 9 * stylesheet. See crbug.com/498405. */ |
| 10 [hidden] { | 10 [hidden] { |
| 11 display: none !important; | 11 display: none !important; |
| 12 } | 12 } |
| 13 | 13 |
| 14 button[is='paper-icon-button-light'] { | 14 button[is='paper-icon-button-light'] { |
| 15 -webkit-margin-end: -8px; /* Allow ripple to overlap the end. */ | 15 -webkit-margin-end: -8px; /* Allow ripple to overlap the end. */ |
| 16 -webkit-margin-start: 16px; | 16 -webkit-margin-start: 16px; |
| 17 background-position: center; | 17 background-position: center; |
| 18 background-repeat: no-repeat; | 18 background-repeat: no-repeat; |
| 19 background-size: var(--settings-icon-size); | 19 background-size: var(--settings-icon-size); |
| 20 flex-shrink: 0; | 20 flex-shrink: 0; |
| 21 height: var(--settings-icon-ripple-size); | 21 height: var(--settings-icon-ripple-size); |
| 22 width: var(--settings-icon-ripple-size); | 22 width: var(--settings-icon-ripple-size); |
| 23 } | 23 } |
| 24 | 24 |
| 25 :host-context([dir=rtl]) button[is='paper-icon-button-light'] { | 25 :host-context([dir=rtl]) button[is='paper-icon-button-light'] { |
| 26 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ | 26 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ |
| 27 } | 27 } |
| 28 | 28 |
| 29 [actionable] button[is='paper-icon-button-light'].subpage-arrow { | 29 button[is='paper-icon-button-light'].subpage-arrow { |
| 30 background-image: url(images/arrow_right.svg); | 30 background-image: url(images/arrow_right.svg); |
| 31 } | 31 } |
| 32 | 32 |
| 33 [actionable] button[is='paper-icon-button-light'].icon-external { | 33 button[is='paper-icon-button-light'].icon-external { |
| 34 background-image: url(images/open_in_new.svg); | 34 background-image: url(images/open_in_new.svg); |
| 35 } | 35 } |
| 36 | 36 |
| 37 button[is='paper-icon-button-light'].subpage-arrow, | |
| 38 button[is='paper-icon-button-light'].icon-external { | |
| 39 display: none; | |
| 40 } | |
| 41 | |
| 42 [actionable] button[is='paper-icon-button-light'].subpage-arrow, | |
| 43 [actionable] button[is='paper-icon-button-light'].icon-external, | |
| 44 button[is='paper-icon-button-light'][actionable].subpage-arrow, | |
| 45 button[is='paper-icon-button-light'][actionable].icon-external { | |
| 46 display: block; | |
| 47 } | |
|
stevenjb
2016/12/13 18:28:10
Is the [is='paper-icon-button-light'] qualifier he
Dan Beam
2016/12/13 19:04:14
there's a functional difference when it comes to s
| |
| 48 | |
| 37 :host-context([dir=rtl]) paper-icon-button[icon='settings:arrow-back'] { | 49 :host-context([dir=rtl]) paper-icon-button[icon='settings:arrow-back'] { |
| 38 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ | 50 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ |
| 39 } | 51 } |
| 40 | 52 |
| 41 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ | 53 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ |
| 42 h2 { | 54 h2 { |
| 43 align-items: center; | 55 align-items: center; |
| 44 align-self: flex-start; | 56 align-self: flex-start; |
| 45 color: var(--paper-grey-600); | 57 color: var(--paper-grey-600); |
| 46 display: flex; | 58 display: flex; |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 436 /* Turns the arrow direction downwards, when the bubble is placed above | 448 /* Turns the arrow direction downwards, when the bubble is placed above |
| 437 * the anchor element */ | 449 * the anchor element */ |
| 438 .search-bubble-innards.above::after { | 450 .search-bubble-innards.above::after { |
| 439 -webkit-transform: rotate(-135deg); | 451 -webkit-transform: rotate(-135deg); |
| 440 bottom: -5px; | 452 bottom: -5px; |
| 441 top: auto; | 453 top: auto; |
| 442 } | 454 } |
| 443 </style> | 455 </style> |
| 444 </template> | 456 </template> |
| 445 </dom-module> | 457 </dom-module> |
| OLD | NEW |