diff options
author | stevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 18:43:19 +0000 |
---|---|---|
committer | stevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 18:43:19 +0000 |
commit | f97e8d911eb8d6659bba28da25fa2dfca785f4f7 (patch) | |
tree | e92a5887d8849bffd524dd19a4b97533ca4541e3 /ui/keyboard | |
parent | 15c31b960859e1cce6f6929c13fa2679aa0fe343 (diff) | |
download | chromium_src-f97e8d911eb8d6659bba28da25fa2dfca785f4f7.zip chromium_src-f97e8d911eb8d6659bba28da25fa2dfca785f4f7.tar.gz chromium_src-f97e8d911eb8d6659bba28da25fa2dfca785f4f7.tar.bz2 |
Give the WebUI keyboard the v1 style.
This also adds the key styling to webui's main.css, which I forgot to do in a previous refactoring patch.
Review URL: https://chromiumcodereview.appspot.com/18484007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211175 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard')
-rw-r--r-- | ui/keyboard/resources/main.css | 8 | ||||
-rw-r--r-- | ui/keyboard/resources/webui/main.css | 53 |
2 files changed, 50 insertions, 11 deletions
diff --git a/ui/keyboard/resources/main.css b/ui/keyboard/resources/main.css index e2c4ab9..b562cae 100644 --- a/ui/keyboard/resources/main.css +++ b/ui/keyboard/resources/main.css @@ -33,14 +33,14 @@ kb-key { kb-key::x-key { bottom: 0; - left: 0; height: 1.2em; + left: 0; margin: auto; + padding-left: 10px; + padding-right: 10px; position: absolute; right: 0; top: 0; - padding-left: 10px; - padding-right: 10px; } kb-key::x-superscript { @@ -67,8 +67,8 @@ kb-key.dark { /* TODO(stevet): We can probably share most of this with kb-key::x-key. */ kb-accent-key::x-key { bottom: 0; - left: 0; height: 1.2em; + left: 0; margin: auto; position: absolute; right: 0; diff --git a/ui/keyboard/resources/webui/main.css b/ui/keyboard/resources/webui/main.css index ea10c72..02496177 100644 --- a/ui/keyboard/resources/webui/main.css +++ b/ui/keyboard/resources/webui/main.css @@ -20,18 +20,57 @@ kb-keyboard { } kb-key { - background-color: #444444; - border-top: 2px solid #555555; + background-color: #3b3b3e; + border-top: 2px solid #4b4b4e; border-radius: 1px; color: #ffffff; - font-family: sans-serif; + font-family: 'Open Sans', sans-serif; font-weight: 600; margin-left: 3px; } +kb-key::x-key { + bottom: 0; + height: 1.2em; + left: 0; + margin: auto; + padding-left: 10px; + padding-right: 10px; + position: absolute; + right: 0; + top: 0; +} + +kb-key::x-superscript { + color: #7c7c7c; + font-size: 70%; + position: absolute; + right: 7%; + top: 5%; +} + +kb-key::x-key[inverted] { + color: #7c7c7c; +} + +kb-key::x-superscript[inverted] { + color: #ffffff; +} + kb-key.dark { - background-color: #333333; - border-top: 2px solid #444444; + background-color: #2a2a2c; + border-top: 2px solid #3a3a3c; +} + +kb-accent-key::x-key { + bottom: 0; + height: 1.2em; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + text-align: center; } /* Left and right-side special keys with a character letter next to them need @@ -52,8 +91,8 @@ kb-row.top { #upper .left-shift, #upper .right-shift, .active { - background-color: #acacac !important; - border-top: 2px solid rgba(125,125,125,0.5) !important; + background-color: #848490 !important; + border-top: 2px solid #A9A9AF !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; |