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:not(.default-input):not([type]), |
|
pfeldman
2017/06/01 21:16:57
And the :not(...) will convert into .harmony-input
luoe
2017/06/06 00:16:27
Done.
| |
| 174 input[type="text"]:focus { | 174 input:not(.default-input)[type=number], |
| 175 outline: auto rgb(56, 121, 217); | 175 input:not(.default-input)[type=text] { |
| 176 padding: 3px 6px; | |
| 177 border: 1px solid rgba(0, 0, 0, 0.2); | |
| 178 border-radius: 2px; | |
| 179 height: 24px; | |
| 180 } | |
| 181 | |
| 182 input:not(.default-input):not([type]):not(.error-input):not(:invalid):focus, | |
| 183 input:not(.default-input)[type=number]:not(.error-input):not(:invalid):focus, | |
| 184 input:not(.default-input)[type=text]:not(.error-input):not(:invalid):focus { | |
| 185 box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4); | |
| 186 border-color: transparent; | |
| 176 } | 187 } |
| 177 | 188 |
| 178 .highlighted-search-result.current-search-result { | 189 .highlighted-search-result.current-search-result { |
| 179 border-radius: 1px; | 190 border-radius: 1px; |
| 180 padding: 1px; | 191 padding: 1px; |
| 181 margin: -1px; | 192 margin: -1px; |
| 182 background-color: rgba(255, 127, 0, 0.8); | 193 background-color: rgba(255, 127, 0, 0.8); |
| 183 } | 194 } |
| 184 | 195 |
| 185 .dimmed { | 196 .dimmed { |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 200 padding-bottom: 1px; | 211 padding-bottom: 1px; |
| 201 opacity: 1.0 !important; | 212 opacity: 1.0 !important; |
| 202 } | 213 } |
| 203 | 214 |
| 204 .editing, | 215 .editing, |
| 205 .editing * { | 216 .editing * { |
| 206 color: #222 !important; | 217 color: #222 !important; |
| 207 text-decoration: none !important; | 218 text-decoration: none !important; |
| 208 } | 219 } |
| 209 | 220 |
| 210 .error-input { | 221 input:not(.default-input):not([type]).error-input, |
| 211 outline: auto 2px red !important; | 222 input:not(.default-input)[type=number].error-input, |
| 212 outline-offset: -2px !important; | 223 input:not(.default-input)[type=text].error-input, |
| 224 input:not(.default-input):not([type]):invalid, | |
| 225 input:not(.default-input)[type=number]:invalid, | |
| 226 input:not(.default-input)[type=text]:invalid { | |
| 227 border-color: #C53929; | |
| 228 } | |
| 229 | |
| 230 input:not(.default-input):not([type]).error-input:focus, | |
| 231 input:not(.default-input)[type=number].error-input:focus, | |
| 232 input:not(.default-input)[type=text].error-input:focus, | |
| 233 input:not(.default-input):not([type]):invalid:focus, | |
| 234 input:not(.default-input)[type=number]:invalid:focus, | |
| 235 input:not(.default-input)[type=text]:invalid:focus { | |
| 236 border-color: transparent; | |
| 237 box-shadow: 0 0 0 2px rgba(197, 57, 41, 0.4); | |
| 213 } | 238 } |
| 214 | 239 |
| 215 .chrome-select { | 240 .chrome-select { |
| 216 -webkit-appearance: none; | 241 -webkit-appearance: none; |
| 217 -webkit-user-select: none; | 242 -webkit-user-select: none; |
| 218 border: 1px solid rgb(160, 160, 160); | 243 border: 1px solid rgb(160, 160, 160); |
| 219 border-radius: 2px; | 244 border-radius: 2px; |
| 220 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), | 245 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), |
| 221 inset 0 1px 2px rgba(255, 255, 255, 0.75); | 246 inset 0 1px 2px rgba(255, 255, 255, 0.75); |
| 222 color: #444; | 247 color: #444; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 404 | 429 |
| 405 button.material-button.default:not(:disabled):hover { | 430 button.material-button.default:not(:disabled):hover { |
| 406 background-color: hsla(217, 89%, 58%, 1) !important; | 431 background-color: hsla(217, 89%, 58%, 1) !important; |
| 407 color: white !important; | 432 color: white !important; |
| 408 } | 433 } |
| 409 | 434 |
| 410 button.material-button:not(:disabled):hover { | 435 button.material-button:not(:disabled):hover { |
| 411 background-color: #eee !important; | 436 background-color: #eee !important; |
| 412 color: gray !important; | 437 color: gray !important; |
| 413 } | 438 } |
| OLD | NEW |