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

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

Issue 264913003: Changes shift key icon & highlight/caps UX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 6 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/layouts/system-qwerty.html ('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 @font-face { 7 @font-face {
8 font-family: roboto-bold; 8 font-family: roboto-bold;
9 src: url(roboto_bold.ttf); 9 src: url(roboto_bold.ttf);
10 } 10 }
11 11
12 /** 12 /**
13 * TODO(rsadam@): Remove all these rules once we switch to native 13 * TODO(rsadam@): Remove all these rules once we switch to native
14 * shadow dom. 14 * shadow dom.
15 */ 15 */
16 kb-keyboard.ctrl-active kb-modifier-key[char=Ctrl], 16 kb-keyboard.ctrl-active kb-modifier-key[char=Ctrl],
17 kb-keyboard.alt-active kb-modifier-key[char=Alt] { 17 kb-keyboard.alt-active kb-modifier-key[char=Alt],
18 background-color: #bbbbbb; 18 kb-keyboard.caps-locked kb-shift-key.dark {
19 } 19 -webkit-box-shadow: inset 0 0 3px 2px #aaaaaa;
20 20 background-color: #cccccc;
21 kb-keyboard[keyset="upper"] kb-shift-key.dark /deep/ .key {
22 background-image: url('images/shift-filled.svg');
23 }
24
25 kb-keyboard[keyset="lower"] kb-shift-key /deep/ .key{
26 background-image: url('images/shift.svg');
27 } 21 }
28 22
29 /** 23 /**
30 * Controls whether the shift key should be highlighted or not. 24 * Controls whether the shift key should be highlighted or not.
31 */ 25 */
32 kb-keyboard.caps-locked kb-shift-key.dark /deep/ 26 kb-keyboard[keyset="upper"] kb-shift-key.dark /deep/
33 .shift-light { 27 .shift-light {
34 background-color: #4285f4; 28 background-color: #4285f4;
35 } 29 }
36 30
37 .space, 31 .space,
38 .dark { 32 .dark {
39 font-size: 70%; 33 font-size: 70%;
40 } 34 }
41 35
42 .dark:not(.active), 36 .dark:not(.active),
43 :not(kb-altkey-set) > :not(.dark).active { 37 :not(kb-altkey-set) > :not(.dark).active {
44 background-color: #dddddd; 38 background-color: #dddddd;
45 } 39 }
46 40
47 .space { 41 .space {
48 color: #bbbbbb; 42 color: #bbbbbb;
49 } 43 }
OLDNEW
« no previous file with comments | « ui/keyboard/resources/layouts/system-qwerty.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698