| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 Copyright (c) 2013 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 body { | 7 body { |
| 8 -webkit-user-select: none; | 8 -webkit-user-select: none; |
| 9 background-color: #151515; | 9 background-image: -webkit-linear-gradient(#282828, #000000); |
| 10 background-size: cover; |
| 10 margin: 0; | 11 margin: 0; |
| 11 overflow: hidden; | 12 overflow: hidden; |
| 12 padding: 0; | 13 padding: 0; |
| 13 } | 14 } |
| 14 | 15 |
| 15 kb-keyboard.ctrl-active kb-modifier-key[char=Ctrl], | 16 kb-keyboard.ctrl-active kb-modifier-key[char=Ctrl], |
| 16 kb-keyboard.alt-active kb-modifier-key[char=Alt] { | 17 kb-keyboard.alt-active kb-modifier-key[char=Alt] { |
| 17 color: #d5d5d5; | 18 color: #d5d5d5; |
| 18 } | 19 } |
| 19 | 20 |
| 20 /** | 21 /** |
| 21 * Controls whether the shift key should be highlighted or not. | 22 * Controls whether the shift key should be highlighted or not. |
| 22 * Only highlights if we are in the upper keyset, but not capslocked. | 23 * Only highlights if we are in the upper keyset, but not capslocked. |
| 23 */ | 24 */ |
| 24 kb-keyboard:not(.caps-locked)[keyset=upper] kb-shift-key { | 25 kb-keyboard:not(.caps-locked)[keyset=upper] kb-shift-key { |
| 25 color: #d5d5d5; | 26 color: #d5d5d5; |
| 26 } | 27 } |
| 27 | 28 |
| 28 *.dark { | 29 .dark { |
| 30 font-size: 70%; |
| 31 } |
| 32 |
| 33 .dark:not(.active) { |
| 29 -webkit-box-shadow: inset 0px 1px #313131, inset 0px -1px #202020; | 34 -webkit-box-shadow: inset 0px 1px #313131, inset 0px -1px #202020; |
| 30 background-color: #222222; | 35 background-color: #222222; |
| 31 border-bottom-color: #1c1c1c; | 36 border-bottom-color: #1c1c1c; |
| 32 border-top-color: #4f4f4f; | 37 border-top-color: #4f4f4f; |
| 33 font-size: 70%; | |
| 34 } | 38 } |
| 35 | 39 |
| 40 .caps-locked kb-shift-key.dark, |
| 41 .active { |
| 42 -webkit-box-shadow: inset 0px 1px #969696, inset 0px -1px #6f6f6f; |
| 43 border-bottom-color: #5b5b5b; |
| 44 border-top-color: #a4a4a4; |
| 45 } |
| 46 |
| 47 .caps-locked kb-shift-key.dark, |
| 48 .active:not(.dark) { |
| 49 background-image: -webkit-linear-gradient(#8b8b8b, #7d7d7d); |
| 50 background-size: cover; |
| 51 } |
| 36 | 52 |
| 37 .caps-locked kb-shift-key, | 53 .caps-locked kb-shift-key, |
| 38 .active { | 54 .active.dark { |
| 39 -webkit-box-shadow: inset 0px 1px #969696, inset 0px -1px #6f6f6f !important; | |
| 40 /** | |
| 41 * TODO(rsadam): Make active keys have a linear gradient once we figure out | |
| 42 * how to handle keys that already have background images. | |
| 43 */ | |
| 44 background-color: #8b8b8b; | 55 background-color: #8b8b8b; |
| 45 border-bottom-color: #5b5b5b !important; | |
| 46 border-top-color: #a4a4a4 !important; | |
| 47 } | 56 } |
| 48 | 57 |
| 49 /** | 58 /** |
| 50 * The microphone key is handled separately from other images since the image | 59 * The microphone key is handled separately from other images since the image |
| 51 * displayed changes depending on whether it's pressed or not. | 60 * displayed changes depending on whether it's pressed or not. |
| 52 */ | 61 */ |
| 53 .microphone { | 62 .microphone { |
| 54 background-image: url('images/microphone.svg'); | 63 background-image: url('images/microphone.svg'); |
| 55 background-position: 4%; | 64 background-position: 4%; |
| 56 background-size: 25%; | 65 background-size: 25%; |
| 57 } | 66 } |
| 58 | 67 |
| 59 .audio .microphone { | 68 .audio .microphone { |
| 60 background-image: url('images/microphone-green.svg'); | 69 background-image: url('images/microphone-green.svg'); |
| 61 } | 70 } |
| OLD | NEW |