Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2015 The Chromium Authors. All rights reserved. | 2 * Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 * { | 7 * { |
| 8 /* This is required for correct sizing of flex items because we rely | 8 /* This is required for correct sizing of flex items because we rely |
| 9 * on an old version of the flexbox spec. | 9 * on an old version of the flexbox spec. |
| 10 * Longer-term we should remove this, see crbug.com/473625 */ | 10 * Longer-term we should remove this, see crbug.com/473625 */ |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 208 } | 208 } |
| 209 | 209 |
| 210 .error-input { | 210 .error-input { |
| 211 outline: auto 2px red !important; | 211 outline: auto 2px red !important; |
| 212 outline-offset: -2px !important; | 212 outline-offset: -2px !important; |
| 213 } | 213 } |
| 214 | 214 |
| 215 .chrome-select { | 215 .chrome-select { |
| 216 -webkit-appearance: none; | 216 -webkit-appearance: none; |
| 217 -webkit-user-select: none; | 217 -webkit-user-select: none; |
| 218 border: 1px solid rgb(160, 160, 160); | 218 border: 1px solid rgba(0, 0, 0, 0.2); |
| 219 border-radius: 2px; | 219 border-radius: 2px; |
| 220 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), | 220 color: #333; |
| 221 inset 0 1px 2px rgba(255, 255, 255, 0.75); | |
| 222 color: #444; | |
| 223 font: inherit; | 221 font: inherit; |
| 224 margin: 0 1px 0 0; | 222 margin: 0; |
| 225 outline: none; | 223 outline: none; |
| 226 text-shadow: 0 1px 0 rgb(240, 240, 240); | |
| 227 padding-right: 20px; | 224 padding-right: 20px; |
| 228 padding-left: 6px; | 225 padding-left: 6px; |
| 229 background-image: -webkit-image-set(url(Images/chromeSelect.png) 1x, url(Ima ges/chromeSelect_2x.png) 2x), linear-gradient(#ededed, #ededed 38%, #dedede); | 226 background-image: -webkit-image-set(url(Images/chromeSelect.png) 1x, url(Ima ges/chromeSelect_2x.png) 2x); |
| 227 background-color: #fff; | |
|
pfeldman
2017/05/31 21:52:38
#fff seems to be to bright, no?
luoe
2017/05/31 22:57:54
Yes, I can bring the luminosity down 2% on backgro
| |
| 230 background-position: right center; | 228 background-position: right center; |
| 231 background-repeat: no-repeat; | 229 background-repeat: no-repeat; |
| 232 min-height: 24px; | 230 min-height: 24px; |
| 231 min-width: 80px; | |
| 232 background-size: 15px; | |
| 233 } | 233 } |
| 234 | 234 |
| 235 .chrome-select:enabled:active, | |
| 236 .chrome-select:enabled:focus, | |
| 235 .chrome-select:enabled:hover { | 237 .chrome-select:enabled:hover { |
| 236 background-image: -webkit-image-set(url(Images/chromeSelect.png) 1x, url(Ima ges/chromeSelect_2x.png) 2x), linear-gradient(#f0f0f0, #f0f0f0 38%, #e0e0e0); | 238 background-color: #fafafa; |
| 237 border-color: rgba(0, 0, 0, 0.3); | 239 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); |
| 238 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), | |
| 239 inset 0 1px 2px rgba(255, 255, 255, 0.95); | |
| 240 color: black; | |
| 241 } | 240 } |
| 242 | 241 |
| 243 .chrome-select:enabled:active { | 242 .chrome-select:enabled:active { |
| 244 background-image: -webkit-image-set(url(Images/chromeSelect.png) 1x, url(Ima ges/chromeSelect_2x.png) 2x), linear-gradient(#e7e7e7, #e7e7e7 38%, #d7d7d7); | 243 background-color: #f2f2f2; |
| 245 box-shadow: none; | |
| 246 text-shadow: none; | |
| 247 } | 244 } |
| 248 | 245 |
| 249 .chrome-select:enabled:focus { | 246 .chrome-select:enabled:focus { |
| 250 /* OVERRIDE */ | 247 border-color: transparent; |
| 251 -webkit-transition: border-color 200ms; | 248 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(66, 133, 244, 0.4); |
| 252 /* We use border color because it follows the border radius (unlike outline) . | |
| 253 * This is particularly noticeable on mac. */ | |
| 254 border-color: rgb(77, 144, 254); | |
| 255 outline: none; | |
| 256 } | 249 } |
| 257 | 250 |
| 258 body.inactive select.chrome-select, | |
| 259 .chrome-select:disabled { | 251 .chrome-select:disabled { |
| 260 background-image: -webkit-image-set(url(Images/chromeDisabledSelect.png) 1x, url(Images/chromeDisabledSelect_2x.png) 2x), linear-gradient(#f1f1f1, #f1f1f1 3 8%, #e6e6e6); | 252 opacity: 0.38; |
| 261 border-color: rgba(80, 80, 80, 0.2); | |
| 262 box-shadow: 0 1px 0 rgba(80, 80, 80, 0.08), | |
| 263 inset 0 1px 2px rgba(255, 255, 255, 0.75); | |
| 264 color: #aaa; | |
| 265 } | 253 } |
| 266 | 254 |
| 267 .chrome-select optgroup, | 255 .chrome-select optgroup, |
| 268 .chrome-select option { | 256 .chrome-select option { |
| 269 background-color: #EEEEEE; | 257 background-color: #EEEEEE; |
| 270 color: #222; | 258 color: #222; |
| 271 } | 259 } |
| 272 | 260 |
| 273 :not(.platform-mac).-theme-with-dark-background ::-webkit-scrollbar, | 261 :not(.platform-mac).-theme-with-dark-background ::-webkit-scrollbar, |
| 274 :host-context(:not(.platform-mac).-theme-with-dark-background) ::-webkit-scrollb ar { | 262 :host-context(:not(.platform-mac).-theme-with-dark-background) ::-webkit-scrollb ar { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 404 | 392 |
| 405 button.material-button.default:not(:disabled):hover { | 393 button.material-button.default:not(:disabled):hover { |
| 406 background-color: hsla(217, 89%, 58%, 1) !important; | 394 background-color: hsla(217, 89%, 58%, 1) !important; |
| 407 color: white !important; | 395 color: white !important; |
| 408 } | 396 } |
| 409 | 397 |
| 410 button.material-button:not(:disabled):hover { | 398 button.material-button:not(:disabled):hover { |
| 411 background-color: #eee !important; | 399 background-color: #eee !important; |
| 412 color: gray !important; | 400 color: gray !important; |
| 413 } | 401 } |
| OLD | NEW |