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

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

Issue 16336002: Adjust the WebUI keyboard css and layout to work better in narrow spaces. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
Index: ui/keyboard/resources/webui/main.css
diff --git a/ui/keyboard/resources/webui/main.css b/ui/keyboard/resources/webui/main.css
index 66244b11594505af7814841e0c43d0bdc76fa270..ea10c72998e25a97b3143d266b1a04896f2b1ab7 100644
--- a/ui/keyboard/resources/webui/main.css
+++ b/ui/keyboard/resources/webui/main.css
@@ -21,27 +21,43 @@ kb-keyboard {
kb-key {
background-color: #444444;
- border-top: 1px solid #666666;
- border-radius: 3px;
+ border-top: 2px solid #555555;
+ border-radius: 1px;
color: #ffffff;
font-family: sans-serif;
- font-weight: 100;
+ font-weight: 600;
margin-left: 3px;
}
kb-key.dark {
background-color: #333333;
+ border-top: 2px solid #444444;
+}
+
+/* Left and right-side special keys with a character letter next to them need
+ * additional padding.
+ * */
+kb-key.padded-left-special {
+ margin-right: 2px;
+}
+
+kb-key.padded-right-special {
+ margin-left: 5px;
+}
+
+kb-row.top {
+ margin-top: 5px !important;
}
#upper .left-shift,
#upper .right-shift,
.active {
background-color: #acacac !important;
- border-top: 1px solid rgba(125,125,125,0.5);
+ border-top: 2px solid rgba(125,125,125,0.5) !important;
/* Do not use box shadow until performance improves
* http://code.google.com/p/chromium/issues/detail?id=99045
- box-shadow: 0px 0px 15px #fff;
- */
+ * box-shadow: 0px 0px 15px #fff;
+ * */
}
.at,
@@ -90,7 +106,8 @@ kb-key.dark {
.right-more,
.symbol,
.moddown.shift {
- font-size: 80%;
+ font-size: 55%;
+ font-weight: 200;
}
.mic {
@@ -100,3 +117,8 @@ kb-key.dark {
.audio .mic {
background-image: url('images/mic-green.svg');
}
+
+.half-key-spacer {
+ -webkit-box-flex: 0.5;
+ margin-left: 4px;
+}
« ui/keyboard/resources/webui/keysets.html ('K') | « ui/keyboard/resources/webui/keysets.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698