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