OLD | NEW |
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 body { | 6 body { |
7 height: calc(100% - 12px); | 7 height: calc(100% - 12px); |
8 overflow: auto; | 8 overflow: auto; |
9 } | 9 } |
10 | 10 |
11 html { | 11 html { |
12 height: 100%; | 12 height: 100%; |
13 } | 13 } |
14 | 14 |
15 #pnacl-plugin { | |
16 background-color: gray; | |
17 border: 1px solid | |
18 } | |
19 | |
20 #pnacl-plugin:focus { | |
21 background-color: yellow; | |
22 } | |
23 | |
24 .summary-log-container { | 15 .summary-log-container { |
25 width: 50%; | 16 width: 50%; |
26 height: 50vh; | 17 height: 100%; |
27 overflow-y: auto; | 18 overflow-y: auto; |
28 float: left; | 19 float: left; |
29 } | 20 } |
30 | 21 |
31 .text-log-container { | 22 #text-log-container { |
32 width: 100%; | 23 position: fixed; |
33 max-height: 25vh; | 24 top: 32px; |
34 overflow-y: auto; | 25 left: 16px; |
35 float: left; | 26 right: 16px; |
| 27 bottom: 32px; |
| 28 border: 1px solid gray; |
| 29 box-shadow: 0px 4px 10px 4px rgba(0,0,0,0.3); |
| 30 background-color: white; |
| 31 overflow: scroll; |
36 } | 32 } |
37 | 33 |
38 .char-event, | 34 #text-log { |
39 .key-down, | 35 padding: 8px; |
40 .key-up { | 36 } |
| 37 |
| 38 .selectable { |
| 39 -webkit-user-select: text; |
| 40 cursor: text; |
| 41 } |
| 42 |
| 43 .key-div { |
41 border-radius: 4px; | 44 border-radius: 4px; |
42 border: 1px solid rgba(0, 0, 0, 0.3); | 45 border: 1px solid rgba(0, 0, 0, 0.3); |
43 padding: 2px; | 46 padding: 2px; |
44 margin-right: 2px; | 47 margin-right: 2px; |
| 48 display: inline-block; |
45 } | 49 } |
46 | 50 |
47 .char-event { | 51 .char-event { |
48 background-color: yellow; | 52 background-color: #DDF; |
49 } | |
50 | |
51 .char-event::before { | |
52 content: "char:"; | |
53 } | 53 } |
54 | 54 |
55 .key-up { | 55 .key-up { |
56 background-color: #DFD; | 56 background-color: #DFD; |
57 } | 57 } |
58 | 58 |
59 .key-up::before { | 59 .key-up::before { |
60 content: "-"; | 60 content: "\2011"; /** non-breaking hyphen */ |
61 } | 61 } |
62 | 62 |
63 .key-down { | 63 .key-down { |
64 background-color: #FDD; | 64 background-color: #FDD; |
65 } | 65 } |
66 | 66 |
67 .key-down::before { | 67 .key-down::before { |
68 content: "+"; | 68 content: "+"; |
69 } | 69 } |
70 | 70 |
(...skipping 15 matching lines...) Expand all Loading... |
86 | 86 |
87 .chord-div.all-keys-released::after { | 87 .chord-div.all-keys-released::after { |
88 content: " \2714"; /* tick */ | 88 content: " \2714"; /* tick */ |
89 color: green; | 89 color: green; |
90 } | 90 } |
91 | 91 |
92 .chord-div.some-keys-still-pressed::after { | 92 .chord-div.some-keys-still-pressed::after { |
93 content: " \2716"; /* cross */ | 93 content: " \2716"; /* cross */ |
94 color: red; | 94 color: red; |
95 } | 95 } |
| 96 |
| 97 .controls { |
| 98 position: absolute; |
| 99 right: 8px; |
| 100 top: 8px; |
| 101 } |
OLD | NEW |