Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ui / keyboard / resources / main.css
index 6ab675d..dfea91e 100644 (file)
  found in the LICENSE file.
 */
 
-body {
-  -webkit-box-pack: center;
-  -webkit-user-select: none;
-  background-color: #0b0b0b;
-  display: -webkit-box;
-  margin: 0;
-  overflow: hidden;
-  padding: 0;
-}
-
-kb-keyboard {
-  -webkit-box-orient: vertical;
-  display: -webkit-box;
-  max-width: 1280px;
-  width: 1280px;
-}
-
-kb-abc-key,
-kb-shift-key,
-kb-modifier-key,
-kb-hide-keyboard-key,
-kb-layout-selector,
-kb-key {
-  background-color: #3b3b3e;
-  background-position: center center;
-  background-repeat: no-repeat;
-  background-size: contain;
-  border-top: 2px solid #4b4b4e;
-  border-radius: 2px;
-  color: #ffffff;
-  display: -webkit-box;
-  font-family: 'Open Sans', 'Noto Sans UI', sans-serif;
-  font-weight: 300;
-  margin-left: 0.25em;
-  position: relative;
-}
-
-kb-abc-key::x-key,
-kb-modifier-key::x-key,
-kb-shift-key::x-key,
-kb-layout-selector::x-key,
-kb-key::x-key {
-  bottom: 0;
-  height: 1.2em;
-  left: 0;
-  margin: auto;
-  padding-left: 0.7em;
-  padding-right: 0.7em;
-  position: absolute;
-  right: 0;
-  top: 0;
-}
-
-kb-key::x-hinttext {
-  color: #7c7c7c;
-  font-size: 70%;
-  position: absolute;
-  right: 7%;
-  top: 5%;
-}
-
-kb-key::x-key[inverted] {
-  color: #7c7c7c;
-}
-
-kb-key::x-hinttext[inverted] {
-  color: #ffffff;
+@font-face {
+  font-family: roboto-bold;
+  src: url(roboto_bold.ttf);
 }
 
+/**
+ * TODO(rsadam@): Remove all these rules once we switch to native
+ * shadow dom.
+ */
 kb-keyboard.ctrl-active kb-modifier-key[char=Ctrl],
-kb-keyboard.alt-active kb-modifier-key[char=Alt] {
-  color: lightblue;
+kb-keyboard.alt-active kb-modifier-key[char=Alt],
+kb-keyboard.caps-locked kb-shift-key.dark {
+  -webkit-box-shadow: inset 0 0 3px 2px #aaaaaa;
+  background-color: #cccccc;
 }
 
 /**
 * Controls whether the shift key should be highlighted or not.
-* Only highlights if we are in the upper keyset, but not capslocked.
 */
-kb-keyboard:not(.caps-locked)[keyset=upper] kb-shift-key {
-  color: lightblue;
-}
-
-*.dark {
-  background-color: #2a2a2c;
-  border-top: 2px solid #3a3a3c;
+kb-keyboard[keyset="upper"] kb-shift-key.dark /deep/
+    .shift-light {
+    background-color: #4285f4;
 }
 
-/* TODO(stevet): We can probably share most of this with kb-key::x-key. */
-kb-altkey::x-key {
-  bottom: 0;
-  height: 1.2em;
-  left: 0;
-  margin: auto;
-  position: absolute;
-  right: 0;
-  top: 0;
-  text-align: center;
-}
-
-.caps-locked kb-shift-key,
-.active {
-  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;
-  */
-}
-
-/**
- * TODO(kevers): Use weight attribute for kb-key rather than CSS rules to
- * enable special keys to be used for multiple layouts when the weights
- * need to vary.
- */
-.at,
-.com,
-.comma,
-.period,
-.tab {
-  -webkit-box-flex: 1.3 !important;
-}
-
-.return {
-  -webkit-box-flex: 2.1 !important;
-}
-
-.microphone {
-  -webkit-box-flex: 1.5 !important;
-}
-
-.symbol {
-  -webkit-box-flex: 1.25 !important;
-}
-
-.backspace {
-  -webkit-box-flex: 1.7 !important;
-}
-
-.left-more {
-  -webkit-box-flex: 1.8 !important;
-}
-
-.right-more {
-  -webkit-box-flex: 1.8 !important;
-}
-
-.bar {
-  -webkit-box-flex: 0.6 !important;
-}
-
-kb-key.esc,
-kb-shift-key.shift,
-kb-modifier-key,
-kb-abc-key,
-kb-key:-webkit-any(.backspace,
-                   .dotcom,
-                   .left-more,
-                   .return,
-                   .right-more,
-                   .symbol,
-                   .tab) {
+.space,
+.dark {
   font-size: 70%;
-  /* Adjust margin for consistent spacing with the smaller font size. */
-  margin-left: 0.35em;
-}
-
-/**
- * Images for keys.
- */
-.arrow-down {
- background-image: url('images/down.svg');
 }
 
-.arrow-left {
- background-image: url('images/left.svg');
+.dark:not(.active),
+:not(kb-altkey-set) > :not(.dark).active {
+  background-color: #dddddd;
 }
 
-.arrow-right {
background-image: url('images/right.svg');
+.space {
 color: #bbbbbb;
 }
-
-.arrow-up {
- background-image: url('images/up.svg');
-}
-
-.back {
-  background-image: url('images/back.svg');
-}
-
-.brightness-down {
-  background-image: url('images/brightness-down.svg');
-}
-
-.brightness-up {
-  background-image: url('images/brightness-up.svg');
-}
-
-.change-window {
-  background-image: url('images/change-window.svg');
-}
-
-.down {
-  background-image: url('images/down.svg');
-}
-
-.forward {
-  background-image: url('images/forward.svg');
-}
-
-.fullscreen {
-  background-image: url('images/fullscreen.svg');
-}
-
-.keyboard {
-  background-image: url('images/keyboard.svg');
-}
-
-.hide-keyboard,
-.layout-selector {
-  background-image: url('images/keyboard.svg');
-}
-
-.left {
-  background-image: url('images/left.svg');
-}
-
-.microphone {
-  background-image: url('images/microphone.svg');
-  background-position: 4%;
-  background-size: 25%;
-}
-
-.audio .microphone {
-  background-image: url('images/microphone-green.svg');
-}
-
-.mute {
-  background-image: url('images/mute.svg');
-}
-
-.reload {
-  background-image: url('images/reload.svg');
-}
-
-.right {
-  background-image: url('images/right.svg');
-}
-
-.shutdown {
-  background-image: url('images/shutdown.svg');
-}
-
-.up {
-  background-image: url('images/up.svg');
-}
-
-.volume-down {
-  background-image: url('images/volume-down.svg');
-}
-
-.volume-up {
-  background-image: url('images/volume-up.svg');
-}
-
-/**
- * Background size for all images should be the same.
- */
-.back,
-.brightness-down,
-.brightness-up,
-.change-window,
-.down,
-.forward,
-.fullscreen,
-.left,
-.mute,
-.reload,
-.right,
-.shutdown,
-.up,
-.volume-down,
-.volume-up {
-  background-size:50%;
-}
\ No newline at end of file