| OLD | NEW |
| (Empty) | |
| 1 /* |
| 2 Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 /* for touches.js */ |
| 8 #touches { |
| 9 bottom: 0; |
| 10 left: 0; |
| 11 position: absolute; |
| 12 right: 0; |
| 13 top: 0; |
| 14 z-index: 100; |
| 15 } |
| 16 /* END for touches.js */ |
| 17 |
| 18 body { |
| 19 -webkit-user-select: none; |
| 20 color: white; |
| 21 margin: 0; |
| 22 overflow: hidden; |
| 23 padding: 0; |
| 24 } |
| 25 |
| 26 div.main { |
| 27 -webkit-box-orient: vertical; |
| 28 background: -webkit-linear-gradient(#bababa, #868686) no-repeat; |
| 29 display: -webkit-box; |
| 30 left: 0; |
| 31 position: absolute; |
| 32 right: 0; |
| 33 top: -10px; |
| 34 } |
| 35 |
| 36 div.keyboard { |
| 37 -webkit-box-flex: 1; |
| 38 display: -webkit-box; |
| 39 margin: 0 auto; |
| 40 text-align: center; |
| 41 } |
| 42 |
| 43 div.rows { |
| 44 -webkit-box-flex: 1; |
| 45 -webkit-box-orient: vertical; |
| 46 display: -webkit-box; |
| 47 margin-bottom: 5px; |
| 48 text-align: center; |
| 49 } |
| 50 |
| 51 div.row { |
| 52 -webkit-box-flex: 1; |
| 53 display: -webkit-box; |
| 54 margin-right: 5px; |
| 55 margin-top: 5px; |
| 56 } |
| 57 |
| 58 div.row > div { |
| 59 -webkit-box-flex: 1; |
| 60 display: -webkit-box; |
| 61 } |
| 62 |
| 63 .panel { |
| 64 border: 0; |
| 65 clear: both; |
| 66 margin-left: 5px; |
| 67 text-align: left; |
| 68 } |
| 69 |
| 70 .backspace > div { |
| 71 background-image: url('images/del.svg'); |
| 72 } |
| 73 |
| 74 .tab > div { |
| 75 background-image: url('images/tab.svg'); |
| 76 } |
| 77 |
| 78 .return > div { |
| 79 background-image: url('images/ret.svg'); |
| 80 } |
| 81 |
| 82 .mic > div { |
| 83 background-image: url('images/mic.svg'); |
| 84 } |
| 85 |
| 86 .button { |
| 87 background: -webkit-linear-gradient(rgb(90, 97, 111), rgb(80, 86, 98)); |
| 88 } |
| 89 .button:active { |
| 90 background: -webkit-linear-gradient(rgb(80, 86, 98), rgb(90, 97, 111)); |
| 91 } |
| 92 |
| 93 .auxiliary:active { |
| 94 background: -webkit-linear-gradient(rgb(90, 97, 111), rgb(80, 86, 98)); |
| 95 } |
| 96 |
| 97 .key { |
| 98 -webkit-box-flex: 1; |
| 99 background: -webkit-linear-gradient(#fff, #cacaca); |
| 100 border: 1px solid transparent; |
| 101 border-radius: 6px; |
| 102 /* Reserving equivalent space to .key:active so |
| 103 keys don't shift when selected. */ |
| 104 /* Do not use box shadow until performance improves |
| 105 * http://code.google.com/p/chromium/issues/detail?id=99045 |
| 106 box-shadow: 0px 1px 1px #000; |
| 107 */ |
| 108 color: #535353; |
| 109 display: -webkit-box; |
| 110 font-family: sans-serif; |
| 111 font-weight: 100; |
| 112 margin-left: 5px; |
| 113 position: relative; |
| 114 } |
| 115 |
| 116 .key > div { |
| 117 bottom: 0; |
| 118 left: 0; |
| 119 margin: auto; |
| 120 position: absolute; |
| 121 right: 0; |
| 122 top: 0; |
| 123 } |
| 124 |
| 125 .key:active { |
| 126 background: -webkit-linear-gradient(#d6d6d6, #acacac); |
| 127 border: 1px solid rgba(125,125,125,0.5); |
| 128 /* Do not use box shadow until performance improves |
| 129 * http://code.google.com/p/chromium/issues/detail?id=99045 |
| 130 box-shadow: 0px 0px 15px #fff; |
| 131 */ |
| 132 } |
| 133 |
| 134 div.moddown { |
| 135 background: -webkit-linear-gradient(#d6d6d6, #acacac); |
| 136 border-color: rgb(48, 74, 155); |
| 137 } |
| 138 |
| 139 .image-key { |
| 140 background-position: center center; |
| 141 background-repeat: no-repeat; |
| 142 background-size: contain; |
| 143 height: 100%; |
| 144 width: 100%; |
| 145 } |
| 146 |
| 147 .text-key { |
| 148 height: 1.2em; |
| 149 } |
| 150 |
| 151 |
| 152 .shift > div.image-key { |
| 153 background-image: url('images/shift.svg'); |
| 154 } |
| 155 |
| 156 .moddown.shift > div.image-key { |
| 157 background-image: url('images/shift-down.svg'); |
| 158 } |
| 159 |
| 160 .hide > div { |
| 161 background-image: url('images/keyboard.svg'); |
| 162 } |
| 163 |
| 164 .at, |
| 165 .tab, |
| 166 .com, |
| 167 .comma, |
| 168 .hide, |
| 169 .mic, |
| 170 .period { |
| 171 -webkit-box-flex: 1.3; |
| 172 } |
| 173 |
| 174 .symbol { |
| 175 -webkit-box-flex: 1.4; |
| 176 } |
| 177 |
| 178 .return { |
| 179 -webkit-box-flex: 1.5; |
| 180 } |
| 181 |
| 182 .backspace { |
| 183 -webkit-box-flex: 1.6; |
| 184 } |
| 185 |
| 186 .left-shift { |
| 187 -webkit-box-flex: 1.8; |
| 188 } |
| 189 |
| 190 .right-shift { |
| 191 -webkit-box-flex: 2.0; |
| 192 } |
| 193 |
| 194 .space { |
| 195 -webkit-box-flex: 4.8; |
| 196 } |
| 197 |
| 198 .bar { |
| 199 -webkit-box-flex: 0.6; |
| 200 } |
| 201 |
| 202 .nodisplay { |
| 203 display: none; |
| 204 } |
| OLD | NEW |