summaryrefslogtreecommitdiffstats
path: root/chromium/ui/keyboard/resources/main.css
blob: e2c672adc7e20420c43769423f5693ac76197601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 Copyright (c) 2013 The Chromium Authors. All rights reserved.
 Use of this source code is governed by a BSD-style license that can be
 found in the LICENSE file.
*/

body {
  -webkit-box-pack: center;
  -webkit-user-select: none;
  background-color: #0b0b0b;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

kb-keyboard {
  -webkit-box-orient: vertical;
  display: -webkit-box;
  max-width: 1280px;
  width: 1280px;
}

kb-keyboard.ctrl-active kb-modifier-key[char=Ctrl],
kb-keyboard.alt-active kb-modifier-key[char=Alt] {
  color: lightblue;
}

/**
* Controls whether the shift key should be highlighted or not.
* Only highlights if we are in the upper keyset, but not capslocked.
*/
kb-keyboard:not(.caps-locked)[keyset=upper] kb-shift-key {
  color: lightblue;
}

*.dark {
  background-color: #2a2a2c;
  border-top: 2px solid #3a3a3c;
  font-size: 70%;
  margin-left: 0.35em;
}


.caps-locked kb-shift-key,
.active {
  background-color: #848490 !important;
  border-top: 2px solid #A9A9AF !important;
  /* Do not use box shadow until performance improves
   * http://code.google.com/p/chromium/issues/detail?id=99045
  box-shadow: 0px 0px 15px #fff;
  */
}

/**
 * The microphone key is handled separately from other images since the image
 * displayed changes depending on whether it's pressed or not.
 */
.microphone {
  background-image: url('images/microphone.svg');
  background-position: 4%;
  background-size: 25% !important;
}

.audio .microphone {
  background-image: url('images/microphone-green.svg');
}