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