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-box-pack: center; | 8 -webkit-box-pack: center; |
9 -webkit-user-select: none; | 9 -webkit-user-select: none; |
10 color: white; | 10 background-color: #0b0b0b; |
11 display: -webkit-box; | 11 display: -webkit-box; |
12 margin: 0; | 12 margin: 0; |
13 overflow: hidden; | 13 overflow: hidden; |
14 padding: 0; | 14 padding: 0; |
15 } | 15 } |
16 | 16 |
17 div.main { | 17 kb-keyboard { |
18 -webkit-box-orient: vertical; | 18 -webkit-box-orient: vertical; |
19 background: -webkit-linear-gradient(#bababa, #868686) no-repeat; | |
20 display: -webkit-box; | 19 display: -webkit-box; |
21 } | 20 } |
22 | 21 |
23 div.keyboard { | 22 kb-key { |
24 -webkit-box-flex: 1; | 23 background-color: #444444; |
25 display: -webkit-box; | 24 border-top: 1px solid #666666; |
26 margin: 0 auto; | |
27 text-align: center; | |
28 } | |
29 | |
30 div.rows { | |
31 -webkit-box-flex: 1; | |
32 -webkit-box-orient: vertical; | |
33 display: -webkit-box; | |
34 margin-bottom: 3px; | |
35 text-align: center; | |
36 } | |
37 | |
38 div.row { | |
39 -webkit-box-flex: 1; | |
40 display: -webkit-box; | |
41 margin-right: 3px; | |
42 margin-top: 3px; | |
43 } | |
44 | |
45 div.row > div { | |
46 -webkit-box-flex: 1; | |
47 display: -webkit-box; | |
48 } | |
49 | |
50 .panel { | |
51 border: 0; | |
52 clear: both; | |
53 margin-left: 5px; | |
54 text-align: left; | |
55 } | |
56 | |
57 .backspace > div { | |
58 background-image: url('images/del.svg'); | |
59 } | |
60 | |
61 .tab > div { | |
62 background-image: url('images/tab.svg'); | |
63 } | |
64 | |
65 .return > div { | |
66 background-image: url('images/ret.svg'); | |
67 } | |
68 | |
69 .mic > div { | |
70 background-image: url('images/mic.svg'); | |
71 } | |
72 | |
73 .mic.start > div { | |
74 background-image: url('images/mic-green.svg'); | |
75 } | |
76 | |
77 .button { | |
78 background: -webkit-linear-gradient(rgb(90, 97, 111), rgb(80, 86, 98)); | |
79 } | |
80 .button:active { | |
81 background: -webkit-linear-gradient(rgb(80, 86, 98), rgb(90, 97, 111)); | |
82 } | |
83 | |
84 .auxiliary:active { | |
85 background: -webkit-linear-gradient(rgb(90, 97, 111), rgb(80, 86, 98)); | |
86 } | |
87 | |
88 .key { | |
89 -webkit-box-flex: 1; | |
90 background: -webkit-linear-gradient(#fff, #cacaca); | |
91 border: 1px solid transparent; | |
92 border-radius: 3px; | 25 border-radius: 3px; |
93 /* Reserving equivalent space to .key:active so | 26 color: #ffffff; |
94 keys don't shift when selected. */ | |
95 /* Do not use box shadow until performance improves | |
96 * http://code.google.com/p/chromium/issues/detail?id=99045 | |
97 box-shadow: 0px 1px 1px #000; | |
98 */ | |
99 color: #535353; | |
100 display: -webkit-box; | |
101 font-family: sans-serif; | 27 font-family: sans-serif; |
102 font-weight: 100; | 28 font-weight: 100; |
103 margin-left: 3px; | 29 margin-left: 3px; |
104 position: relative; | |
105 } | 30 } |
106 | 31 |
107 .key > div { | 32 kb-key.dark { |
108 bottom: 0; | 33 background-color: #333333; |
109 left: 0; | |
110 margin: auto; | |
111 position: absolute; | |
112 right: 0; | |
113 top: 0; | |
114 } | 34 } |
115 | 35 |
116 .key:active { | 36 #upper .left-shift, |
117 background: -webkit-linear-gradient(#d6d6d6, #acacac); | 37 #upper .right-shift, |
118 border: 1px solid rgba(125,125,125,0.5); | 38 #symbol .symbol, |
| 39 #more .symbol, |
| 40 #more .left-more, |
| 41 #more .right-more, |
| 42 .active { |
| 43 background-color: #acacac !important; |
| 44 border-top: 1px solid rgba(125,125,125,0.5); |
119 /* Do not use box shadow until performance improves | 45 /* Do not use box shadow until performance improves |
120 * http://code.google.com/p/chromium/issues/detail?id=99045 | 46 * http://code.google.com/p/chromium/issues/detail?id=99045 |
121 box-shadow: 0px 0px 15px #fff; | 47 box-shadow: 0px 0px 15px #fff; |
122 */ | 48 */ |
123 } | 49 } |
124 | 50 |
125 div.moddown { | |
126 background: -webkit-linear-gradient(#d6d6d6, #acacac); | |
127 border-color: rgb(48, 74, 155); | |
128 } | |
129 | |
130 .image-key { | |
131 background-position: center center; | |
132 background-repeat: no-repeat; | |
133 background-size: contain; | |
134 height: 100%; | |
135 width: 100%; | |
136 } | |
137 | |
138 .text-key { | |
139 height: 1.2em; | |
140 } | |
141 | |
142 | |
143 .shift > div.image-key { | |
144 background-image: url('images/shift.svg'); | |
145 } | |
146 | |
147 .moddown.shift > div.image-key { | |
148 background-image: url('images/shift-down.svg'); | |
149 } | |
150 | |
151 .hide > div { | |
152 background-image: url('images/keyboard.svg'); | |
153 } | |
154 | |
155 .at, | 51 .at, |
156 .com, | 52 .com, |
157 .comma, | 53 .comma, |
158 .hide, | 54 .hide, |
159 .mic, | 55 .mic, |
160 .period { | 56 .period, |
161 -webkit-box-flex: 1.3; | 57 .tab { |
| 58 -webkit-box-flex: 1.3 !important; |
162 } | 59 } |
163 | 60 |
164 .symbol, | 61 .symbol, |
165 .shift { | 62 .return { |
166 -webkit-box-flex: 1.4; | 63 -webkit-box-flex: 1.5 !important; |
| 64 } |
| 65 |
| 66 .backspace { |
| 67 -webkit-box-flex: 1.7 !important; |
| 68 } |
| 69 |
| 70 .left-shift, |
| 71 .left-more { |
| 72 -webkit-box-flex: 1.4 !important; |
| 73 } |
| 74 |
| 75 .right-shift, |
| 76 .right-more { |
| 77 -webkit-box-flex: 1.6 !important; |
| 78 } |
| 79 |
| 80 .space { |
| 81 -webkit-box-flex: 4.8 !important; |
| 82 } |
| 83 |
| 84 .bar { |
| 85 -webkit-box-flex: 0.6 !important; |
| 86 } |
| 87 |
| 88 .backspace { |
| 89 background-image: url('images/del.svg'); |
| 90 } |
| 91 |
| 92 .tab { |
| 93 background-image: url('images/tab.svg'); |
167 } | 94 } |
168 | 95 |
169 .return { | 96 .return { |
170 -webkit-box-flex: 1.5; | 97 background-image: url('images/ret.svg'); |
171 } | 98 } |
172 | 99 |
173 .backspace { | 100 .mic { |
174 -webkit-box-flex: 1.6; | 101 background-image: url('images/mic.svg'); |
175 } | 102 } |
176 | 103 |
177 .left-shift { | 104 .audio .mic { |
178 -webkit-box-flex: 1.8; | 105 background-image: url('images/mic-green.svg'); |
179 } | 106 } |
180 | 107 |
| 108 .left-shift, |
181 .right-shift { | 109 .right-shift { |
182 -webkit-box-flex: 2.0; | 110 background-image: url('images/shift.svg'); |
183 } | 111 } |
184 | 112 |
185 .space { | 113 .moddown.shift { |
186 -webkit-box-flex: 4.8; | 114 background-image: url('images/shift-down.svg'); |
187 } | 115 } |
188 | 116 |
189 .bar { | 117 .hide { |
190 -webkit-box-flex: 0.6; | 118 background-image: url('images/keyboard.svg'); |
191 } | 119 } |
192 | |
193 .nodisplay { | |
194 display: none; | |
195 } | |
OLD | NEW |