| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2014 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 :host { | 7 :host { |
| 8 background-image: linear-gradient(hsl(0, 0%, 93%), hsl(0, 0%, 93%) 38%, hsl(
0, 0%, 87%)); | 8 margin: 2px; |
| 9 border: 1px solid hsla(0, 0%, 0%, 0.25); | 9 height: 24px; |
| 10 font-size: 12px; |
| 11 line-height: 16px; |
| 12 border: 1px solid rgba(0, 0, 0, 0.2); |
| 10 border-radius: 2px; | 13 border-radius: 2px; |
| 11 box-shadow: 0 1px 0 hsla(0, 0%, 0%, 0.08), inset 0 1px 2px hsla(0, 100%, 100
%, 0.75); | 14 padding: 3px 12px; |
| 12 color: hsl(0, 0%, 27%); | 15 font-weight: 500; |
| 13 font-size: 12px; | 16 color: #333; |
| 14 margin: 0 1px 0 0; | 17 background-color: #fff; |
| 15 text-shadow: 0 1px 0 hsl(0, 0%, 94%); | |
| 16 min-height: 2em !important; | |
| 17 padding-left: 10px; | |
| 18 padding-right: 10px; | |
| 19 -webkit-user-select: none; | |
| 20 flex: none; | |
| 21 } | 18 } |
| 22 | 19 |
| 23 :host-context(body.inactive), | 20 :host(:not(:disabled):focus), |
| 24 :host(:disabled) { | 21 :host(:not(:disabled):hover), |
| 25 background-image: linear-gradient(#f1f1f1, #f1f1f1 38%, #e6e6e6); | 22 :host(:not(:disabled):active) { |
| 26 border-color: rgba(80, 80, 80, 0.2); | 23 background-color: #fafafa; |
| 27 box-shadow: 0 1px 0 rgba(80, 80, 80, 0.08), inset 0 1px 2px rgba(255, 255, 2
55, 0.75); | 24 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); |
| 28 color: #aaa; | |
| 29 } | |
| 30 | |
| 31 :host(:not(:disabled):hover) { | |
| 32 background-image: linear-gradient(hsl(0, 0%, 94%), hsl(0, 0%, 94%) 38%, hsl(
0, 0%, 88%)); | |
| 33 border-color: hsla(0, 0%, 0%, 0.3); | |
| 34 box-shadow: 0 1px 0 hsla(0, 0%, 0%, 0.12), inset 0 1px 2px hsla(0, 100%, 100
%, 0.95); | |
| 35 color: hsl(0, 0%, 0%); | |
| 36 } | 25 } |
| 37 | 26 |
| 38 :host(:not(:disabled):active) { | 27 :host(:not(:disabled):active) { |
| 39 background-image: linear-gradient(hsl(0, 0%, 91%), hsl(0, 0%, 91%) 38%, hsl(
0, 0%, 84%)); | 28 background-color: #f2f2f2; |
| 40 box-shadow: none; | |
| 41 text-shadow: none; | |
| 42 } | 29 } |
| 43 | 30 |
| 44 :host(:not(:disabled):focus) { | 31 :host(:not(:disabled):focus) { |
| 45 -webkit-transition: border-color 200ms; | 32 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(66, 133, 244, 0.4); |
| 46 border-color: rgb(77, 144, 254); | |
| 47 outline: none; | |
| 48 } | 33 } |
| 34 |
| 35 :host(:disabled) { |
| 36 opacity: 0.38; |
| 37 } |
| 38 |
| 39 :host(.primary), -theme-preserve { |
| 40 background-color: #4285F4; |
| 41 border: none; |
| 42 color: #fff; |
| 43 } |
| 44 |
| 45 :host(.primary:not(:disabled):focus), |
| 46 :host(.primary:not(:disabled):hover), -theme-preserve { |
| 47 background-color: #3B78E7; |
| 48 } |
| 49 |
| 50 :host(.primary:not(:disabled):active), -theme-preserve { |
| 51 background-color: #3367D6; |
| 52 } |
| 53 |
| 54 :host(.running), -theme-preserve { |
| 55 background-color: #f44242; |
| 56 border: none; |
| 57 color: #fff; |
| 58 } |
| 59 |
| 60 :host(.running:not(:disabled):focus), |
| 61 :host(.running:not(:disabled):hover), -theme-preserve { |
| 62 background-color: #e73b3b; |
| 63 } |
| 64 |
| 65 :host(.running:not(:disabled):active), -theme-preserve{ |
| 66 background-color: #d63333; |
| 67 } |
| 68 |
| 69 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):f
ocus), |
| 70 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):h
over), |
| 71 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):a
ctive) { |
| 72 background-color: #313131; |
| 73 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); |
| 74 } |
| 75 |
| 76 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):f
ocus) { |
| 77 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(94, 151, 246, 0.6); |
| 78 } |
| 79 |
| 80 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):a
ctive) { |
| 81 background-color: #3e3e3e; |
| 82 } |
| OLD | NEW |