Show More
@@ -1,416 +1,418 b'' | |||||
1 | /* BASICS */ |
|
1 | /* BASICS */ | |
2 |
|
2 | |||
3 | .CodeMirror { |
|
3 | .CodeMirror { | |
4 | /* Set height, width, borders, and global font properties here */ |
|
4 | /* Set height, width, borders, and global font properties here */ | |
5 | font-family: monospace; |
|
5 | font-family: monospace; | |
6 | height: 300px; |
|
6 | height: 300px; | |
7 | color: black; |
|
7 | color: black; | |
8 | border-radius: @border-radius; |
|
8 | border-radius: @border-radius; | |
9 | border: @border-thickness solid @grey6; |
|
9 | border: @border-thickness solid @grey6; | |
10 | margin: 0 0 @padding; |
|
10 | margin: 0 0 @padding; | |
11 | } |
|
11 | } | |
12 |
|
12 | |||
13 | /* PADDING */ |
|
13 | /* PADDING */ | |
14 |
|
14 | |||
15 | .CodeMirror-lines { |
|
15 | .CodeMirror-lines { | |
16 | padding: 4px 0; /* Vertical padding around content */ |
|
16 | padding: 4px 0; /* Vertical padding around content */ | |
17 | } |
|
17 | } | |
18 | .CodeMirror pre { |
|
18 | .CodeMirror pre { | |
19 | padding: 0 4px; /* Horizontal padding of content */ |
|
19 | padding: 0 4px; /* Horizontal padding of content */ | |
20 | } |
|
20 | } | |
21 |
|
21 | |||
22 | .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { |
|
22 | .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { | |
23 | background-color: white; /* The little square between H and V scrollbars */ |
|
23 | background-color: white; /* The little square between H and V scrollbars */ | |
24 | } |
|
24 | } | |
25 |
|
25 | |||
26 | /* GUTTER */ |
|
26 | /* GUTTER */ | |
27 |
|
27 | |||
28 | .CodeMirror-gutters { |
|
28 | .CodeMirror-gutters { | |
29 | border-right: 1px solid #ddd; |
|
29 | border-right: 1px solid #ddd; | |
30 | background-color: @grey6; |
|
30 | background-color: @grey6; | |
31 | white-space: nowrap; |
|
31 | white-space: nowrap; | |
32 | } |
|
32 | } | |
33 | .CodeMirror-linenumbers {} |
|
33 | .CodeMirror-linenumbers {} | |
34 | .CodeMirror-linenumber { |
|
34 | .CodeMirror-linenumber { | |
35 | padding: 0 3px 0 5px; |
|
35 | padding: 0 3px 0 5px; | |
36 | min-width: 20px; |
|
36 | min-width: 20px; | |
37 | text-align: right; |
|
37 | text-align: right; | |
38 | color: @grey4; |
|
38 | color: @grey4; | |
39 | white-space: nowrap; |
|
39 | white-space: nowrap; | |
40 | } |
|
40 | } | |
41 |
|
41 | |||
42 | .CodeMirror-guttermarker { color: black; } |
|
42 | .CodeMirror-guttermarker { color: black; } | |
43 | .CodeMirror-guttermarker-subtle { color: #999; } |
|
43 | .CodeMirror-guttermarker-subtle { color: #999; } | |
44 |
|
44 | |||
45 | /* CURSOR */ |
|
45 | /* CURSOR */ | |
46 |
|
46 | |||
47 | .CodeMirror div.CodeMirror-cursor { |
|
47 | .CodeMirror div.CodeMirror-cursor { | |
48 | border-left: 1px solid black; |
|
48 | border-left: 1px solid black; | |
49 | } |
|
49 | } | |
50 | /* Shown when moving in bi-directional text */ |
|
50 | /* Shown when moving in bi-directional text */ | |
51 | .CodeMirror div.CodeMirror-secondarycursor { |
|
51 | .CodeMirror div.CodeMirror-secondarycursor { | |
52 | border-left: 1px solid silver; |
|
52 | border-left: 1px solid silver; | |
53 | } |
|
53 | } | |
54 | .CodeMirror.cm-fat-cursor div.CodeMirror-cursor { |
|
54 | .CodeMirror.cm-fat-cursor div.CodeMirror-cursor { | |
55 | width: auto; |
|
55 | width: auto; | |
56 | border: 0; |
|
56 | border: 0; | |
57 | background: @grey6; |
|
57 | background: @grey6; | |
58 | } |
|
58 | } | |
59 | .CodeMirror.cm-fat-cursor div.CodeMirror-cursors { |
|
59 | .CodeMirror.cm-fat-cursor div.CodeMirror-cursors { | |
60 | z-index: 1; |
|
60 | z-index: 1; | |
61 | } |
|
61 | } | |
62 |
|
62 | |||
63 | .cm-animate-fat-cursor { |
|
63 | .cm-animate-fat-cursor { | |
64 | width: auto; |
|
64 | width: auto; | |
65 | border: 0; |
|
65 | border: 0; | |
66 | -webkit-animation: blink 1.06s steps(1) infinite; |
|
66 | -webkit-animation: blink 1.06s steps(1) infinite; | |
67 | -moz-animation: blink 1.06s steps(1) infinite; |
|
67 | -moz-animation: blink 1.06s steps(1) infinite; | |
68 | animation: blink 1.06s steps(1) infinite; |
|
68 | animation: blink 1.06s steps(1) infinite; | |
69 | } |
|
69 | } | |
70 | @-moz-keyframes blink { |
|
70 | @-moz-keyframes blink { | |
71 | 0% { background: #7e7; } |
|
71 | 0% { background: #7e7; } | |
72 | 50% { background: none; } |
|
72 | 50% { background: none; } | |
73 | 100% { background: #7e7; } |
|
73 | 100% { background: #7e7; } | |
74 | } |
|
74 | } | |
75 | @-webkit-keyframes blink { |
|
75 | @-webkit-keyframes blink { | |
76 | 0% { background: #7e7; } |
|
76 | 0% { background: #7e7; } | |
77 | 50% { background: none; } |
|
77 | 50% { background: none; } | |
78 | 100% { background: #7e7; } |
|
78 | 100% { background: #7e7; } | |
79 | } |
|
79 | } | |
80 | @keyframes blink { |
|
80 | @keyframes blink { | |
81 | 0% { background: #7e7; } |
|
81 | 0% { background: #7e7; } | |
82 | 50% { background: none; } |
|
82 | 50% { background: none; } | |
83 | 100% { background: #7e7; } |
|
83 | 100% { background: #7e7; } | |
84 | } |
|
84 | } | |
85 |
|
85 | |||
86 | /* Can style cursor different in overwrite (non-insert) mode */ |
|
86 | /* Can style cursor different in overwrite (non-insert) mode */ | |
87 | div.CodeMirror-overwrite div.CodeMirror-cursor {} |
|
87 | div.CodeMirror-overwrite div.CodeMirror-cursor {} | |
88 |
|
88 | |||
89 | .cm-tab { display: inline-block; text-decoration: inherit; } |
|
89 | .cm-tab { display: inline-block; text-decoration: inherit; } | |
90 |
|
90 | |||
91 | .CodeMirror-ruler { |
|
91 | .CodeMirror-ruler { | |
92 | border-left: 1px solid #ccc; |
|
92 | border-left: 1px solid #ccc; | |
93 | position: absolute; |
|
93 | position: absolute; | |
94 | } |
|
94 | } | |
95 |
|
95 | |||
96 | /* DEFAULT THEME */ |
|
96 | /* DEFAULT THEME */ | |
97 |
|
97 | |||
98 | .cm-s-default .cm-header {color: blue;} |
|
98 | .cm-s-default .cm-header {color: blue;} | |
99 | .cm-s-default .cm-quote {color: #090;} |
|
99 | .cm-s-default .cm-quote {color: #090;} | |
100 | .cm-negative {color: #d44;} |
|
100 | .cm-negative {color: #d44;} | |
101 | .cm-positive {color: #292;} |
|
101 | .cm-positive {color: #292;} | |
102 | .cm-header, .cm-strong {font-weight: bold;} |
|
102 | .cm-header, .cm-strong {font-weight: bold;} | |
103 | .cm-em {font-style: italic;} |
|
103 | .cm-em {font-style: italic;} | |
104 | .cm-link {text-decoration: underline;} |
|
104 | .cm-link {text-decoration: underline;} | |
105 | .cm-strikethrough {text-decoration: line-through;} |
|
105 | .cm-strikethrough {text-decoration: line-through;} | |
106 |
|
106 | |||
107 | .cm-s-default .cm-keyword {color: #708;} |
|
107 | .cm-s-default .cm-keyword {color: #708;} | |
108 | .cm-s-default .cm-atom {color: #219;} |
|
108 | .cm-s-default .cm-atom {color: #219;} | |
109 | .cm-s-default .cm-number {color: #164;} |
|
109 | .cm-s-default .cm-number {color: #164;} | |
110 | .cm-s-default .cm-def {color: #00f;} |
|
110 | .cm-s-default .cm-def {color: #00f;} | |
111 | .cm-s-default .cm-variable, |
|
111 | .cm-s-default .cm-variable, | |
112 | .cm-s-default .cm-punctuation, |
|
112 | .cm-s-default .cm-punctuation, | |
113 | .cm-s-default .cm-property, |
|
113 | .cm-s-default .cm-property, | |
114 | .cm-s-default .cm-operator {} |
|
114 | .cm-s-default .cm-operator {} | |
115 | .cm-s-default .cm-variable-2 {color: #05a;} |
|
115 | .cm-s-default .cm-variable-2 {color: #05a;} | |
116 | .cm-s-default .cm-variable-3 {color: #085;} |
|
116 | .cm-s-default .cm-variable-3 {color: #085;} | |
117 | .cm-s-default .cm-comment {color: #a50;} |
|
117 | .cm-s-default .cm-comment {color: #a50;} | |
118 | .cm-s-default .cm-string {color: #a11;} |
|
118 | .cm-s-default .cm-string {color: #a11;} | |
119 | .cm-s-default .cm-string-2 {color: #f50;} |
|
119 | .cm-s-default .cm-string-2 {color: #f50;} | |
120 | .cm-s-default .cm-meta {color: #555;} |
|
120 | .cm-s-default .cm-meta {color: #555;} | |
121 | .cm-s-default .cm-qualifier {color: #555;} |
|
121 | .cm-s-default .cm-qualifier {color: #555;} | |
122 | .cm-s-default .cm-builtin {color: #30a;} |
|
122 | .cm-s-default .cm-builtin {color: #30a;} | |
123 | .cm-s-default .cm-bracket {color: #997;} |
|
123 | .cm-s-default .cm-bracket {color: #997;} | |
124 | .cm-s-default .cm-tag {color: #170;} |
|
124 | .cm-s-default .cm-tag {color: #170;} | |
125 | .cm-s-default .cm-attribute {color: #00c;} |
|
125 | .cm-s-default .cm-attribute {color: #00c;} | |
126 | .cm-s-default .cm-hr {color: #999;} |
|
126 | .cm-s-default .cm-hr {color: #999;} | |
127 | .cm-s-default .cm-link {color: #00c;} |
|
127 | .cm-s-default .cm-link {color: #00c;} | |
128 |
|
128 | |||
129 | .cm-s-default .cm-error {color: #f00;} |
|
129 | .cm-s-default .cm-error {color: #f00;} | |
130 | .cm-invalidchar {color: #f00;} |
|
130 | .cm-invalidchar {color: #f00;} | |
131 |
|
131 | |||
132 | .CodeMirror-composing { border-bottom: 2px solid; } |
|
132 | .CodeMirror-composing { border-bottom: 2px solid; } | |
133 |
|
133 | |||
134 | /* Default styles for common addons */ |
|
134 | /* Default styles for common addons */ | |
135 |
|
135 | |||
136 | div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} |
|
136 | div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} | |
137 | div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} |
|
137 | div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} | |
138 | .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); } |
|
138 | .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); } | |
139 | .CodeMirror-activeline-background {background: #e8f2ff;} |
|
139 | .CodeMirror-activeline-background {background: #e8f2ff;} | |
140 |
|
140 | |||
141 | /* STOP */ |
|
141 | /* STOP */ | |
142 |
|
142 | |||
143 | /* The rest of this file contains styles related to the mechanics of |
|
143 | /* The rest of this file contains styles related to the mechanics of | |
144 | the editor. You probably shouldn't touch them. */ |
|
144 | the editor. You probably shouldn't touch them. */ | |
145 |
|
145 | |||
146 | .CodeMirror { |
|
146 | .CodeMirror { | |
147 | position: relative; |
|
147 | position: relative; | |
148 | overflow: hidden; |
|
148 | overflow: hidden; | |
149 | background: white; |
|
149 | background: white; | |
150 | } |
|
150 | } | |
151 |
|
151 | |||
152 | .CodeMirror-scroll { |
|
152 | .CodeMirror-scroll { | |
153 | overflow: scroll !important; /* Things will break if this is overridden */ |
|
153 | overflow: scroll !important; /* Things will break if this is overridden */ | |
154 | /* 30px is the magic margin used to hide the element's real scrollbars */ |
|
154 | /* 30px is the magic margin used to hide the element's real scrollbars */ | |
155 | /* See overflow: hidden in .CodeMirror */ |
|
155 | /* See overflow: hidden in .CodeMirror */ | |
156 | margin-bottom: -30px; margin-right: -30px; |
|
156 | margin-bottom: -30px; margin-right: -30px; | |
157 | padding-bottom: 30px; |
|
157 | padding-bottom: 30px; | |
158 | height: 100%; |
|
158 | height: 100%; | |
159 | outline: none; /* Prevent dragging from highlighting the element */ |
|
159 | outline: none; /* Prevent dragging from highlighting the element */ | |
160 | position: relative; |
|
160 | position: relative; | |
161 | } |
|
161 | } | |
162 | .CodeMirror-sizer { |
|
162 | .CodeMirror-sizer { | |
163 | position: relative; |
|
163 | position: relative; | |
164 | border-right: 30px solid transparent; |
|
164 | border-right: 30px solid transparent; | |
165 | } |
|
165 | } | |
166 |
|
166 | |||
167 | /* The fake, visible scrollbars. Used to force redraw during scrolling |
|
167 | /* The fake, visible scrollbars. Used to force redraw during scrolling | |
168 | before actual scrolling happens, thus preventing shaking and |
|
168 | before actual scrolling happens, thus preventing shaking and | |
169 | flickering artifacts. */ |
|
169 | flickering artifacts. */ | |
170 | .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { |
|
170 | .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { | |
171 | position: absolute; |
|
171 | position: absolute; | |
172 | z-index: 6; |
|
172 | z-index: 6; | |
173 | display: none; |
|
173 | display: none; | |
174 | } |
|
174 | } | |
175 | .CodeMirror-vscrollbar { |
|
175 | .CodeMirror-vscrollbar { | |
176 | right: 0; top: 0; |
|
176 | right: 0; top: 0; | |
177 | overflow-x: hidden; |
|
177 | overflow-x: hidden; | |
178 | overflow-y: scroll; |
|
178 | overflow-y: scroll; | |
179 | } |
|
179 | } | |
180 | .CodeMirror-hscrollbar { |
|
180 | .CodeMirror-hscrollbar { | |
181 | bottom: 0; left: 0; |
|
181 | bottom: 0; left: 0; | |
182 | overflow-y: hidden; |
|
182 | overflow-y: hidden; | |
183 | overflow-x: scroll; |
|
183 | overflow-x: scroll; | |
184 | } |
|
184 | } | |
185 | .CodeMirror-scrollbar-filler { |
|
185 | .CodeMirror-scrollbar-filler { | |
186 | right: 0; bottom: 0; |
|
186 | right: 0; bottom: 0; | |
187 | } |
|
187 | } | |
188 | .CodeMirror-gutter-filler { |
|
188 | .CodeMirror-gutter-filler { | |
189 | left: 0; bottom: 0; |
|
189 | left: 0; bottom: 0; | |
190 | } |
|
190 | } | |
191 |
|
191 | |||
192 | .CodeMirror-gutters { |
|
192 | .CodeMirror-gutters { | |
193 | position: absolute; left: 0; top: 0; |
|
193 | position: absolute; left: 0; top: 0; | |
194 | z-index: 3; |
|
194 | z-index: 3; | |
195 | } |
|
195 | } | |
196 | .CodeMirror-gutter { |
|
196 | .CodeMirror-gutter { | |
197 | white-space: normal; |
|
197 | white-space: normal; | |
198 | height: 100%; |
|
198 | height: 100%; | |
199 | display: inline-block; |
|
199 | display: inline-block; | |
200 | margin-bottom: -30px; |
|
200 | margin-bottom: -30px; | |
201 | /* Hack to make IE7 behave */ |
|
201 | /* Hack to make IE7 behave */ | |
202 | *zoom:1; |
|
202 | *zoom:1; | |
203 | *display:inline; |
|
203 | *display:inline; | |
204 | } |
|
204 | } | |
205 | .CodeMirror-gutter-wrapper { |
|
205 | .CodeMirror-gutter-wrapper { | |
206 | position: absolute; |
|
206 | position: absolute; | |
207 | z-index: 4; |
|
207 | z-index: 4; | |
208 | height: 100%; |
|
208 | height: 100%; | |
209 | } |
|
209 | } | |
210 | .CodeMirror-gutter-background { |
|
210 | .CodeMirror-gutter-background { | |
211 | position: absolute; |
|
211 | position: absolute; | |
212 | top: 0; bottom: 0; |
|
212 | top: 0; bottom: 0; | |
213 | z-index: 4; |
|
213 | z-index: 4; | |
214 | } |
|
214 | } | |
215 | .CodeMirror-gutter-elt { |
|
215 | .CodeMirror-gutter-elt { | |
216 | position: absolute; |
|
216 | position: absolute; | |
217 | cursor: default; |
|
217 | cursor: default; | |
218 | z-index: 4; |
|
218 | z-index: 4; | |
219 | } |
|
219 | } | |
220 | .CodeMirror-gutter-wrapper { |
|
220 | .CodeMirror-gutter-wrapper { | |
221 | -webkit-user-select: none; |
|
221 | -webkit-user-select: none; | |
222 | -moz-user-select: none; |
|
222 | -moz-user-select: none; | |
223 | user-select: none; |
|
223 | user-select: none; | |
224 | } |
|
224 | } | |
225 |
|
225 | |||
226 | .CodeMirror-lines { |
|
226 | .CodeMirror-lines { | |
227 | cursor: text; |
|
227 | cursor: text; | |
228 | min-height: 1px; /* prevents collapsing before first draw */ |
|
228 | min-height: 1px; /* prevents collapsing before first draw */ | |
229 | } |
|
229 | } | |
230 | .CodeMirror pre { |
|
230 | .CodeMirror pre { | |
231 | /* Reset some styles that the rest of the page might have set */ |
|
231 | /* Reset some styles that the rest of the page might have set */ | |
232 | -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; |
|
232 | -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; | |
233 | border-width: 0; |
|
233 | border-width: 0; | |
234 | background: transparent; |
|
234 | background: transparent; | |
235 | font-family: inherit; |
|
235 | font-family: inherit; | |
236 | font-size: inherit; |
|
236 | font-size: inherit; | |
237 | margin: 0; |
|
237 | margin: 0; | |
238 | white-space: pre; |
|
238 | white-space: pre; | |
239 | word-wrap: normal; |
|
239 | word-wrap: normal; | |
240 | line-height: inherit; |
|
240 | line-height: inherit; | |
241 | color: inherit; |
|
241 | color: inherit; | |
242 | z-index: 2; |
|
242 | z-index: 2; | |
243 | position: relative; |
|
243 | position: relative; | |
244 | overflow: visible; |
|
244 | overflow: visible; | |
245 | -webkit-tap-highlight-color: transparent; |
|
245 | -webkit-tap-highlight-color: transparent; | |
246 | } |
|
246 | } | |
247 | .CodeMirror-wrap pre { |
|
247 | .CodeMirror-wrap pre { | |
248 | word-wrap: break-word; |
|
248 | word-wrap: break-word; | |
249 | white-space: pre-wrap; |
|
249 | white-space: pre-wrap; | |
250 | word-break: normal; |
|
250 | word-break: normal; | |
251 | } |
|
251 | } | |
252 |
|
252 | |||
253 | .CodeMirror-linebackground { |
|
253 | .CodeMirror-linebackground { | |
254 | position: absolute; |
|
254 | position: absolute; | |
255 | left: 0; right: 0; top: 0; bottom: 0; |
|
255 | left: 0; right: 0; top: 0; bottom: 0; | |
256 | z-index: 0; |
|
256 | z-index: 0; | |
257 | } |
|
257 | } | |
258 |
|
258 | |||
259 | .CodeMirror-linewidget { |
|
259 | .CodeMirror-linewidget { | |
260 | position: relative; |
|
260 | position: relative; | |
261 | z-index: 2; |
|
261 | z-index: 2; | |
262 | overflow: auto; |
|
262 | overflow: auto; | |
263 | } |
|
263 | } | |
264 |
|
264 | |||
265 | .CodeMirror-widget {} |
|
265 | .CodeMirror-widget {} | |
266 |
|
266 | |||
267 | .CodeMirror-code { |
|
267 | .CodeMirror-code { | |
268 | outline: none; |
|
268 | outline: none; | |
269 | } |
|
269 | } | |
270 |
|
270 | |||
271 | /* Force content-box sizing for the elements where we expect it */ |
|
271 | /* Force content-box sizing for the elements where we expect it */ | |
272 | .CodeMirror-scroll, |
|
272 | .CodeMirror-scroll, | |
273 | .CodeMirror-sizer, |
|
273 | .CodeMirror-sizer, | |
274 | .CodeMirror-gutter, |
|
274 | .CodeMirror-gutter, | |
275 | .CodeMirror-gutters, |
|
275 | .CodeMirror-gutters, | |
276 | .CodeMirror-linenumber { |
|
276 | .CodeMirror-linenumber { | |
277 | -moz-box-sizing: content-box; |
|
277 | -moz-box-sizing: content-box; | |
278 | box-sizing: content-box; |
|
278 | box-sizing: content-box; | |
279 | } |
|
279 | } | |
280 |
|
280 | |||
281 | .CodeMirror-measure { |
|
281 | .CodeMirror-measure { | |
282 | position: absolute; |
|
282 | position: absolute; | |
283 | width: 100%; |
|
283 | width: 100%; | |
284 | height: 0; |
|
284 | height: 0; | |
285 | overflow: hidden; |
|
285 | overflow: hidden; | |
286 | visibility: hidden; |
|
286 | visibility: hidden; | |
287 | } |
|
287 | } | |
288 |
|
288 | |||
289 |
|
289 | |||
290 | .CodeMirror div.CodeMirror-cursor { |
|
290 | .CodeMirror div.CodeMirror-cursor { | |
291 | position: absolute; |
|
291 | position: absolute; | |
292 | border-right: none; |
|
292 | border-right: none; | |
293 | width: 0; |
|
293 | width: 0; | |
294 | } |
|
294 | } | |
295 |
|
295 | |||
296 | .CodeMirror-measure pre { position: static; } |
|
296 | .CodeMirror-measure pre { position: static; } | |
297 |
|
297 | |||
298 | div.CodeMirror-cursors { |
|
298 | div.CodeMirror-cursors { | |
299 | visibility: hidden; |
|
299 | visibility: hidden; | |
300 | position: relative; |
|
300 | position: relative; | |
301 | z-index: 3; |
|
301 | z-index: 3; | |
302 | } |
|
302 | } | |
303 | div.CodeMirror-dragcursors { |
|
303 | div.CodeMirror-dragcursors { | |
304 | visibility: visible; |
|
304 | visibility: visible; | |
305 | } |
|
305 | } | |
306 |
|
306 | |||
307 | .CodeMirror-focused div.CodeMirror-cursors { |
|
307 | .CodeMirror-focused div.CodeMirror-cursors { | |
308 | visibility: visible; |
|
308 | visibility: visible; | |
309 | } |
|
309 | } | |
310 |
|
310 | |||
311 | .CodeMirror-selected { background: #d9d9d9; } |
|
311 | .CodeMirror-selected { background: #d9d9d9; } | |
312 | .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } |
|
312 | .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } | |
313 | .CodeMirror-crosshair { cursor: crosshair; } |
|
313 | .CodeMirror-crosshair { cursor: crosshair; } | |
314 | .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; } |
|
314 | .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; } | |
315 | .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; } |
|
315 | .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; } | |
316 |
|
316 | |||
317 | .cm-searching { |
|
317 | .cm-searching { | |
318 | background: #ffa; |
|
318 | background: #ffa; | |
319 | background: rgba(255, 255, 0, .4); |
|
319 | background: rgba(255, 255, 0, .4); | |
320 | } |
|
320 | } | |
321 |
|
321 | |||
322 | /* IE7 hack to prevent it from returning funny offsetTops on the spans */ |
|
322 | /* IE7 hack to prevent it from returning funny offsetTops on the spans */ | |
323 | .CodeMirror span { *vertical-align: text-bottom; } |
|
323 | .CodeMirror span { *vertical-align: text-bottom; } | |
324 |
|
324 | |||
325 | /* Used to force a border model for a node */ |
|
325 | /* Used to force a border model for a node */ | |
326 | .cm-force-border { padding-right: .1px; } |
|
326 | .cm-force-border { padding-right: .1px; } | |
327 |
|
327 | |||
328 | @media print { |
|
328 | @media print { | |
329 | /* Hide the cursor when printing */ |
|
329 | /* Hide the cursor when printing */ | |
330 | .CodeMirror div.CodeMirror-cursors { |
|
330 | .CodeMirror div.CodeMirror-cursors { | |
331 | visibility: hidden; |
|
331 | visibility: hidden; | |
332 | } |
|
332 | } | |
333 | } |
|
333 | } | |
334 |
|
334 | |||
335 | /* See issue #2901 */ |
|
335 | /* See issue #2901 */ | |
336 | .cm-tab-wrap-hack:after { content: ''; } |
|
336 | .cm-tab-wrap-hack:after { content: ''; } | |
337 |
|
337 | |||
338 | /* Help users use markselection to safely style text background */ |
|
338 | /* Help users use markselection to safely style text background */ | |
339 | span.CodeMirror-selectedtext { background: none; } |
|
339 | span.CodeMirror-selectedtext { background: none; } | |
340 |
|
340 | |||
341 | /* codemirror autocomplete widget */ |
|
341 | /* codemirror autocomplete widget */ | |
342 | .CodeMirror-hints { |
|
342 | .CodeMirror-hints { | |
343 | position: absolute; |
|
343 | position: absolute; | |
344 | z-index: 10; |
|
344 | z-index: 10; | |
345 | overflow: hidden; |
|
345 | overflow: hidden; | |
346 | list-style: none; |
|
346 | list-style: none; | |
347 |
|
347 | |||
348 | margin: 0; |
|
348 | margin: 0; | |
349 | padding: 0; |
|
349 | padding: 0; | |
350 |
|
350 | |||
351 | border-radius: @border-radius; |
|
351 | border-radius: @border-radius; | |
352 | border: @border-thickness solid @rcblue; |
|
352 | border: @border-thickness solid @rcblue; | |
353 |
|
353 | |||
354 | color: @rcblue; |
|
354 | color: @rcblue; | |
355 | background-color: white; |
|
355 | background-color: white; | |
356 | font-size: 95%; |
|
356 | font-size: 95%; | |
357 |
|
357 | |||
358 | max-height: 20em; |
|
358 | max-height: 20em; | |
359 | overflow-y: auto; |
|
359 | overflow-y: auto; | |
360 | } |
|
360 | } | |
361 |
|
361 | |||
362 | .CodeMirror-hint { |
|
362 | .CodeMirror-hint { | |
363 | margin: 0; |
|
363 | margin: 0; | |
364 | padding: 4px 8px; |
|
364 | padding: 4px 8px; | |
365 | max-width: 40em; |
|
365 | max-width: 40em; | |
366 | white-space: pre; |
|
366 | white-space: pre; | |
367 | color: @rcblue; |
|
367 | color: @rcblue; | |
368 | cursor: pointer; |
|
368 | cursor: pointer; | |
369 | } |
|
369 | } | |
370 |
|
370 | |||
371 | .CodeMirror-hint-active { |
|
371 | .CodeMirror-hint-active { | |
372 | background: @rclightblue; |
|
372 | background: @rclightblue; | |
373 | color: @rcblue; |
|
373 | color: @rcblue; | |
374 | } |
|
374 | } | |
375 |
|
375 | |||
376 | .CodeMirror-hint-entry { |
|
376 | .CodeMirror-hint-entry { | |
377 | width: 38em; |
|
377 | width: 38em; | |
378 | color: @rcblue; |
|
378 | color: @rcblue; | |
379 | } |
|
379 | } | |
380 |
|
380 | |||
381 | .CodeMirror-hint-entry .gravatar { |
|
381 | .CodeMirror-hint-entry .gravatar { | |
|
382 | height: @gravatar-size; | |||
|
383 | width: @gravatar-size; | |||
382 | margin-right: 4px; |
|
384 | margin-right: 4px; | |
383 | } |
|
385 | } | |
384 |
|
386 | |||
385 | .CodeMirror-empty { |
|
387 | .CodeMirror-empty { | |
386 | border: @border-thickness solid @grey5; |
|
388 | border: @border-thickness solid @grey5; | |
387 | } |
|
389 | } | |
388 |
|
390 | |||
389 | .CodeMirror-focused { |
|
391 | .CodeMirror-focused { | |
390 | border: @border-thickness solid @grey5; |
|
392 | border: @border-thickness solid @grey5; | |
391 | } |
|
393 | } | |
392 |
|
394 | |||
393 | .CodeMirror-empty.CodeMirror-focused { |
|
395 | .CodeMirror-empty.CodeMirror-focused { | |
394 | border: @border-thickness solid @grey5; |
|
396 | border: @border-thickness solid @grey5; | |
395 | } |
|
397 | } | |
396 |
|
398 | |||
397 | .CodeMirror pre.CodeMirror-placeholder { |
|
399 | .CodeMirror pre.CodeMirror-placeholder { | |
398 | color: @grey4; |
|
400 | color: @grey4; | |
399 | } |
|
401 | } | |
400 |
|
402 | |||
401 | /** RhodeCode Customizations **/ |
|
403 | /** RhodeCode Customizations **/ | |
402 |
|
404 | |||
403 | .CodeMirror.cm-s-rc-input { |
|
405 | .CodeMirror.cm-s-rc-input { | |
404 | border: @border-thickness solid @grey4; |
|
406 | border: @border-thickness solid @grey4; | |
405 | } |
|
407 | } | |
406 |
|
408 | |||
407 | .CodeMirror-code pre { |
|
409 | .CodeMirror-code pre { | |
408 | border-right: 30px solid transparent; |
|
410 | border-right: 30px solid transparent; | |
409 | width: -webkit-fit-content; |
|
411 | width: -webkit-fit-content; | |
410 | width: -moz-fit-content; |
|
412 | width: -moz-fit-content; | |
411 | width: fit-content; |
|
413 | width: fit-content; | |
412 | } |
|
414 | } | |
413 | .CodeMirror-wrap .CodeMirror-code pre { |
|
415 | .CodeMirror-wrap .CodeMirror-code pre { | |
414 | border-right: none; |
|
416 | border-right: none; | |
415 | width: auto; |
|
417 | width: auto; | |
416 | } |
|
418 | } |
General Comments 0
You need to be logged in to leave comments.
Login now