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

Unified Diff: ui/keyboard/resources/main.css

Issue 23332022: Virtual Keyboard Shift Highlight fixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed style issues. Now uses double quotes. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/keyboard/resources/layouts/webui_qwerty.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/main.css
diff --git a/ui/keyboard/resources/main.css b/ui/keyboard/resources/main.css
index 0799ea4f9ca99f629369a6b752a970c9dd206389..afebccc4394103145d04b083be584e81b0c5890d 100644
--- a/ui/keyboard/resources/main.css
+++ b/ui/keyboard/resources/main.css
@@ -68,6 +68,14 @@ kb-key::x-superscript[inverted] {
color: #ffffff;
}
+/**
+* Controls whether the shift key should be highlighted or not.
+* Only highlights if we are in a lockable keyboard which is not locked.
+*/
+kb-keyboard:not(.locked) kb-keyset[lockable] kb-shift-key {
+ color: lightblue;
+}
+
kb-shift-key.dark,
kb-layout-selector.dark,
kb-key.dark {
@@ -87,7 +95,7 @@ kb-altkey::x-key {
text-align: center;
}
-.caps kb-shift-key,
+.locked kb-shift-key,
.active {
background-color: #848490 !important;
border-top: 2px solid #A9A9AF !important;
@@ -157,11 +165,6 @@ kb-altkey::x-key {
background-image: url('images/microphone-green.svg');
}
-/* Highlight for shift key when pressed. */
-.highlight kb-shift-key {
- color: lightblue;
-}
-
.layout-selector {
background-image: url('images/keyboard.svg');
}
« no previous file with comments | « ui/keyboard/resources/layouts/webui_qwerty.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698