| 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 .subpage-arrow, |
| 38 .icon-external { |
| 39 display: none; |
| 40 } |
| 41 |
| 42 [actionable] :-webkit-any(.subpage-arrow, .icon-external), |
| 43 [actionable]:-webkit-any(.subpage-arrow, .icon-external) { |
| 44 display: block; |
| 45 } |
| 46 |
| 37 :host-context([dir=rtl]) paper-icon-button[icon='settings:arrow-back'] { | 47 :host-context([dir=rtl]) paper-icon-button[icon='settings:arrow-back'] { |
| 38 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ | 48 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ |
| 39 } | 49 } |
| 40 | 50 |
| 41 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ | 51 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ |
| 42 h2 { | 52 h2 { |
| 43 align-items: center; | 53 align-items: center; |
| 44 align-self: flex-start; | 54 align-self: flex-start; |
| 45 color: var(--paper-grey-600); | 55 color: var(--paper-grey-600); |
| 46 display: flex; | 56 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 | 446 /* Turns the arrow direction downwards, when the bubble is placed above |
| 437 * the anchor element */ | 447 * the anchor element */ |
| 438 .search-bubble-innards.above::after { | 448 .search-bubble-innards.above::after { |
| 439 -webkit-transform: rotate(-135deg); | 449 -webkit-transform: rotate(-135deg); |
| 440 bottom: -5px; | 450 bottom: -5px; |
| 441 top: auto; | 451 top: auto; |
| 442 } | 452 } |
| 443 </style> | 453 </style> |
| 444 </template> | 454 </template> |
| 445 </dom-module> | 455 </dom-module> |
| OLD | NEW |