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

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

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

Powered by Google App Engine
This is Rietveld 408576698