Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: ui/keyboard/resources/webui/main.css

Issue 15176004: Web Component Virtual Keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reviews Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/keyboard/resources/webui/layout_us.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 {
166 -webkit-box-flex: 1.4;
167 }
168
169 .return { 62 .return {
170 -webkit-box-flex: 1.5; 63 -webkit-box-flex: 1.5 !important;
171 } 64 }
172 65
173 .backspace { 66 .backspace {
174 -webkit-box-flex: 1.6; 67 -webkit-box-flex: 1.7 !important;
175 } 68 }
176 69
177 .left-shift { 70 .left-shift,
178 -webkit-box-flex: 1.8; 71 .left-more {
72 -webkit-box-flex: 1.4 !important;
179 } 73 }
180 74
181 .right-shift { 75 .right-shift,
182 -webkit-box-flex: 2.0; 76 .right-more {
77 -webkit-box-flex: 1.6 !important;
183 } 78 }
184 79
185 .space { 80 .space {
186 -webkit-box-flex: 4.8; 81 -webkit-box-flex: 4.8 !important;
187 } 82 }
188 83
189 .bar { 84 .bar {
190 -webkit-box-flex: 0.6; 85 -webkit-box-flex: 0.6 !important;
191 } 86 }
192 87
193 .nodisplay { 88 .backspace,
194 display: none; 89 .tab,
90 .return,
91 .left-shift,
92 .right-shift,
93 .left-more,
94 .right-more,
95 .symbol,
96 .moddown.shift {
97 font-size: 80%;
195 } 98 }
99
100 .mic {
bshe 2013/05/24 14:43:50 Looks like the mic key still exists in the mock. I
101 background-image: url('images/mic.svg');
102 }
103
104 .audio .mic {
105 background-image: url('images/mic-green.svg');
106 }
OLDNEW
« no previous file with comments | « ui/keyboard/resources/webui/layout_us.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698