|
1 | | -/* BASICS */ |
2 | | - |
3 | | -.CodeMirror { |
4 | | - /* Set height, width, borders, and global font properties here */ |
5 | | - font-family: monospace; |
6 | | - height: 300px; |
7 | | - color: black; |
8 | | -} |
9 | | - |
10 | | -/* PADDING */ |
11 | | - |
12 | | -.CodeMirror-lines { |
13 | | - padding: 4px 0; /* Vertical padding around content */ |
14 | | -} |
15 | | -.CodeMirror pre { |
16 | | - padding: 0 4px; /* Horizontal padding of content */ |
17 | | -} |
18 | | - |
19 | | -.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { |
20 | | - background-color: white; /* The little square between H and V scrollbars */ |
21 | | -} |
22 | | - |
23 | | -/* GUTTER */ |
24 | | - |
25 | | -.CodeMirror-gutters { |
26 | | - border-right: 1px solid #ddd; |
27 | | - background-color: #f7f7f7; |
28 | | - white-space: nowrap; |
29 | | -} |
30 | | -.CodeMirror-linenumbers {} |
31 | | -.CodeMirror-linenumber { |
32 | | - padding: 0 3px 0 5px; |
33 | | - min-width: 20px; |
34 | | - text-align: right; |
35 | | - color: #999; |
36 | | - white-space: nowrap; |
37 | | -} |
38 | | - |
39 | | -.CodeMirror-guttermarker { color: black; } |
40 | | -.CodeMirror-guttermarker-subtle { color: #999; } |
41 | | - |
42 | | -/* CURSOR */ |
43 | | - |
44 | | -.CodeMirror-cursor { |
45 | | - border-left: 1px solid black; |
46 | | - border-right: none; |
47 | | - width: 0; |
48 | | -} |
49 | | -/* Shown when moving in bi-directional text */ |
50 | | -.CodeMirror div.CodeMirror-secondarycursor { |
51 | | - border-left: 1px solid silver; |
52 | | -} |
53 | | -.cm-fat-cursor .CodeMirror-cursor { |
54 | | - width: auto; |
55 | | - border: 0 !important; |
56 | | - background: #7e7; |
57 | | -} |
58 | | -.cm-fat-cursor div.CodeMirror-cursors { |
59 | | - z-index: 1; |
60 | | -} |
61 | | - |
62 | | -.cm-animate-fat-cursor { |
63 | | - width: auto; |
64 | | - border: 0; |
65 | | - -webkit-animation: blink 1.06s steps(1) infinite; |
66 | | - -moz-animation: blink 1.06s steps(1) infinite; |
67 | | - animation: blink 1.06s steps(1) infinite; |
68 | | - background-color: #7e7; |
69 | | -} |
70 | | -@-moz-keyframes blink { |
71 | | - 0% {} |
72 | | - 50% { background-color: transparent; } |
73 | | - 100% {} |
74 | | -} |
75 | | -@-webkit-keyframes blink { |
76 | | - 0% {} |
77 | | - 50% { background-color: transparent; } |
78 | | - 100% {} |
79 | | -} |
80 | | -@keyframes blink { |
81 | | - 0% {} |
82 | | - 50% { background-color: transparent; } |
83 | | - 100% {} |
84 | | -} |
85 | | - |
86 | | -/* Can style cursor different in overwrite (non-insert) mode */ |
87 | | -.CodeMirror-overwrite .CodeMirror-cursor {} |
88 | | - |
89 | | -.cm-tab { display: inline-block; text-decoration: inherit; } |
90 | | - |
91 | | -.CodeMirror-rulers { |
92 | | - position: absolute; |
93 | | - left: 0; right: 0; top: -50px; bottom: -20px; |
94 | | - overflow: hidden; |
95 | | -} |
96 | | -.CodeMirror-ruler { |
97 | | - border-left: 1px solid #ccc; |
98 | | - top: 0; bottom: 0; |
99 | | - position: absolute; |
100 | | -} |
101 | | - |
102 | | -/* DEFAULT THEME */ |
103 | | - |
104 | | -.cm-s-default .cm-header {color: blue;} |
105 | | -.cm-s-default .cm-quote {color: #090;} |
106 | | -.cm-negative {color: #d44;} |
107 | | -.cm-positive {color: #292;} |
108 | | -.cm-header, .cm-strong {font-weight: bold;} |
109 | | -.cm-em {font-style: italic;} |
110 | | -.cm-link {text-decoration: underline;} |
111 | | -.cm-strikethrough {text-decoration: line-through;} |
112 | | - |
113 | | -.cm-s-default .cm-keyword {color: #708;} |
114 | | -.cm-s-default .cm-atom {color: #219;} |
115 | | -.cm-s-default .cm-number {color: #164;} |
116 | | -.cm-s-default .cm-def {color: #00f;} |
117 | | -.cm-s-default .cm-variable, |
118 | | -.cm-s-default .cm-punctuation, |
119 | | -.cm-s-default .cm-property, |
120 | | -.cm-s-default .cm-operator {} |
121 | | -.cm-s-default .cm-variable-2 {color: #05a;} |
122 | | -.cm-s-default .cm-variable-3 {color: #085;} |
123 | | -.cm-s-default .cm-comment {color: #a50;} |
124 | | -.cm-s-default .cm-string {color: #a11;} |
125 | | -.cm-s-default .cm-string-2 {color: #f50;} |
126 | | -.cm-s-default .cm-meta {color: #555;} |
127 | | -.cm-s-default .cm-qualifier {color: #555;} |
128 | | -.cm-s-default .cm-builtin {color: #30a;} |
129 | | -.cm-s-default .cm-bracket {color: #997;} |
130 | | -.cm-s-default .cm-tag {color: #170;} |
131 | | -.cm-s-default .cm-attribute {color: #00c;} |
132 | | -.cm-s-default .cm-hr {color: #999;} |
133 | | -.cm-s-default .cm-link {color: #00c;} |
134 | | - |
135 | | -.cm-s-default .cm-error {color: #f00;} |
136 | | -.cm-invalidchar {color: #f00;} |
137 | | - |
138 | | -.CodeMirror-composing { border-bottom: 2px solid; } |
139 | | - |
140 | | -/* Default styles for common addons */ |
141 | | - |
142 | | -div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} |
143 | | -div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} |
144 | | -.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); } |
145 | | -.CodeMirror-activeline-background {background: #e8f2ff;} |
146 | | - |
147 | 1 | /* STOP */ |
148 | 2 |
|
149 | 3 | /* The rest of this file contains styles related to the mechanics of |
|
0 commit comments