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

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: use third_party polymer Created 7 years, 6 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 .active {
39 background-color: #acacac !important;
40 border-top: 1px solid rgba(125,125,125,0.5);
119 /* Do not use box shadow until performance improves 41 /* Do not use box shadow until performance improves
120 * http://code.google.com/p/chromium/issues/detail?id=99045 42 * http://code.google.com/p/chromium/issues/detail?id=99045
121 box-shadow: 0px 0px 15px #fff; 43 box-shadow: 0px 0px 15px #fff;
122 */ 44 */
123 } 45 }
124 46
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, 47 .at,
156 .com, 48 .com,
157 .comma, 49 .comma,
158 .hide, 50 .hide,
159 .mic, 51 .mic,
160 .period { 52 .period,
161 -webkit-box-flex: 1.3; 53 .tab {
54 -webkit-box-flex: 1.3 !important;
162 } 55 }
163 56
164 .symbol, 57 .symbol,
165 .shift {
166 -webkit-box-flex: 1.4;
167 }
168
169 .return { 58 .return {
170 -webkit-box-flex: 1.5; 59 -webkit-box-flex: 1.5 !important;
171 } 60 }
172 61
173 .backspace { 62 .backspace {
174 -webkit-box-flex: 1.6; 63 -webkit-box-flex: 1.7 !important;
175 } 64 }
176 65
177 .left-shift { 66 .left-shift,
178 -webkit-box-flex: 1.8; 67 .left-more {
68 -webkit-box-flex: 1.4 !important;
179 } 69 }
180 70
181 .right-shift { 71 .right-shift,
182 -webkit-box-flex: 2.0; 72 .right-more {
73 -webkit-box-flex: 1.6 !important;
183 } 74 }
184 75
185 .space { 76 .space {
186 -webkit-box-flex: 4.8; 77 -webkit-box-flex: 4.8 !important;
187 } 78 }
188 79
189 .bar { 80 .bar {
190 -webkit-box-flex: 0.6; 81 -webkit-box-flex: 0.6 !important;
191 } 82 }
192 83
193 .nodisplay { 84 .backspace,
194 display: none; 85 .tab,
86 .return,
87 .left-shift,
88 .right-shift,
89 .left-more,
90 .right-more,
91 .symbol,
92 .moddown.shift {
93 font-size: 80%;
195 } 94 }
95
96 .mic {
97 background-image: url('images/mic.svg');
98 }
99
100 .audio .mic {
101 background-image: url('images/mic-green.svg');
102 }
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