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

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

Issue 148613007: Changes the keyboard background to a linear gradient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android
Patch Set: Refactored css to remove !important Created 6 years, 11 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/elements/kb-row.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 c7b57508ab882ea6eb7f1816c878f73f9b598766..6253c4e423cf73612019483a213b26fd3373dc6f 100644
--- a/ui/keyboard/resources/main.css
+++ b/ui/keyboard/resources/main.css
@@ -6,7 +6,8 @@
body {
-webkit-user-select: none;
- background-color: #151515;
+ background-image: -webkit-linear-gradient(#282828, #000000);
+ background-size: cover;
margin: 0;
overflow: hidden;
padding: 0;
@@ -25,25 +26,33 @@ kb-keyboard:not(.caps-locked)[keyset=upper] kb-shift-key {
color: #d5d5d5;
}
-*.dark {
+.dark {
+ font-size: 70%;
+}
+
+.dark:not(.active) {
-webkit-box-shadow: inset 0px 1px #313131, inset 0px -1px #202020;
background-color: #222222;
border-bottom-color: #1c1c1c;
border-top-color: #4f4f4f;
- font-size: 70%;
}
+.caps-locked kb-shift-key.dark,
+.active {
+ -webkit-box-shadow: inset 0px 1px #969696, inset 0px -1px #6f6f6f;
+ border-bottom-color: #5b5b5b;
+ border-top-color: #a4a4a4;
+}
+
+.caps-locked kb-shift-key.dark,
+.active:not(.dark) {
+ background-image: -webkit-linear-gradient(#8b8b8b, #7d7d7d);
+ background-size: cover;
+}
.caps-locked kb-shift-key,
-.active {
- -webkit-box-shadow: inset 0px 1px #969696, inset 0px -1px #6f6f6f !important;
- /**
- * TODO(rsadam): Make active keys have a linear gradient once we figure out
- * how to handle keys that already have background images.
- */
+.active.dark {
background-color: #8b8b8b;
- border-bottom-color: #5b5b5b !important;
- border-top-color: #a4a4a4 !important;
}
/**
« no previous file with comments | « ui/keyboard/resources/elements/kb-row.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698