Fixed time zone calculation issue
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / js / 3rdParty / codemirror / codemirror.css
1 /* BASICS */
2
3 .CodeMirror {
4 /* Set height, width, borders, and global font properties here */
5 font-family: monospace;
6 height: 300px;
7 }
8 .CodeMirror-scroll {
9 /* Set scrolling behaviour here */
10 overflow: auto;
11 }
12
13 /* PADDING */
14
15 .CodeMirror-lines {
16 padding: 4px 0; /* Vertical padding around content */
17 }
18 .CodeMirror pre {
19 padding: 0 4px; /* Horizontal padding of content */
20 }
21
22 .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
23 background-color: white; /* The little square between H and V scrollbars */
24 }
25
26 /* GUTTER */
27
28 .CodeMirror-gutters {
29 border-right: 1px solid #ddd;
30 background-color: #f7f7f7;
31 white-space: nowrap;
32 }
33 .CodeMirror-linenumbers {}
34 .CodeMirror-linenumber {
35 padding: 0 3px 0 5px;
36 min-width: 20px;
37 text-align: right;
38 color: #999;
39 }
40
41 /* CURSOR */
42
43 .CodeMirror div.CodeMirror-cursor {
44 border-left: 1px solid black;
45 z-index: 3;
46 }
47 /* Shown when moving in bi-directional text */
48 .CodeMirror div.CodeMirror-secondarycursor {
49 border-left: 1px solid silver;
50 }
51 .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
52 width: auto;
53 border: 0;
54 background: #7e7;
55 z-index: 1;
56 }
57 /* Can style cursor different in overwrite (non-insert) mode */
58 .CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {}
59
60 .cm-tab { display: inline-block; }
61
62 /* DEFAULT THEME */
63
64 .cm-s-default .cm-keyword {color: #708;}
65 .cm-s-default .cm-atom {color: #219;}
66 .cm-s-default .cm-number {color: #164;}
67 .cm-s-default .cm-def {color: #00f;}
68 .cm-s-default .cm-variable {color: black;}
69 .cm-s-default .cm-variable-2 {color: #05a;}
70 .cm-s-default .cm-variable-3 {color: #085;}
71 .cm-s-default .cm-property {color: black;}
72 .cm-s-default .cm-operator {color: black;}
73 .cm-s-default .cm-comment {color: #a50;}
74 .cm-s-default .cm-string {color: #a11;}
75 .cm-s-default .cm-string-2 {color: #f50;}
76 .cm-s-default .cm-meta {color: #555;}
77 .cm-s-default .cm-error {color: #f00;}
78 .cm-s-default .cm-qualifier {color: #555;}
79 .cm-s-default .cm-builtin {color: #30a;}
80 .cm-s-default .cm-bracket {color: #997;}
81 .cm-s-default .cm-tag {color: #170;}
82 .cm-s-default .cm-attribute {color: #00c;}
83 .cm-s-default .cm-header {color: blue;}
84 .cm-s-default .cm-quote {color: #090;}
85 .cm-s-default .cm-hr {color: #999;}
86 .cm-s-default .cm-link {color: #00c;}
87
88 .cm-negative {color: #d44;}
89 .cm-positive {color: #292;}
90 .cm-header, .cm-strong {font-weight: bold;}
91 .cm-em {font-style: italic;}
92 .cm-link {text-decoration: underline;}
93
94 .cm-invalidchar {color: #f00;}
95
96 div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
97 div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
98
99 /* STOP */
100
101 /* The rest of this file contains styles related to the mechanics of
102 the editor. You probably shouldn't touch them. */
103
104 .CodeMirror {
105 line-height: 1;
106 position: relative;
107 overflow: hidden;
108 background: white;
109 color: black;
110 }
111
112 .CodeMirror-scroll {
113 /* 30px is the magic margin used to hide the element's real scrollbars */
114 /* See overflow: hidden in .CodeMirror */
115 margin-bottom: -30px; margin-right: -30px;
116 padding-bottom: 30px; padding-right: 30px;
117 height: 100%;
118 outline: none; /* Prevent dragging from highlighting the element */
119 position: relative;
120 }
121 .CodeMirror-sizer {
122 position: relative;
123 }
124
125 /* The fake, visible scrollbars. Used to force redraw during scrolling
126 before actuall scrolling happens, thus preventing shaking and
127 flickering artifacts. */
128 .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
129 position: absolute;
130 z-index: 6;
131 display: none;
132 }
133 .CodeMirror-vscrollbar {
134 right: 0; top: 0;
135 overflow-x: hidden;
136 overflow-y: scroll;
137 }
138 .CodeMirror-hscrollbar {
139 bottom: 0; left: 0;
140 overflow-y: hidden;
141 overflow-x: scroll;
142 }
143 .CodeMirror-scrollbar-filler {
144 right: 0; bottom: 0;
145 }
146 .CodeMirror-gutter-filler {
147 left: 0; bottom: 0;
148 }
149
150 .CodeMirror-gutters {
151 position: absolute; left: 0; top: 0;
152 padding-bottom: 30px;
153 z-index: 3;
154 }
155 .CodeMirror-gutter {
156 white-space: normal;
157 height: 100%;
158 padding-bottom: 30px;
159 margin-bottom: -32px;
160 display: inline-block;
161 /* Hack to make IE7 behave */
162 *zoom:1;
163 *display:inline;
164 }
165 .CodeMirror-gutter-elt {
166 position: absolute;
167 cursor: default;
168 z-index: 4;
169 }
170
171 .CodeMirror-lines {
172 cursor: text;
173 }
174 .CodeMirror pre {
175 /* Reset some styles that the rest of the page might have set */
176 -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
177 border-width: 0;
178 background: transparent;
179 font-family: inherit;
180 font-size: inherit;
181 margin: 0;
182 white-space: pre;
183 word-wrap: normal;
184 line-height: inherit;
185 color: inherit;
186 z-index: 2;
187 position: relative;
188 overflow: visible;
189 }
190 .CodeMirror-wrap pre {
191 word-wrap: break-word;
192 white-space: pre-wrap;
193 word-break: normal;
194 }
195 .CodeMirror-linebackground {
196 position: absolute;
197 left: 0; right: 0; top: 0; bottom: 0;
198 z-index: 0;
199 }
200
201 .CodeMirror-linewidget {
202 position: relative;
203 z-index: 2;
204 overflow: auto;
205 }
206
207 .CodeMirror-widget {
208 display: inline-block;
209 }
210
211 .CodeMirror-wrap .CodeMirror-scroll {
212 overflow-x: hidden;
213 }
214
215 .CodeMirror-measure {
216 position: absolute;
217 width: 100%; height: 0px;
218 overflow: hidden;
219 visibility: hidden;
220 }
221 .CodeMirror-measure pre { position: static; }
222
223 .CodeMirror div.CodeMirror-cursor {
224 position: absolute;
225 visibility: hidden;
226 border-right: none;
227 width: 0;
228 }
229 .CodeMirror-focused div.CodeMirror-cursor {
230 visibility: visible;
231 }
232
233 .CodeMirror-selected { background: #d9d9d9; }
234 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
235
236 .cm-searching {
237 background: #ffa;
238 background: rgba(255, 255, 0, .4);
239 }
240
241 /* IE7 hack to prevent it from returning funny offsetTops on the spans */
242 .CodeMirror span { *vertical-align: text-bottom; }
243
244 @media print {
245 /* Hide the cursor when printing */
246 .CodeMirror div.CodeMirror-cursor {
247 visibility: hidden;
248 }
249 }