OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / scripts / codemirror-3.1 / lib / 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 {
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 }
32 .CodeMirror-linenumbers {}
33 .CodeMirror-linenumber {
34   padding: 0 3px 0 5px;
35   min-width: 20px;
36   text-align: right;
37   color: #999;
38 }
39
40 /* CURSOR */
41
42 .CodeMirror div.CodeMirror-cursor {
43   border-left: 1px solid black;
44 }
45 /* Shown when moving in bi-directional text */
46 .CodeMirror div.CodeMirror-secondarycursor {
47   border-left: 1px solid silver;
48 }
49 .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
50   width: auto;
51   border: 0;
52   background: transparent;
53   background: rgba(0, 200, 0, .4);
54   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6600c800, endColorstr=#4c00c800);
55 }
56 /* Kludge to turn off filter in ie9+, which also accepts rgba */
57 .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor:not(#nonsense_id) {
58   filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
59 }
60 /* Can style cursor different in overwrite (non-insert) mode */
61 .CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {}
62
63 /* DEFAULT THEME */
64
65 .cm-s-default .cm-keyword {color: #708;}
66 .cm-s-default .cm-atom {color: #219;}
67 .cm-s-default .cm-number {color: #164;}
68 .cm-s-default .cm-def {color: #00f;}
69 .cm-s-default .cm-variable {color: black;}
70 .cm-s-default .cm-variable-2 {color: #05a;}
71 .cm-s-default .cm-variable-3 {color: #085;}
72 .cm-s-default .cm-property {color: black;}
73 .cm-s-default .cm-operator {color: black;}
74 .cm-s-default .cm-comment {color: #a50;}
75 .cm-s-default .cm-string {color: #a11;}
76 .cm-s-default .cm-string-2 {color: #f50;}
77 .cm-s-default .cm-meta {color: #555;}
78 .cm-s-default .cm-error {color: #f00;}
79 .cm-s-default .cm-qualifier {color: #555;}
80 .cm-s-default .cm-builtin {color: #30a;}
81 .cm-s-default .cm-bracket {color: #997;}
82 .cm-s-default .cm-tag {color: #170;}
83 .cm-s-default .cm-attribute {color: #00c;}
84 .cm-s-default .cm-header {color: blue;}
85 .cm-s-default .cm-quote {color: #090;}
86 .cm-s-default .cm-hr {color: #999;}
87 .cm-s-default .cm-link {color: #00c;}
88
89 .cm-negative {color: #d44;}
90 .cm-positive {color: #292;}
91 .cm-header, .cm-strong {font-weight: bold;}
92 .cm-em {font-style: italic;}
93 .cm-emstrong {font-style: italic; font-weight: bold;}
94 .cm-link {text-decoration: underline;}
95
96 .cm-invalidchar {color: #f00;}
97
98 div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
99 div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
100
101 /* STOP */
102
103 /* The rest of this file contains styles related to the mechanics of
104    the editor. You probably shouldn't touch them. */
105
106 .CodeMirror {
107   line-height: 1;
108   position: relative;
109   overflow: hidden;
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, and the paddings in .CodeMirror-sizer */
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 {
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   z-index: 6;
146 }
147
148 .CodeMirror-gutters {
149   position: absolute; left: 0; top: 0;
150   height: 100%;
151   padding-bottom: 30px;
152   z-index: 3;
153 }
154 .CodeMirror-gutter {
155   height: 100%;
156   display: inline-block;
157   /* Hack to make IE7 behave */
158   *zoom:1;
159   *display:inline;
160 }
161 .CodeMirror-gutter-elt {
162   position: absolute;
163   cursor: default;
164   z-index: 4;
165 }
166
167 .CodeMirror-lines {
168   cursor: text;
169 }
170 .CodeMirror pre {
171   /* Reset some styles that the rest of the page might have set */
172   -moz-border-radius: 0; -webkit-border-radius: 0; -o-border-radius: 0; border-radius: 0;
173   border-width: 0;
174   background: transparent;
175   font-family: inherit;
176   font-size: inherit;
177   margin: 0;
178   white-space: pre;
179   word-wrap: normal;
180   line-height: inherit;
181   color: inherit;
182   z-index: 2;
183   position: relative;
184   overflow: visible;
185 }
186 .CodeMirror-wrap pre {
187   word-wrap: break-word;
188   white-space: pre-wrap;
189   word-break: normal;
190 }
191 .CodeMirror-linebackground {
192   position: absolute;
193   left: 0; right: 0; top: 0; bottom: 0;
194   z-index: 0;
195 }
196
197 .CodeMirror-linewidget {
198   position: relative;
199   z-index: 2;
200   overflow: auto;
201 }
202
203 .CodeMirror-widget {
204   display: inline-block;
205 }
206
207 .CodeMirror-wrap .CodeMirror-scroll {
208   overflow-x: hidden;
209 }
210
211 .CodeMirror-measure {
212   position: absolute;
213   width: 100%; height: 0px;
214   overflow: hidden;
215   visibility: hidden;
216 }
217 .CodeMirror-measure pre { position: static; }
218
219 .CodeMirror div.CodeMirror-cursor {
220   position: absolute;
221   visibility: hidden;
222   border-right: none;
223   width: 0;
224 }
225 .CodeMirror-focused div.CodeMirror-cursor {
226   visibility: visible;
227 }
228
229 .CodeMirror-selected { background: #d9d9d9; }
230 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
231
232 .cm-searching {
233   background: #ffa;
234   background: rgba(255, 255, 0, .4);
235 }
236
237 /* IE7 hack to prevent it from returning funny offsetTops on the spans */
238 .CodeMirror span { *vertical-align: text-bottom; }
239
240 @media print {
241   /* Hide the cursor when printing */
242   .CodeMirror div.CodeMirror-cursor {
243     visibility: hidden;
244   }
245 }