summaryrefslogtreecommitdiff
path: root/chromium/ui/keyboard/resources/main.css
blob: 149384f8e677c4ee98c0019e6a99e3c5ef9cda47 (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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/*
 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-shift-key,
kb-layout-selector,
kb-key {
  background-color: #3b3b3e;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  border-top: 2px solid #4b4b4e;
  border-radius: 2px;
  color: #ffffff;
  display: -webkit-box;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  margin-left: 7px;
  position: relative;
}

kb-shift-key::x-key,
kb-layout-selector::x-key,
kb-key::x-key {
  bottom: 0;
  height: 1.2em;
  left: 0;
  margin: auto;
  padding-left: 10px;
  padding-right: 10px;
  position: absolute;
  right: 0;
  top: 0;
}

kb-key::x-superscript {
  color: #7c7c7c;
  font-size: 70%;
  position: absolute;
  right: 7%;
  top: 5%;
}

kb-key::x-key[inverted] {
  color: #7c7c7c;
}

kb-key::x-superscript[inverted] {
  color: #ffffff;
}

kb-shift-key.dark,
kb-layout-selector.dark,
kb-key.dark {
  background-color: #2a2a2c;
  border-top: 2px solid #3a3a3c;
}

/* TODO(stevet): We can probably share most of this with kb-key::x-key. */
kb-altkey::x-key {
  bottom: 0;
  height: 1.2em;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  text-align: center;
}

.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;
  */
}

/**
 * TODO(kevers): Use weight attribute for kb-key rather than CSS rules to
 * enable special keys to be used for multiple layouts when the weights
 * need to vary.
 */
.at,
.com,
.comma,
.period,
.tab {
  -webkit-box-flex: 1.3 !important;
}

.return {
  -webkit-box-flex: 2.1 !important;
}

.microphone {
  -webkit-box-flex: 1.5 !important;
}

.symbol {
  -webkit-box-flex: 1.25 !important;
}

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

.left-more {
  -webkit-box-flex: 1.8 !important;
}

.right-more {
  -webkit-box-flex: 1.8 !important;
}

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

.backspace,
.dotcom,
.left-more,
.shift,
.return,
.right-more,
.symbol,
.tab {
  font-size: 70%;
}

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

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

.layout-selector {
  background-image: url('images/keyboard.svg');
}