Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 * 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 | 3 * found in the LICENSE file. |
| 4 found in the LICENSE file. | 4 */ |
|
Evan Stade
2012/04/03 02:59:48
:(
Dan Beam
2012/04/03 04:15:06
Done.
| |
| 5 */ | |
| 6 | 5 |
| 7 body { | 6 body { |
| 7 -webkit-user-select: none; | |
| 8 background: -webkit-linear-gradient(#bababa, #868686) no-repeat; | 8 background: -webkit-linear-gradient(#bababa, #868686) no-repeat; |
| 9 color: white; | 9 color: white; |
| 10 margin: 0; | 10 margin: 0; |
| 11 overflow: hidden; | 11 overflow: hidden; |
| 12 padding: 0; | 12 padding: 0; |
| 13 -webkit-user-select: none; | |
| 14 } | 13 } |
| 15 | 14 |
| 16 div.main { | 15 div.main { |
| 16 -webkit-box-orient: vertical; | |
| 17 display: -webkit-box; | |
| 17 margin: 0 auto; | 18 margin: 0 auto; |
| 18 display: -webkit-box; | |
| 19 -webkit-box-orient: vertical; | |
| 20 } | 19 } |
| 21 | 20 |
| 22 div.keyboard { | 21 div.keyboard { |
| 22 -webkit-box-flex: 1; | |
| 23 display: -webkit-box; | |
| 23 margin: 0 auto; | 24 margin: 0 auto; |
| 24 display: -webkit-box; | |
| 25 text-align: center; | 25 text-align: center; |
| 26 -webkit-box-flex: 1; | |
| 27 } | 26 } |
| 28 | 27 |
| 29 div.rows { | 28 div.rows { |
| 29 -webkit-box-flex: 1; | |
| 30 -webkit-box-orient: vertical; | |
| 30 display: -webkit-box; | 31 display: -webkit-box; |
| 31 margin-bottom: 5px; | 32 margin-bottom: 5px; |
| 32 text-align: center; | 33 text-align: center; |
| 33 -webkit-box-orient: vertical; | |
| 34 -webkit-box-flex: 1; | |
| 35 } | 34 } |
| 36 | 35 |
| 37 div.row { | 36 div.row { |
| 37 -webkit-box-flex: 1; | |
| 38 display: -webkit-box; | 38 display: -webkit-box; |
| 39 margin-right: 5px; | |
| 39 margin-top: 5px; | 40 margin-top: 5px; |
| 40 margin-right: 5px; | |
| 41 -webkit-box-flex: 1; | |
| 42 } | 41 } |
| 43 | 42 |
| 44 div.row > div { | 43 div.row > div { |
| 44 -webkit-box-flex: 1; | |
| 45 display: -webkit-box; | 45 display: -webkit-box; |
| 46 -webkit-box-flex: 1; | |
| 47 } | 46 } |
| 48 | 47 |
| 49 .handwritingcanvas { | 48 .handwritingcanvas { |
| 49 border: 1px solid gray; | |
| 50 border-radius: 4px; | 50 border-radius: 4px; |
| 51 border: 1px solid gray; | |
| 52 color: #dbdbdb; | 51 color: #dbdbdb; |
| 53 font-family: sans-serif; | 52 font-family: sans-serif; |
| 54 margin: 5px 0 0 5px; | 53 margin: 5px 0 0 5px; |
| 55 text-align: center; | 54 text-align: center; |
| 56 } | 55 } |
| 57 | 56 |
| 58 .ime { | 57 .ime { |
| 59 border: 1px solid gray; | 58 border: 1px solid gray; |
| 60 color: #dbdbdb; | 59 color: #dbdbdb; |
| 61 display: inline-block; | 60 display: inline-block; |
| 62 font-family: sans-serif; | 61 font-family: sans-serif; |
| 63 margin: 0; | 62 margin: 0; |
| 64 text-align: center; | 63 text-align: center; |
| 65 white-space: nowrap; | 64 white-space: nowrap; |
| 66 } | 65 } |
| 67 | 66 |
| 68 .panel { | 67 .panel { |
| 69 border: 0; | 68 border: 0; |
| 70 clear: both; | 69 clear: both; |
| 71 margin-left: 5px; | 70 margin-left: 5px; |
| 72 text-align: left; | 71 text-align: left; |
| 73 } | 72 } |
| 74 | 73 |
| 75 .popup { | 74 .popup { |
| 76 background: rgba(50, 50, 50, 0.95); | 75 background: rgba(50, 50, 50, 0.95); |
| 77 border: 1px solid rgba(50, 50, 50, 0.8); | 76 border: 1px solid rgba(50, 50, 50, 0.8); |
| 77 border-radius: 4px; | |
| 78 box-shadow: 5px 5px 3px rgba(50, 50, 50, 0.3); | |
| 78 padding-right: 5px; | 79 padding-right: 5px; |
| 79 position: absolute; | 80 position: absolute; |
| 80 -webkit-border-radius: 4px; | |
| 81 -webkit-box-shadow: 5px 5px 3px rgba(50, 50, 50, 0.3); | |
| 82 } | 81 } |
| 83 | 82 |
| 84 .button { | 83 .button { |
| 85 background: -webkit-linear-gradient(#5a616f, #505662); | 84 background: -webkit-linear-gradient(rgb(90, 97, 111), rgb(80, 86, 98)); |
| 86 } | 85 } |
| 87 .button:active { | 86 .button:active { |
| 88 background: -webkit-linear-gradient(#505662, #5a616f); | 87 background: -webkit-linear-gradient(rgb(80, 86, 98), rgb(90, 97, 111)); |
| 89 } | 88 } |
| 90 | 89 |
| 91 .auxiliary:active { | 90 .auxiliary:active { |
| 92 background: -webkit-linear-gradient(#5a616f, #505662); | 91 background: -webkit-linear-gradient(rgb(90, 97, 111), rgb(80, 86, 98)); |
| 93 } | 92 } |
| 94 | 93 |
| 95 .key { | 94 .key { |
| 95 -webkit-box-flex: 1; | |
| 96 background: -webkit-linear-gradient(#fff, #cacaca); | 96 background: -webkit-linear-gradient(#fff, #cacaca); |
| 97 border-radius: 6px; | |
| 98 /* Reserving equivalent space to .key:active so | 97 /* Reserving equivalent space to .key:active so |
| 99 keys don't shift when selected. */ | 98 keys don't shift when selected. */ |
| 100 border: 1px solid transparent; | 99 border: 1px solid transparent; |
| 100 border-radius: 6px; | |
| 101 /* Do not use box shadow until performance improves | 101 /* Do not use box shadow until performance improves |
| 102 * http://code.google.com/p/chromium/issues/detail?id=99045 | 102 * http://code.google.com/p/chromium/issues/detail?id=99045 |
| 103 box-shadow: 0 1px 1px #000; | 103 box-shadow: 0 1px 1px #000; |
| 104 */ | 104 */ |
| 105 color: #535353; | 105 color: #535353; |
| 106 display: -webkit-box; | 106 display: -webkit-box; |
| 107 font-family: sans-serif; | 107 font-family: sans-serif; |
| 108 font-weight: 100; | 108 font-weight: 100; |
| 109 margin-left: 5px; | 109 margin-left: 5px; |
| 110 position: relative; | 110 position: relative; |
| 111 -webkit-box-flex: 1; | |
| 112 } | 111 } |
| 113 | 112 |
| 114 .key > div { | 113 .key > div { |
| 115 bottom: 0; | 114 bottom: 0; |
| 116 left: 0; | 115 left: 0; |
| 117 margin: auto; | 116 margin: auto; |
| 118 position: absolute; | 117 position: absolute; |
| 119 right: 0; | 118 right: 0; |
| 120 top: 0; | 119 top: 0; |
| 121 } | 120 } |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 136 background: -webkit-linear-gradient(#d6d6d6, #acacac); | 135 background: -webkit-linear-gradient(#d6d6d6, #acacac); |
| 137 border: 1px solid rgba(125,125,125,0.5); | 136 border: 1px solid rgba(125,125,125,0.5); |
| 138 /* Do not use box shadow until performance improves | 137 /* Do not use box shadow until performance improves |
| 139 * http://code.google.com/p/chromium/issues/detail?id=99045 | 138 * http://code.google.com/p/chromium/issues/detail?id=99045 |
| 140 box-shadow: 0 0 15px #fff; | 139 box-shadow: 0 0 15px #fff; |
| 141 */ | 140 */ |
| 142 } | 141 } |
| 143 | 142 |
| 144 div.moddown { | 143 div.moddown { |
| 145 background: -webkit-linear-gradient(#d6d6d6, #acacac); | 144 background: -webkit-linear-gradient(#d6d6d6, #acacac); |
| 146 border-color: #304a9b; | 145 border-color: rgb(48, 74, 155); |
| 147 } | 146 } |
| 148 | 147 |
| 149 .image-key { | 148 .image-key { |
| 149 background-position: center center; | |
| 150 background-repeat: no-repeat; | |
| 150 background-size: contain; | 151 background-size: contain; |
| 151 background-repeat: no-repeat; | |
| 152 background-position: center center; | |
| 153 height: 100%; | 152 height: 100%; |
| 154 width: 100%; | 153 width: 100%; |
| 155 } | 154 } |
| 156 | 155 |
| 157 .text-key { | 156 .text-key { |
| 158 height: 1.2em; | 157 height: 1.2em; |
| 159 } | 158 } |
| 160 | 159 |
| 161 .backspace > div, .handwriting-backspace > div { | 160 .backspace > div, |
| 162 background-image: url("del.svg"); | 161 .handwriting-backspace > div { |
| 162 background-image: url('del.svg'); | |
| 163 } | 163 } |
| 164 | 164 |
| 165 .tab > div { | 165 .tab > div { |
| 166 background-image: url("tab.svg"); | 166 background-image: url('tab.svg'); |
| 167 } | 167 } |
| 168 | 168 |
| 169 .return > div, .handwriting-return > div { | 169 .return > div, |
| 170 background-image: url("ret.svg"); | 170 .handwriting-return > div { |
| 171 background-image: url('ret.svg'); | |
| 171 } | 172 } |
| 172 | 173 |
| 173 .mic > div, .handwriting-mic > div { | 174 .mic > div, |
| 174 background-image: url("mic.svg"); | 175 .handwriting-mic > div { |
| 176 background-image: url('mic.svg'); | |
| 175 } | 177 } |
| 176 | 178 |
| 177 .shift > div.image-key { | 179 .shift > div.image-key { |
| 178 background-image: url("shift.svg"); | 180 background-image: url('shift.svg'); |
| 179 } | 181 } |
| 180 | 182 |
| 181 .moddown.shift > div.image-key { | 183 .moddown.shift > div.image-key { |
| 182 background-image: url("shift-down.svg"); | 184 background-image: url('shift-down.svg'); |
| 183 } | 185 } |
| 184 | 186 |
| 185 .hide > div { | 187 .hide > div { |
| 186 background-image: url("keyboard.svg"); | 188 background-image: url('keyboard.svg'); |
| 187 } | 189 } |
| 188 | 190 |
| 189 .at, | 191 .at, |
| 190 .com, | 192 .com, |
| 191 .comma, | 193 .comma, |
| 192 .handwriting-backspace, | 194 .handwriting-backspace, |
| 193 .hide, | 195 .hide, |
| 194 .mic, | 196 .mic, |
| 195 .period, | 197 .period, |
| 196 .return, | 198 .return, |
| 197 .symbol { | 199 .symbol { |
| 198 -webkit-box-flex: 1.3; | 200 -webkit-box-flex: 1.3; |
| 199 } | 201 } |
| 200 | 202 |
| 201 .backspace, | 203 .backspace, |
| 202 .left_shift { | 204 .left-shift { |
| 203 -webkit-box-flex: 1.6; | 205 -webkit-box-flex: 1.6; |
| 204 } | 206 } |
| 205 | 207 |
| 206 .space { | 208 .space { |
| 207 -webkit-box-flex: 4.8; | 209 -webkit-box-flex: 4.8; |
| 208 } | 210 } |
| 209 | 211 |
| 210 .handwriting-mic, | 212 .handwriting-mic, |
| 211 .handwriting-space { | 213 .handwriting-space { |
| 212 -webkit-box-flex: 3.7; | 214 -webkit-box-flex: 3.7; |
| 213 } | 215 } |
| 214 | 216 |
| 215 .handwriting-clear, | 217 .handwriting-clear, |
| 216 .handwriting-return { | 218 .handwriting-return { |
| 217 -webkit-box-flex: 5; | 219 -webkit-box-flex: 5; |
| 218 } | 220 } |
| 219 | 221 |
| 220 .nodisplay { | 222 .nodisplay { |
| 221 display: none; | 223 display: none; |
| 222 } | 224 } |
| OLD | NEW |