summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/resources/webui/main.css
blob: ea10c72998e25a97b3143d266b1a04896f2b1ab7 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*
 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;
}

kb-key {
  background-color: #444444;
  border-top: 2px solid #555555;
  border-radius: 1px;
  color: #ffffff;
  font-family: sans-serif;
  font-weight: 600;
  margin-left: 3px;
}

kb-key.dark {
  background-color: #333333;
  border-top: 2px solid #444444;
}

/* Left and right-side special keys with a character letter next to them need
 * additional padding.
 * */
kb-key.padded-left-special {
  margin-right: 2px;
}

kb-key.padded-right-special {
  margin-left: 5px;
}

kb-row.top {
  margin-top: 5px !important;
}

#upper .left-shift,
#upper .right-shift,
.active {
  background-color: #acacac !important;
  border-top: 2px solid rgba(125,125,125,0.5) !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;
   * */
}

.at,
.com,
.comma,
.hide,
.mic,
.period,
.tab {
  -webkit-box-flex: 1.3 !important;
}

.symbol,
.return {
  -webkit-box-flex: 1.5 !important;
}

.backspace {
  -webkit-box-flex: 1.7 !important;
}

.left-shift,
.left-more {
  -webkit-box-flex: 1.4 !important;
}

.right-shift,
.right-more {
  -webkit-box-flex: 1.6 !important;
}

.space {
  -webkit-box-flex: 4.8 !important;
}

.bar {
  -webkit-box-flex: 0.6 !important;
}

.backspace,
.tab,
.return,
.left-shift,
.right-shift,
.left-more,
.right-more,
.symbol,
.moddown.shift {
  font-size: 55%;
  font-weight: 200;
}

.mic {
  background-image: url('images/mic.svg');
}

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

.half-key-spacer {
  -webkit-box-flex: 0.5;
  margin-left: 4px;
}