UPDATE 4.4.0.0
[phpmyadmin.git] / themes / pmahomme / css / codemirror.css.php
blobf2117a8ca5049190078d8a0838028a6726bcefe2
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Styles for CodeMirror editor
5 * for the pmahomme theme
7 * @package PhpMyAdmin-theme
8 * @subpackage PMAHomme
9 */
11 // unplanned execution path
12 if (! defined('PMA_MINIMUM_COMMON') && ! defined('TESTSUITE')) {
13 exit();
17 /* PADDING */
19 .CodeMirror-lines {
20 padding: 4px 0; /* Vertical padding around content */
22 .CodeMirror pre {
23 padding: 0 4px; /* Horizontal padding of content */
26 .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
27 background-color: white; /* The little square between H and V scrollbars */
30 /* GUTTER */
32 .CodeMirror-gutters {
33 border-right: 1px solid #ddd;
34 background-color: #f7f7f7;
35 white-space: nowrap;
37 .CodeMirror-linenumbers {}
38 .CodeMirror-linenumber {
39 padding: 0 3px 0 5px;
40 min-width: 20px;
41 text-align: right;
42 color: #999;
45 /* CURSOR */
47 .CodeMirror div.CodeMirror-cursor {
48 border-left: 1px solid black;
49 z-index: 3;
51 /* Shown when moving in bi-directional text */
52 .CodeMirror div.CodeMirror-secondarycursor {
53 border-left: 1px solid silver;
55 .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
56 width: auto;
57 border: 0;
58 background: #7e7;
59 z-index: 1;
61 /* Can style cursor different in overwrite (non-insert) mode */
62 .CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {}
64 .cm-tab { display: inline-block; }
66 /* DEFAULT THEME */
68 .cm-s-default .cm-keyword {color: #708;}
69 .cm-s-default .cm-atom {color: #219;}
70 .cm-s-default .cm-number {color: #164;}
71 .cm-s-default .cm-def {color: #00f;}
72 .cm-s-default .cm-variable {color: black;}
73 .cm-s-default .cm-variable-2 {color: #05a;}
74 .cm-s-default .cm-variable-3 {color: #085;}
75 .cm-s-default .cm-property {color: black;}
76 .cm-s-default .cm-operator {color: black;}
77 .cm-s-default .cm-comment {color: #a50;}
78 .cm-s-default .cm-string {color: #a11;}
79 .cm-s-default .cm-string-2 {color: #f50;}
80 .cm-s-default .cm-meta {color: #555;}
81 .cm-s-default .cm-error {color: #f00;}
82 .cm-s-default .cm-qualifier {color: #555;}
83 .cm-s-default .cm-builtin {color: #30a;}
84 .cm-s-default .cm-bracket {color: #997;}
85 .cm-s-default .cm-tag {color: #170;}
86 .cm-s-default .cm-attribute {color: #00c;}
87 .cm-s-default .cm-header {color: blue;}
88 .cm-s-default .cm-quote {color: #090;}
89 .cm-s-default .cm-hr {color: #999;}
90 .cm-s-default .cm-link {color: #00c;}
92 .cm-negative {color: #d44;}
93 .cm-positive {color: #292;}
94 .cm-header, .cm-strong {font-weight: bold;}
95 .cm-em {font-style: italic;}
96 .cm-link {text-decoration: underline;}
98 .cm-invalidchar {color: #f00;}
100 div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
101 div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
103 /* STOP */
105 /* The rest of this file contains styles related to the mechanics of
106 the editor. You probably shouldn't touch them. */
108 .CodeMirror {
109 line-height: 1;
110 position: relative;
111 overflow: hidden;
112 background: white;
113 color: black;
114 font-family: monospace;
115 height: <?php echo ceil($GLOBALS['cfg']['TextareaRows'] * 1.2); ?>em;
116 resize: vertical;
117 max-height: 600px;
118 min-height: 75px;
121 #inline_editor_outer .CodeMirror {
122 height: <?php echo ceil($GLOBALS['cfg']['TextareaRows'] * 0.4); ?>em;
125 .CodeMirror-scroll {
126 /* 30px is the magic margin used to hide the element's real scrollbars */
127 /* See overflow: hidden in .CodeMirror */
128 height: 85% !important;
129 outline: none; /* Prevent dragging from highlighting the element */
130 resize: none;
131 overflow-y: auto;
133 .CodeMirror-sizer {
134 position: relative;
137 /* The fake, visible scrollbars. Used to force redraw during scrolling
138 before actuall scrolling happens, thus preventing shaking and
139 flickering artifacts. */
140 .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
141 position: absolute;
142 z-index: 6;
143 display: none;
145 .CodeMirror-vscrollbar {
146 right: 0; top: 0;
147 overflow-x: hidden;
148 overflow-y: scroll;
149 display:none !important;
151 .CodeMirror-hscrollbar {
152 bottom: 0; left: 0;
153 overflow-y: hidden;
154 overflow-x: scroll;
156 .CodeMirror-scrollbar-filler {
157 right: 0; bottom: 0;
159 .CodeMirror-gutter-filler {
160 left: 0; bottom: 0;
163 .CodeMirror-gutters {
164 position: absolute; left: 0; top: 0;
165 padding-bottom: 30px;
166 z-index: 3;
167 height: 100% !important;
169 .CodeMirror-gutter {
170 white-space: normal;
171 height: 100%;
172 padding-bottom: 30px;
173 margin-bottom: -32px;
174 display: inline-block;
175 /* Hack to make IE7 behave */
176 *zoom:1;
177 *display:inline;
179 .CodeMirror-gutter-wrapper {
180 position: relative;
182 .CodeMirror-gutter-elt {
183 position: absolute;
184 cursor: default;
185 z-index: 4;
188 .CodeMirror-lines {
189 cursor: text;
191 .CodeMirror pre {
192 /* Reset some styles that the rest of the page might have set */
193 -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
194 border-width: 0;
195 background: transparent;
196 font-family: inherit;
197 font-size: inherit;
198 margin: 0;
199 white-space: pre;
200 word-wrap: normal;
201 line-height: inherit;
202 color: inherit;
203 z-index: 2;
204 position: relative;
205 overflow: visible;
207 .CodeMirror-wrap pre {
208 word-wrap: break-word;
209 white-space: pre-wrap;
210 word-break: normal;
212 .CodeMirror-code pre {
213 border-right: 30px solid transparent;
214 width: -webkit-fit-content;
215 width: -moz-fit-content;
216 width: fit-content;
218 .CodeMirror-wrap .CodeMirror-code pre {
219 border-right: none;
220 width: auto;
222 .CodeMirror-linebackground {
223 position: absolute;
224 left: 0; right: 0; top: 0; bottom: 0;
225 z-index: 0;
228 .CodeMirror-linewidget {
229 position: relative;
230 z-index: 2;
231 overflow: auto;
234 .CodeMirror-widget {
235 display: inline-block;
238 .CodeMirror-wrap .CodeMirror-scroll {
239 overflow-x: hidden;
242 .CodeMirror-measure {
243 position: absolute;
244 width: 100%; height: 0px;
245 overflow: hidden;
246 visibility: hidden;
248 .CodeMirror-measure pre { position: static; }
250 .CodeMirror div.CodeMirror-cursor {
251 position: absolute;
252 visibility: hidden;
253 border-right: none;
254 width: 0;
256 .CodeMirror-focused div.CodeMirror-cursor {
257 visibility: visible;
260 .CodeMirror-selected { background: #d9d9d9; }
261 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
263 .cm-searching {
264 background: #ffa;
265 background: rgba(255, 255, 0, .4);
268 /* IE7 hack to prevent it from returning funny offsetTops on the spans */
269 .CodeMirror span { *vertical-align: text-bottom; }
271 @media print {
272 /* Hide the cursor when printing */
273 .CodeMirror div.CodeMirror-cursor {
274 visibility: hidden;
278 span.cm-keyword, span.cm-statement-verb {
279 color: #909;
281 span.cm-variable {
282 color: black;
284 span.cm-comment {
285 color: #808000;
287 span.cm-mysql-string {
288 color: #008000;
290 span.cm-operator {
291 color: fuchsia;
293 span.cm-mysql-word {
294 color: black;
296 span.cm-builtin {
297 color: #f00;
299 span.cm-variable-2 {
300 color: #f90;
302 span.cm-variable-3 {
303 color: #00f;
305 span.cm-separator {
306 color: fuchsia;
308 span.cm-number {
309 color: teal;
312 /* CodeMirror Hints styling */
313 .CodeMirror-hints {
314 position: absolute;
315 z-index: 2000;
316 overflow: hidden;
317 list-style: none;
319 margin: 0;
320 padding: 2px;
322 -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
323 -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
324 box-shadow: 2px 3px 5px rgba(0,0,0,.2);
325 border-radius: 3px;
326 border: 1px solid silver;
328 background: white;
329 font-size: 90%;
330 font-family: monospace;
332 max-height: 20em;
333 overflow-y: auto;
336 .CodeMirror-hint {
337 margin: 0;
338 padding: 0 4px;
339 border-radius: 2px;
340 max-width: 19em;
341 overflow: hidden;
342 white-space: pre;
343 color: black;
344 cursor: pointer;
347 li.CodeMirror-hint-active {
348 background: #08f;
349 color: white;