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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 163 } | 163 } |
| 164 | 164 |
| 165 input { | 165 input { |
| 166 background-color: white; | 166 background-color: white; |
| 167 } | 167 } |
| 168 | 168 |
| 169 :host-context(.-theme-with-dark-background) input[type="checkbox"]::not(.-theme- preserve) { | 169 :host-context(.-theme-with-dark-background) input[type="checkbox"]::not(.-theme- preserve) { |
| 170 -webkit-filter: invert(80%); | 170 -webkit-filter: invert(80%); |
| 171 } | 171 } |
| 172 | 172 |
| 173 input[type="search"]:focus, | 173 input[type="number"], |
| 174 input[type="text"]:focus { | 174 input[type="search"], |
| 175 outline: auto rgb(56, 121, 217); | 175 input[type="text"] { |
| 176 padding: 3px 6px; | |
| 177 border: 1px solid rgba(0, 0, 0, 0.14); | |
| 178 border-radius: 2px; | |
|
dgozman
2017/05/15 21:54:42
Filter input does not have rounded corners.
dgozman
2017/05/15 21:54:42
Blackboxing edit input changes the corners on focu
luoe
2017/05/18 21:30:51
Done.
luoe
2017/05/18 21:30:51
Done, toolbar-inputs now have the same rounded cor
| |
| 179 } | |
| 180 | |
| 181 input[type="number"]:not(.error-input):focus, | |
| 182 input[type="search"]:not(.error-input):focus, | |
| 183 input[type="text"]:not(.error-input):focus { | |
|
dgozman
2017/05/15 21:54:42
Device Mode inputs looks different when disabled n
luoe
2017/05/18 21:30:51
Yeah, then let's keep the old style for this disab
| |
| 184 box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4); | |
| 176 } | 185 } |
| 177 | 186 |
| 178 .highlighted-search-result.current-search-result { | 187 .highlighted-search-result.current-search-result { |
| 179 border-radius: 1px; | 188 border-radius: 1px; |
| 180 padding: 1px; | 189 padding: 1px; |
| 181 margin: -1px; | 190 margin: -1px; |
| 182 background-color: rgba(255, 127, 0, 0.8); | 191 background-color: rgba(255, 127, 0, 0.8); |
| 183 } | 192 } |
| 184 | 193 |
| 185 .dimmed { | 194 .dimmed { |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 201 opacity: 1.0 !important; | 210 opacity: 1.0 !important; |
| 202 } | 211 } |
| 203 | 212 |
| 204 .editing, | 213 .editing, |
| 205 .editing * { | 214 .editing * { |
| 206 color: #222 !important; | 215 color: #222 !important; |
| 207 text-decoration: none !important; | 216 text-decoration: none !important; |
| 208 } | 217 } |
| 209 | 218 |
| 210 .error-input { | 219 .error-input { |
| 211 outline: auto 2px red !important; | 220 outline: auto 1px #C53929 !important; |
| 212 outline-offset: -2px !important; | 221 outline-offset: -1px !important; |
| 222 box-shadow: none; | |
| 223 } | |
| 224 | |
| 225 .error-input:focus { | |
| 226 outline: none !important; | |
| 227 box-shadow: 0 0 0 2px rgba(197, 57, 41, 0.4); | |
| 213 } | 228 } |
| 214 | 229 |
| 215 .chrome-select { | 230 .chrome-select { |
|
dgozman
2017/05/15 21:54:42
Maybe throw in some min-width?
luoe
2017/05/18 21:30:51
Done, 80px.
| |
| 216 -webkit-appearance: none; | 231 -webkit-appearance: none; |
| 217 -webkit-user-select: none; | 232 -webkit-user-select: none; |
| 218 border: 1px solid rgb(160, 160, 160); | 233 border: 1px solid rgba(0, 0, 0, 0.2); |
| 219 border-radius: 2px; | 234 border-radius: 2px; |
| 220 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), | 235 color: #333; |
| 221 inset 0 1px 2px rgba(255, 255, 255, 0.75); | |
| 222 color: #444; | |
| 223 font: inherit; | 236 font: inherit; |
| 224 margin: 0 1px 0 0; | 237 margin: 0; |
| 225 outline: none; | 238 outline: none; |
| 226 text-shadow: 0 1px 0 rgb(240, 240, 240); | 239 text-shadow: 0 1px 0 rgb(240, 240, 240); |
| 227 padding-right: 20px; | 240 padding-right: 20px; |
| 228 padding-left: 6px; | 241 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); | 242 background-image: -webkit-image-set(url(Images/chromeSelect.png) 1x, url(Ima ges/chromeSelect_2x.png) 2x); |
| 243 background-color: #fff; | |
| 230 background-position: right center; | 244 background-position: right center; |
| 231 background-repeat: no-repeat; | 245 background-repeat: no-repeat; |
| 232 min-height: 24px; | 246 min-height: 24px; |
| 247 background-size: 15px; | |
| 233 } | 248 } |
| 234 | 249 |
| 250 | |
| 251 .chrome-select:enabled:active, | |
| 252 .chrome-select:enabled:focus, | |
| 235 .chrome-select:enabled:hover { | 253 .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); | 254 background-color: #fafafa; |
| 237 border-color: rgba(0, 0, 0, 0.3); | 255 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 } | 256 } |
| 242 | 257 |
| 243 .chrome-select:enabled:active { | 258 .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); | 259 background-color: #f2f2f2; |
| 245 box-shadow: none; | |
| 246 text-shadow: none; | |
| 247 } | 260 } |
| 248 | 261 |
| 249 .chrome-select:enabled:focus { | 262 .chrome-select:enabled:focus { |
| 250 /* OVERRIDE */ | 263 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(66, 133, 244, 0.4); |
| 251 -webkit-transition: border-color 200ms; | |
| 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 } | 264 } |
| 257 | 265 |
| 258 body.inactive select.chrome-select, | |
| 259 .chrome-select:disabled { | 266 .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); | 267 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 } | 268 } |
| 266 | 269 |
| 267 .chrome-select optgroup, | 270 .chrome-select optgroup, |
| 268 .chrome-select option { | 271 .chrome-select option { |
| 269 background-color: #EEEEEE; | 272 background-color: #EEEEEE; |
| 270 color: #222; | 273 color: #222; |
| 271 } | 274 } |
| 272 | 275 |
| 273 :not(.platform-mac).-theme-with-dark-background ::-webkit-scrollbar, | 276 :not(.platform-mac).-theme-with-dark-background ::-webkit-scrollbar, |
| 274 :host-context(:not(.platform-mac).-theme-with-dark-background) ::-webkit-scrollb ar { | 277 :host-context(:not(.platform-mac).-theme-with-dark-background) ::-webkit-scrollb ar { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 399 | 402 |
| 400 button.material-button.default:not(:disabled):hover { | 403 button.material-button.default:not(:disabled):hover { |
| 401 background-color: hsla(217, 89%, 58%, 1) !important; | 404 background-color: hsla(217, 89%, 58%, 1) !important; |
| 402 color: white !important; | 405 color: white !important; |
| 403 } | 406 } |
| 404 | 407 |
| 405 button.material-button:not(:disabled):hover { | 408 button.material-button:not(:disabled):hover { |
| 406 background-color: #eee !important; | 409 background-color: #eee !important; |
| 407 color: gray !important; | 410 color: gray !important; |
| 408 } | 411 } |
| OLD | NEW |