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] { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 } | 71 } |
| 72 | 72 |
| 73 iron-dropdown .dropdown-content .dropdown-item[disabled] { | 73 iron-dropdown .dropdown-content .dropdown-item[disabled] { |
| 74 opacity: var(--settings-disabled-opacity); | 74 opacity: var(--settings-disabled-opacity); |
| 75 } | 75 } |
| 76 | 76 |
| 77 span ~ a { | 77 span ~ a { |
| 78 -webkit-margin-start: 4px; | 78 -webkit-margin-start: 4px; |
| 79 } | 79 } |
| 80 | 80 |
| 81 [is='action-link'], | |
| 82 [is='action-link']:active, | |
| 83 [is='action-link']:hover, | |
| 84 [is='action-link']:visited, | |
| 85 .primary-button, | 81 .primary-button, |
| 86 .tertiary-button, | 82 .tertiary-button, |
| 87 a[href] { | 83 a[href] { |
| 88 color: var(--google-blue-700); | 84 color: var(--google-blue-700); |
| 89 } | 85 } |
| 90 | 86 |
| 91 .primary-button, | 87 .primary-button, |
| 92 .tertiary-button { | 88 .tertiary-button { |
| 93 --paper-button-flat-keyboard-focus: { | 89 --paper-button-flat-keyboard-focus: { |
| 94 background: rgba(51, 103, 214, .12); /* --google-blue-700 */ | 90 background: rgba(51, 103, 214, .12); /* --google-blue-700 */ |
| 95 }; | 91 }; |
| 96 } | 92 } |
| 97 | 93 |
| 98 a[href], | 94 a[href] { |
| 99 [is='action-link']:hover { | |
| 100 text-decoration: none; | 95 text-decoration: none; |
| 101 } | 96 } |
| 102 | 97 |
| 103 /* There are three main button styles, .primary-button, .secondary-button, | 98 /* There are three main button styles, .primary-button, .secondary-button, |
| 104 * and .tertiary-button. The primary is the action button (e.g. "edit", | 99 * and .tertiary-button. The primary is the action button (e.g. "edit", |
| 105 * "delete") while the secondary is often a "Cancel" button. A tertiary | 100 * "delete") while the secondary is often a "Cancel" button. A tertiary |
| 106 * button may be used to get more information or similar, that we expect | 101 * button may be used to get more information or similar, that we expect |
| 107 * most users will not need. */ | 102 * most users will not need. */ |
| 108 .primary-button { | 103 .primary-button { |
| 109 --paper-button: { | 104 --paper-button: { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 214 | 209 |
| 215 .list-item > label span[disabled] { | 210 .list-item > label span[disabled] { |
| 216 opacity: var(--settings-disabled-opacity); | 211 opacity: var(--settings-disabled-opacity); |
| 217 } | 212 } |
| 218 | 213 |
| 219 .list-item > paper-icon-item { | 214 .list-item > paper-icon-item { |
| 220 padding: 0; | 215 padding: 0; |
| 221 } | 216 } |
| 222 | 217 |
| 223 /* This button has no ink ripple. */ | 218 /* This button has no ink ripple. */ |
| 224 .list-item.list-button { | 219 .list-button[is='action-link'] { |
|
Dan Beam
2017/01/24 05:25:33
why can't this be .list-item [is='action-link']?
scottchen
2017/01/24 19:39:12
I'm thinking there could be cases in which action-
| |
| 225 @apply(--settings-actionable); | 220 min-height: inherit; |
| 221 display: flex; | |
| 226 align-items: center; | 222 align-items: center; |
| 227 color: var(--google-blue-500); | 223 flex: 1; |
| 228 font-weight: 500; | 224 font-weight: 500; |
| 229 } | 225 } |
| 230 | 226 |
| 231 /* A row with two lines of text. Often the lower line will be .secondary. | 227 /* A row with two lines of text. Often the lower line will be .secondary. |
| 232 */ | 228 */ |
| 233 .two-line { | 229 .two-line { |
| 234 min-height: var(--settings-row-two-line-min-height); | 230 min-height: var(--settings-row-two-line-min-height); |
| 235 } | 231 } |
| 236 | 232 |
| 237 /* A settings-box is a horizontal row of text or controls within a | 233 /* A settings-box is a horizontal row of text or controls within a |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 376 /* Turns the arrow direction downwards, when the bubble is placed above | 372 /* Turns the arrow direction downwards, when the bubble is placed above |
| 377 * the anchor element */ | 373 * the anchor element */ |
| 378 .search-bubble-innards.above::after { | 374 .search-bubble-innards.above::after { |
| 379 -webkit-transform: rotate(-135deg); | 375 -webkit-transform: rotate(-135deg); |
| 380 bottom: -5px; | 376 bottom: -5px; |
| 381 top: auto; | 377 top: auto; |
| 382 } | 378 } |
| 383 </style> | 379 </style> |
| 384 </template> | 380 </template> |
| 385 </dom-module> | 381 </dom-module> |
| OLD | NEW |