From 8fce311668977b966f21d61220dcdb2091375a16 Mon Sep 17 00:00:00 2001 From: "stevet@chromium.org" Date: Sat, 22 Jun 2013 00:49:16 +0000 Subject: Adjust the WebUI keyboard css and layout to work better in narrow spaces. NOTE that this must be patched on top of https://codereview.chromium.org/15176004/ TODOs: Add a list of adjustments here before review. Review URL: https://chromiumcodereview.appspot.com/16336002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207982 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/keyboard/resources/elements/kb-key.html | 4 +- ui/keyboard/resources/webui/constants.js | 2 +- ui/keyboard/resources/webui/keysets.html | 69 +++++++++++++++--------------- ui/keyboard/resources/webui/main.css | 36 +++++++++++++--- 4 files changed, 67 insertions(+), 44 deletions(-) diff --git a/ui/keyboard/resources/elements/kb-key.html b/ui/keyboard/resources/elements/kb-key.html index 7226b69..8d24355 100644 --- a/ui/keyboard/resources/elements/kb-key.html +++ b/ui/keyboard/resources/elements/kb-key.html @@ -26,8 +26,8 @@ position: absolute; right: 0; top: 0; - padding-left: 14px; - padding-right: 14px; + padding-left: 10px; + padding-right: 10px; }
diff --git a/ui/keyboard/resources/webui/constants.js b/ui/keyboard/resources/webui/constants.js index ea620c6..94ccfb2 100644 --- a/ui/keyboard/resources/webui/constants.js +++ b/ui/keyboard/resources/webui/constants.js @@ -13,7 +13,7 @@ var ASPECT_RATIO = 2.0; * Ratio of key height and font size. * @type {number} */ -var FONT_SIZE_RATIO = 3.5; +var FONT_SIZE_RATIO = 2; /** * The number of rows in each keyset. diff --git a/ui/keyboard/resources/webui/keysets.html b/ui/keyboard/resources/webui/keysets.html index 67a9eac..bc86231 100644 --- a/ui/keyboard/resources/webui/keysets.html +++ b/ui/keyboard/resources/webui/keysets.html @@ -6,113 +6,114 @@