]>
Commit | Line | Data |
---|---|---|
3d800c15 TL |
1 | /** |
2 | * Copyright (c) 2014 The xterm.js authors. All rights reserved. | |
3 | * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) | |
4 | * https://github.com/chjj/term.js | |
5 | * @license MIT | |
6 | * | |
7 | * Permission is hereby granted, free of charge, to any person obtaining a copy | |
8 | * of this software and associated documentation files (the "Software"), to deal | |
9 | * in the Software without restriction, including without limitation the rights | |
10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
11 | * copies of the Software, and to permit persons to whom the Software is | |
12 | * furnished to do so, subject to the following conditions: | |
13 | * | |
14 | * The above copyright notice and this permission notice shall be included in | |
15 | * all copies or substantial portions of the Software. | |
16 | * | |
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
23 | * THE SOFTWARE. | |
24 | * | |
25 | * Originally forked from (with the author's permission): | |
26 | * Fabrice Bellard's javascript vt100 for jslinux: | |
27 | * http://bellard.org/jslinux/ | |
28 | * Copyright (c) 2011 Fabrice Bellard | |
29 | * The original design remains. The terminal itself | |
30 | * has been extended to include xterm CSI codes, among | |
31 | * other features. | |
32 | */ | |
33 | ||
34 | /** | |
35 | * Default styles for xterm.js | |
36 | */ | |
37 | ||
38 | .xterm { | |
3d800c15 TL |
39 | position: relative; |
40 | user-select: none; | |
41 | -ms-user-select: none; | |
42 | -webkit-user-select: none; | |
43 | } | |
44 | ||
45 | .xterm.focus, | |
46 | .xterm:focus { | |
47 | outline: none; | |
48 | } | |
49 | ||
50 | .xterm .xterm-helpers { | |
51 | position: absolute; | |
52 | top: 0; | |
53 | /** | |
54 | * The z-index of the helpers must be higher than the canvases in order for | |
55 | * IMEs to appear on top. | |
56 | */ | |
e264b129 | 57 | z-index: 5; |
3d800c15 TL |
58 | } |
59 | ||
60 | .xterm .xterm-helper-textarea { | |
d0f166b1 TL |
61 | padding: 0; |
62 | border: 0; | |
63 | margin: 0; | |
64 | /* Move textarea out of the screen to the far left, so that the cursor is not visible */ | |
3d800c15 TL |
65 | position: absolute; |
66 | opacity: 0; | |
67 | left: -9999em; | |
68 | top: 0; | |
69 | width: 0; | |
70 | height: 0; | |
e264b129 | 71 | z-index: -5; |
3d800c15 TL |
72 | /** Prevent wrapping so the IME appears against the textarea at the correct position */ |
73 | white-space: nowrap; | |
74 | overflow: hidden; | |
75 | resize: none; | |
76 | } | |
77 | ||
78 | .xterm .composition-view { | |
79 | /* TODO: Composition position got messed up somewhere */ | |
80 | background: #000; | |
81 | color: #FFF; | |
82 | display: none; | |
83 | position: absolute; | |
84 | white-space: nowrap; | |
85 | z-index: 1; | |
86 | } | |
87 | ||
88 | .xterm .composition-view.active { | |
89 | display: block; | |
90 | } | |
91 | ||
92 | .xterm .xterm-viewport { | |
93 | /* On OS X this is required in order for the scroll bar to appear fully opaque */ | |
94 | background-color: #000; | |
95 | overflow-y: scroll; | |
96 | cursor: default; | |
97 | position: absolute; | |
98 | right: 0; | |
99 | left: 0; | |
100 | top: 0; | |
101 | bottom: 0; | |
102 | } | |
103 | ||
104 | .xterm .xterm-screen { | |
105 | position: relative; | |
106 | } | |
107 | ||
108 | .xterm .xterm-screen canvas { | |
109 | position: absolute; | |
110 | left: 0; | |
111 | top: 0; | |
112 | } | |
113 | ||
114 | .xterm .xterm-scroll-area { | |
115 | visibility: hidden; | |
116 | } | |
117 | ||
118 | .xterm-char-measure-element { | |
119 | display: inline-block; | |
120 | visibility: hidden; | |
121 | position: absolute; | |
122 | top: 0; | |
123 | left: -9999em; | |
124 | line-height: normal; | |
125 | } | |
126 | ||
127 | .xterm { | |
128 | cursor: text; | |
129 | } | |
130 | ||
131 | .xterm.enable-mouse-events { | |
132 | /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */ | |
133 | cursor: default; | |
134 | } | |
135 | ||
136 | .xterm.xterm-cursor-pointer { | |
137 | cursor: pointer; | |
138 | } | |
139 | ||
140 | .xterm.column-select.focus { | |
141 | /* Column selection mode */ | |
142 | cursor: crosshair; | |
143 | } | |
144 | ||
145 | .xterm .xterm-accessibility, | |
146 | .xterm .xterm-message { | |
147 | position: absolute; | |
148 | left: 0; | |
149 | top: 0; | |
150 | bottom: 0; | |
151 | right: 0; | |
e264b129 | 152 | z-index: 10; |
3d800c15 TL |
153 | color: transparent; |
154 | } | |
155 | ||
156 | .xterm .live-region { | |
157 | position: absolute; | |
158 | left: -9999px; | |
159 | width: 1px; | |
160 | height: 1px; | |
161 | overflow: hidden; | |
162 | } | |
163 | ||
164 | .xterm-dim { | |
165 | opacity: 0.5; | |
166 | } | |
167 | ||
168 | .xterm-underline { | |
169 | text-decoration: underline; | |
170 | } | |
f0815f0a DC |
171 | |
172 | .xterm-strikethrough { | |
173 | text-decoration: line-through; | |
174 | } |