| OLD | NEW |
| 1 <link rel="import" href="/settings_root_css.html"> | 1 <link rel="import" href="/settings_root_css.html"> |
| 2 | 2 |
| 3 <!-- Common styles for Material Design settings. --> | 3 <!-- Common styles for Material Design settings. --> |
| 4 <dom-module id="settings-shared"> | 4 <dom-module id="settings-shared"> |
| 5 <template> | 5 <template> |
| 6 <style> | 6 <style> |
| 7 h2 { | 7 h2 { |
| 8 @apply(--layout-center); | 8 @apply(--layout-center); |
| 9 display: flex; | 9 display: flex; |
| 10 font-size: 100%; | 10 font-size: 100%; |
| 11 font-weight: 500; | 11 font-weight: 500; |
| 12 margin: 0; | 12 margin: 0; |
| 13 min-height: var(--settings-row-min-height); | 13 min-height: var(--settings-row-min-height); |
| 14 } | 14 } |
| 15 | 15 |
| 16 iron-icon[icon='cr:check'], | 16 iron-icon[icon='cr:check'], |
| 17 iron-icon[icon='settings:done'] { | 17 iron-icon[icon='settings:done'] { |
| 18 --iron-icon-fill-color: var(--google-green-500); | 18 --iron-icon-fill-color: var(--paper-green-500); |
| 19 } | 19 } |
| 20 | 20 |
| 21 paper-button { | 21 paper-button { |
| 22 margin: 0; | 22 margin: 0; |
| 23 } | 23 } |
| 24 | 24 |
| 25 paper-button[toggles][active] { | 25 paper-button[toggles][active] { |
| 26 background-color: var(--paper-grey-300); | 26 background-color: var(--paper-grey-300); |
| 27 } | 27 } |
| 28 | 28 |
| 29 span ~ a { | 29 span ~ a { |
| 30 -webkit-margin-start: 4px; | 30 -webkit-margin-start: 4px; |
| 31 } | 31 } |
| 32 | 32 |
| 33 [is='action-link'], | 33 [is='action-link'], |
| 34 [is='action-link']:active, | 34 [is='action-link']:active, |
| 35 [is='action-link']:hover, | 35 [is='action-link']:hover, |
| 36 [is='action-link']:visited, | 36 [is='action-link']:visited, |
| 37 paper-button.primary-button, | 37 paper-button.primary-button, |
| 38 paper-button.tertiary-button { | 38 paper-button.tertiary-button { |
| 39 color: var(--google-blue-700); | 39 color: var(--paper-blue-700); |
| 40 } |
| 41 |
| 42 paper-button.primary-button, |
| 43 paper-button.tertiary-button { |
| 44 --paper-button-flat-keyboard-focus: { |
| 45 background-color: rgba(51, 103, 214, .12); /* --paper-blue-700 */ |
| 46 }; |
| 40 } | 47 } |
| 41 | 48 |
| 42 [is='action-link']:hover { | 49 [is='action-link']:hover { |
| 43 /* TODO(dbeam): check with bettes@ on this one, but I'm pretty sure we | 50 /* TODO(dbeam): check with bettes@ on this one, but I'm pretty sure we |
| 44 * shouldn't be showing much :hover stuff on Polymer pages. */ | 51 * shouldn't be showing much :hover stuff on Polymer pages. */ |
| 45 text-decoration: none; | 52 text-decoration: none; |
| 46 } | 53 } |
| 47 | 54 |
| 48 paper-button.primary-button { | 55 paper-button.primary-button { |
| 49 --paper-button: { | 56 --paper-button: { |
| 50 font-weight: 500; | 57 font-weight: 500; |
| 51 text-align: start; | 58 text-align: start; |
| 52 }; | 59 }; |
| 53 } | 60 } |
| 54 | 61 |
| 55 paper-button.secondary-button { | 62 paper-button.secondary-button { |
| 56 --paper-button: { | 63 --paper-button: { |
| 57 color: var(--paper-grey-600); | 64 color: var(--paper-grey-600); |
| 58 text-decoration: none; | 65 text-decoration: none; |
| 59 font-weight: 500; | 66 font-weight: 500; |
| 60 }; | 67 }; |
| 68 --paper-button-flat-keyboard-focus: { |
| 69 background-color: rgba(0, 0, 0, .12); |
| 70 }; |
| 61 } | 71 } |
| 62 | 72 |
| 63 paper-button.tertiary-button { | 73 paper-button.tertiary-button { |
| 64 --paper-button: { | 74 --paper-button: { |
| 65 font-weight: 400; | 75 font-weight: 400; |
| 66 text-decoration: none; | 76 text-decoration: none; |
| 67 }; | 77 }; |
| 68 } | 78 } |
| 69 | 79 |
| 70 .settings-box paper-button.primary-button, | 80 .settings-box paper-button.primary-button, |
| 71 .settings-box paper-button.secondary-button, | 81 .settings-box paper-button.secondary-button, |
| 72 .settings-box paper-button.secondary-button { | 82 .settings-box paper-button.secondary-button { |
| 73 margin-left: -12px; | 83 margin-left: -12px; |
| 74 margin-right: -12px; | 84 margin-right: -12px; |
| 75 padding-left: 12px; | 85 padding-left: 12px; |
| 76 padding-right: 12px; | 86 padding-right: 12px; |
| 77 } | 87 } |
| 78 | 88 |
| 79 paper-checkbox { | 89 paper-checkbox { |
| 80 --paper-checkbox-checked-color: var(--google-blue-500); | 90 --paper-checkbox-checked-color: var(--paper-blue-500); |
| 81 --paper-checkbox-label-spacing: var(--checkbox-spacing); | 91 --paper-checkbox-label-spacing: var(--checkbox-spacing); |
| 82 --paper-checkbox-size: var(--checkbox-size); | 92 --paper-checkbox-size: var(--checkbox-size); |
| 83 --paper-checkbox-unchecked-color: var(--paper-grey-600); | 93 --paper-checkbox-unchecked-color: var(--paper-grey-600); |
| 84 -webkit-margin-start: var(--checkbox-margin-start); | 94 -webkit-margin-start: var(--checkbox-margin-start); |
| 85 } | 95 } |
| 86 | 96 |
| 87 paper-radio-button { | 97 paper-radio-button { |
| 88 @apply(--layout-center); | 98 @apply(--layout-center); |
| 89 --paper-radio-button-checked-color: var(--google-blue-500); | 99 --paper-radio-button-checked-color: var(--paper-blue-500); |
| 90 --paper-radio-button-label-spacing: 18px; | 100 --paper-radio-button-label-spacing: 18px; |
| 91 --paper-radio-button-unchecked-color: var(--paper-grey-600); | 101 --paper-radio-button-unchecked-color: var(--paper-grey-600); |
| 92 -webkit-margin-start: 2px; | 102 -webkit-margin-start: 2px; |
| 93 display: flex; | 103 display: flex; |
| 94 min-height: var(--settings-row-min-height); | 104 min-height: var(--settings-row-min-height); |
| 95 } | 105 } |
| 96 | 106 |
| 97 paper-radio-group { | 107 paper-radio-group { |
| 98 width: 100%; | 108 width: 100%; |
| 99 } | 109 } |
| 100 | 110 |
| 101 .text-elide { | 111 .text-elide { |
| 102 overflow: hidden; | 112 overflow: hidden; |
| 103 text-overflow: ellipsis; | 113 text-overflow: ellipsis; |
| 104 white-space: nowrap; | 114 white-space: nowrap; |
| 105 } | 115 } |
| 106 | 116 |
| 107 .button-strip { | 117 .button-strip { |
| 108 text-align: end; | 118 text-align: end; |
| 109 } | 119 } |
| 110 | 120 |
| 111 .action-button { | 121 .action-button { |
| 112 background: var(--google-blue-500); | 122 background: var(--paper-blue-500); |
| 113 color: white; | 123 color: white; |
| 124 --paper-button-flat-keyboard-focus: { |
| 125 background-color: rgb(58, 117, 215); /* 88% of --paper-blue-500) */ |
| 126 }; |
| 114 } | 127 } |
| 115 | 128 |
| 116 .action-button[disabled] { | 129 .action-button[disabled] { |
| 117 opacity: .25; /* TODO(dbeam): check this value with bettes. */ | 130 opacity: .25; /* TODO(dbeam): check this value with bettes. */ |
| 118 } | 131 } |
| 119 | 132 |
| 133 .cancel-button { |
| 134 --paper-button-flat-keyboard-focus: { |
| 135 background-color: rgba(0, 0, 0, .12); |
| 136 }; |
| 137 } |
| 138 |
| 120 .action-button, | 139 .action-button, |
| 121 .cancel-button { | 140 .cancel-button { |
| 122 font-weight: 500; | 141 font-weight: 500; |
| 123 } | 142 } |
| 124 | 143 |
| 125 .list-frame { | 144 .list-frame { |
| 126 @apply(--layout-center); | 145 @apply(--layout-center); |
| 127 -webkit-padding-end: 20px; | 146 -webkit-padding-end: 20px; |
| 128 -webkit-padding-start: 56px; | 147 -webkit-padding-start: 56px; |
| 129 display: block; | 148 display: block; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 white-space: nowrap; | 187 white-space: nowrap; |
| 169 } | 188 } |
| 170 | 189 |
| 171 .list-item > paper-icon-item { | 190 .list-item > paper-icon-item { |
| 172 padding: 0; | 191 padding: 0; |
| 173 } | 192 } |
| 174 | 193 |
| 175 /* This button has no ink ripple. */ | 194 /* This button has no ink ripple. */ |
| 176 .list-item.list-button { | 195 .list-item.list-button { |
| 177 @apply(--layout-center); | 196 @apply(--layout-center); |
| 178 color: rgb(66, 133, 244); | 197 color: var(--paper-blue-500); |
| 179 font-weight: 500; | 198 font-weight: 500; |
| 180 } | 199 } |
| 181 | 200 |
| 182 .settings-box { | 201 .settings-box { |
| 183 @apply(--layout-center); | 202 @apply(--layout-center); |
| 184 border-top: var(--settings-separator-line); | 203 border-top: var(--settings-separator-line); |
| 185 display: flex; | 204 display: flex; |
| 186 min-height: var(--settings-row-min-height); | 205 min-height: var(--settings-row-min-height); |
| 187 padding: 0 20px; | 206 padding: 0 20px; |
| 188 } | 207 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 260 |
| 242 .settings-checkbox-spacer { | 261 .settings-checkbox-spacer { |
| 243 -webkit-margin-start: calc( | 262 -webkit-margin-start: calc( |
| 244 var(--checkbox-margin-start) + | 263 var(--checkbox-margin-start) + |
| 245 var(--checkbox-size) + | 264 var(--checkbox-size) + |
| 246 var(--checkbox-spacing)); | 265 var(--checkbox-spacing)); |
| 247 } | 266 } |
| 248 | 267 |
| 249 /* Keep the slider color consistent throughout the range. */ | 268 /* Keep the slider color consistent throughout the range. */ |
| 250 paper-slider.always-on { | 269 paper-slider.always-on { |
| 251 --paper-slider-knob-start-border-color: var(--google-blue-700); | 270 --paper-slider-knob-start-border-color: var(--paper-blue-700); |
| 252 --paper-slider-knob-start-color: var(--google-blue-700); | 271 --paper-slider-knob-start-color: var(--paper-blue-700); |
| 253 --paper-slider-pin-start-color: var(--google-blue-700); | 272 --paper-slider-pin-start-color: var(--paper-blue-700); |
| 254 } | 273 } |
| 255 | 274 |
| 256 .favicon-image { | 275 .favicon-image { |
| 257 background-repeat: no-repeat; | 276 background-repeat: no-repeat; |
| 258 background-size: contain; | 277 background-size: contain; |
| 259 height: 16px; | 278 height: 16px; |
| 260 width: 16px; | 279 width: 16px; |
| 261 } | 280 } |
| 262 </style> | 281 </style> |
| 263 </template> | 282 </template> |
| 264 </dom-module> | 283 </dom-module> |
| OLD | NEW |