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