| 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 flex: none; | 8 flex: none; |
| 9 padding: 0 2px; |
| 9 } | 10 } |
| 10 | 11 |
| 11 .toolbar-shadow { | 12 .toolbar-shadow { |
| 12 position: relative; | 13 position: relative; |
| 13 white-space: nowrap; | 14 white-space: nowrap; |
| 14 height: 24px; | 15 height: 26px; |
| 15 overflow: hidden; | 16 overflow: hidden; |
| 16 z-index: 12; | 17 z-index: 12; |
| 17 display: flex; | 18 display: flex; |
| 18 flex: none; | 19 flex: none; |
| 19 align-items: center; | 20 align-items: center; |
| 20 } | 21 } |
| 21 | 22 |
| 22 :host-context(.material) .toolbar-shadow { | |
| 23 height: 28px; | |
| 24 } | |
| 25 | |
| 26 .toolbar-shadow.vertical { | 23 .toolbar-shadow.vertical { |
| 27 flex-direction: column; | 24 flex-direction: column; |
| 28 height: auto; | 25 height: auto; |
| 29 width: 32px; | 26 width: 26px; |
| 30 } | 27 } |
| 31 | 28 |
| 32 .toolbar-shadow.floating { | 29 .toolbar-shadow.floating { |
| 33 flex-direction: column; | 30 flex-direction: column; |
| 34 height: auto; | 31 height: auto; |
| 35 background-color: white; | 32 background-color: white; |
| 36 border: 1px solid #ccc; | 33 border: 1px solid #ccc; |
| 37 margin-top: -1px; | 34 margin-top: -1px; |
| 38 width: 32px; | 35 width: 26px; |
| 39 } | 36 left: -2px; |
| 40 | |
| 41 .toolbar-shadow > div { | |
| 42 display: inline-flex; | |
| 43 overflow: visible; | |
| 44 margin: 0 2px; | |
| 45 } | 37 } |
| 46 | 38 |
| 47 .toolbar-item { | 39 .toolbar-item { |
| 48 position: relative; | 40 position: relative; |
| 49 display: flex; | 41 display: flex; |
| 50 border: 0 transparent none; | |
| 51 background-color: transparent; | 42 background-color: transparent; |
| 52 flex: none; | 43 flex: none; |
| 53 align-items: center; | 44 align-items: center; |
| 54 justify-content: center; | 45 justify-content: center; |
| 55 padding: 0; | 46 padding: 0; |
| 56 height: 24px; | 47 height: 26px; |
| 57 } | 48 border: none; |
| 58 | |
| 59 :host-context(.material) .toolbar-item { | |
| 60 height: 28px; | |
| 61 } | 49 } |
| 62 | 50 |
| 63 .toolbar-text { | 51 .toolbar-text { |
| 64 white-space: nowrap; | 52 white-space: nowrap; |
| 65 overflow: hidden; | 53 overflow: hidden; |
| 66 margin-left: 6px; | 54 margin-left: 6px; |
| 67 -webkit-user-select: text; | 55 -webkit-user-select: text; |
| 68 } | 56 } |
| 69 | 57 |
| 70 .toolbar-item:active { | 58 .toolbar-item:active { |
| 71 position: relative; | 59 position: relative; |
| 72 z-index: 200; | 60 z-index: 200; |
| 73 } | 61 } |
| 74 | 62 |
| 75 .toolbar-item:hover .toolbar-button-text { | 63 .toolbar-item:hover .toolbar-button-text { |
| 76 opacity: 1; | 64 opacity: 1; |
| 77 } | 65 } |
| 78 | 66 |
| 79 .toolbar-item .toolbar-button-text { | 67 .toolbar-item .toolbar-button-text { |
| 80 font-weight: bold; | 68 font-weight: bold; |
| 81 color: rgba(0, 0, 0, 0.75); | 69 color: rgba(0, 0, 0, 0.75); |
| 82 opacity: 0.8; | 70 opacity: 0.8; |
| 83 } | 71 } |
| 84 | 72 |
| 85 .long-click-glyph { | 73 .long-click-glyph { |
| 86 background-color: rgba(0, 0, 0, 0.75); | 74 background-color: #595959; |
| 87 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png); | 75 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png); |
| 88 -webkit-mask-position: -288px -48px; | 76 -webkit-mask-position: -288px -48px; |
| 89 -webkit-mask-size: 352px 144px; | 77 -webkit-mask-size: 352px 144px; |
| 90 z-index: 1; | 78 z-index: 1; |
| 91 width: 32px; | 79 width: 32px; |
| 92 height: 24px; | 80 height: 26px; |
| 93 } | |
| 94 | |
| 95 .narrow .long-click-glyph { | |
| 96 top: -2px; | |
| 97 left: -7px; | |
| 98 } | |
| 99 | |
| 100 :host-context(.material) .long-click-glyph { | |
| 101 top: 2px; | |
| 102 } | 81 } |
| 103 | 82 |
| 104 @media (-webkit-min-device-pixel-ratio: 1.5) { | 83 @media (-webkit-min-device-pixel-ratio: 1.5) { |
| 105 .long-click-glyph { | 84 .long-click-glyph { |
| 106 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png); | 85 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png); |
| 107 } | 86 } |
| 108 } /* media */ | 87 } /* media */ |
| 109 | 88 |
| 110 .narrow button.toolbar-item { | 89 button.toolbar-item { |
| 111 width: 26px; | 90 width: 26px; |
| 112 } | 91 } |
| 113 | 92 |
| 114 .narrow button.toolbar-item .glyph { | 93 button.toolbar-item:enabled:hover, |
| 115 margin: 0 -3px; | |
| 116 } | |
| 117 | |
| 118 button.toolbar-item { | |
| 119 width: 30px; | |
| 120 } | |
| 121 | |
| 122 :host-context(.material) button.toolbar-item { | |
| 123 width: 32px; | |
| 124 } | |
| 125 | |
| 126 button.toolbar-item:hover, | |
| 127 .toolbar-item.checkbox:hover, | 94 .toolbar-item.checkbox:hover, |
| 128 .toolbar-counter:hover { | 95 .toolbar-counter:hover { |
| 129 background-color: rgba(110, 110, 110, 0.1); | 96 background-color: rgba(110, 110, 110, 0.1); |
| 97 transition: background-color 150ms cubic-bezier(0, 0, 0.2, 1); |
| 130 } | 98 } |
| 131 | 99 |
| 132 button.toolbar-item.toggled-on .glyph { | 100 button.toolbar-item.toggled-on .glyph { |
| 133 background-color: rgb(66, 129, 235) !important; | 101 background-color: rgb(66, 129, 235) !important; |
| 134 } | 102 } |
| 135 | 103 |
| 136 button.toolbar-item:hover .glyph { | 104 button.toolbar-item:hover .glyph { |
| 137 opacity: 1; | 105 opacity: 1; |
| 138 } | 106 } |
| 139 | 107 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 -webkit-appearance: none; | 166 -webkit-appearance: none; |
| 199 border: 0; | 167 border: 0; |
| 200 border-radius: 0; | 168 border-radius: 0; |
| 201 padding: 0 15px 0 5px; | 169 padding: 0 15px 0 5px; |
| 202 margin-right: -10px; | 170 margin-right: -10px; |
| 203 position: relative; | 171 position: relative; |
| 204 line-height: 22px; | 172 line-height: 22px; |
| 205 } | 173 } |
| 206 | 174 |
| 207 .toolbar-item.checkbox { | 175 .toolbar-item.checkbox { |
| 208 padding-right: 5px; | 176 padding: 0 5px 0 2px; |
| 209 } | 177 } |
| 210 | 178 |
| 211 .toolbar-item > .glyph { | 179 .toolbar-item > .glyph { |
| 212 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png); | 180 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png); |
| 213 -webkit-mask-size: 352px 144px; | 181 -webkit-mask-size: 352px 144px; |
| 214 opacity: 0.9; | 182 opacity: 0.9; |
| 215 background-color: #595959; | 183 background-color: #595959; |
| 216 z-index: 1; | 184 z-index: 1; |
| 217 width: 32px; | 185 width: 32px; |
| 218 height: 24px; | 186 height: 24px; |
| 219 } | 187 } |
| 220 | 188 |
| 221 :host-context(:not(.material)) .toolbar-item > .glyph { | 189 .toolbar-item > .glyph { |
| 222 position: relative; | 190 position: relative; |
| 223 left: -1px; | 191 left: -3px; |
| 224 } | 192 } |
| 225 | 193 |
| 194 .toolbar-item > .long-click-glyph { |
| 195 left: -5px; |
| 196 } |
| 226 | 197 |
| 227 @media (-webkit-min-device-pixel-ratio: 1.5) { | 198 @media (-webkit-min-device-pixel-ratio: 1.5) { |
| 228 .toolbar-item > .glyph { | 199 .toolbar-item > .glyph { |
| 229 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png); | 200 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png); |
| 230 } | 201 } |
| 231 } /* media */ | 202 } /* media */ |
| 232 | 203 |
| 233 .toolbar-item.emulate-active { | 204 .toolbar-item.emulate-active { |
| 234 background-color: rgb(163,163,163); | 205 background-color: rgb(163,163,163); |
| 235 } | 206 } |
| 236 | 207 |
| 237 .toolbar-counter { | 208 .toolbar-counter { |
| 238 cursor: pointer; | 209 cursor: pointer; |
| 239 padding: 0 2px; | 210 padding: 0 2px; |
| 240 min-width: 30px; | 211 min-width: 26px; |
| 241 } | 212 } |
| 242 | 213 |
| 243 .toolbar-counter-item { | 214 .toolbar-counter-item { |
| 244 margin-left: 6px; | 215 margin-left: 6px; |
| 245 } | 216 } |
| 246 | 217 |
| 247 .toolbar-counter-item label { | 218 .toolbar-counter-item label { |
| 248 cursor: inherit; | 219 cursor: inherit; |
| 249 } | 220 } |
| 250 | 221 |
| 251 .toolbar-counter-item.toolbar-counter-item-first { | 222 .toolbar-counter-item.toolbar-counter-item-first { |
| 252 margin-left: 0; | 223 margin-left: 0; |
| 253 } | 224 } |
| 254 | 225 |
| 255 .toolbar-counter-item > div { | 226 .toolbar-counter-item > div { |
| 256 margin-right: 2px; | 227 margin-right: 2px; |
| 257 } | 228 } |
| 258 | 229 |
| 259 .toolbar-divider { | 230 .toolbar-divider { |
| 260 margin-left: 7px; | 231 background-color: #ccc; |
| 261 border-right: 1px solid hsla(0, 0%, 0%, 0.1); | 232 width: 1px; |
| 262 } | 233 margin: 2px 2px; |
| 263 | 234 height: 17px; |
| 264 :host-context(.material) .toolbar-divider { | |
| 265 height: 18px; | |
| 266 } | 235 } |
| 267 | 236 |
| 268 .toolbar-group-label { | 237 .toolbar-group-label { |
| 269 margin-left: 6px; | 238 margin-left: 5px; |
| 270 margin-right: 3px; | 239 margin-right: 3px; |
| 271 color: #888; | 240 color: #888; |
| 272 } | 241 } |
| 273 | 242 |
| 274 | |
| 275 /* Predefined items */ | 243 /* Predefined items */ |
| 276 | 244 |
| 277 .dock-toolbar-item.toggled-undocked .glyph { | 245 .dock-toolbar-item.toggled-undocked .glyph { |
| 278 -webkit-mask-position: 0 -48px; | 246 -webkit-mask-position: 0 -48px; |
| 279 } | 247 } |
| 280 | 248 |
| 281 .dock-toolbar-item.toggled-bottom .glyph { | 249 .dock-toolbar-item.toggled-bottom .glyph { |
| 282 -webkit-mask-position: -32px -24px; | 250 -webkit-mask-position: -32px -24px; |
| 283 } | 251 } |
| 284 | 252 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 298 -webkit-mask-position: -224px -24px; | 266 -webkit-mask-position: -224px -24px; |
| 299 } | 267 } |
| 300 | 268 |
| 301 .emulation-toolbar-item .glyph { | 269 .emulation-toolbar-item .glyph { |
| 302 -webkit-mask-position: -160px 0; | 270 -webkit-mask-position: -160px 0; |
| 303 } | 271 } |
| 304 | 272 |
| 305 .emulation-toolbar-item.warning::after { | 273 .emulation-toolbar-item.warning::after { |
| 306 background-image: url(Images/toolbarButtonGlyphs.png); | 274 background-image: url(Images/toolbarButtonGlyphs.png); |
| 307 background-size: 352px 144px; | 275 background-size: 352px 144px; |
| 308 width: 15px; | 276 width: 10px; |
| 309 height: 11px; | 277 height: 12px; |
| 310 content: ""; | 278 content: ""; |
| 311 position: relative; | 279 position: absolute; |
| 312 top: 4px; | 280 right: 3px; |
| 281 bottom: 2px; |
| 313 background-position: -202px -107px; | 282 background-position: -202px -107px; |
| 314 z-index: 1; | 283 z-index: 1; |
| 315 } | 284 } |
| 316 | 285 |
| 317 @media (-webkit-min-device-pixel-ratio: 1.5) { | 286 @media (-webkit-min-device-pixel-ratio: 1.5) { |
| 318 .emulation-toolbar-item.warning::before { | 287 .emulation-toolbar-item.warning::before { |
| 319 background-image: url(Images/toolbarButtonGlyphs_2x.png); | 288 background-image: url(Images/toolbarButtonGlyphs_2x.png); |
| 320 } | 289 } |
| 321 } /* media */ | 290 } /* media */ |
| 322 | 291 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 } | 489 } |
| 521 | 490 |
| 522 .playback-rate-button.toggled-on > .toolbar-button-text { | 491 .playback-rate-button.toggled-on > .toolbar-button-text { |
| 523 color: rgb(66, 129, 235); | 492 color: rgb(66, 129, 235); |
| 524 } | 493 } |
| 525 | 494 |
| 526 button.playback-rate-button { | 495 button.playback-rate-button { |
| 527 width: auto; | 496 width: auto; |
| 528 margin-right: 10px; | 497 margin-right: 10px; |
| 529 } | 498 } |
| OLD | NEW |