2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Styles for CodeMirror editor
5 * for the pmahomme theme
7 * @package PhpMyAdmin-theme
11 // unplanned execution path
12 if (! defined('PMA_MINIMUM_COMMON') && ! defined('TESTSUITE')) {
20 padding
: 4px
0; /* Vertical padding around content */
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 */
33 border
-right
: 1px solid
#ddd;
34 background
-color
: #f7f7f7;
37 .CodeMirror
-linenumbers
{}
38 .CodeMirror
-linenumber
{
47 .CodeMirror div
.CodeMirror
-cursor
{
48 border
-left
: 1px solid black
;
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
{
61 /* Can style cursor different in overwrite (non-insert) mode */
62 .CodeMirror div
.CodeMirror
-cursor
.CodeMirror
-overwrite
{}
64 .cm
-tab
{ display
: inline
-block
; }
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;}
105 /* The rest of this file contains styles related to the mechanics of
106 the editor. You probably shouldn't touch them. */
114 font
-family
: monospace
;
115 height
: <?php
echo ceil($GLOBALS['cfg']['TextareaRows'] * 1.2); ?
>em
;
121 #inline_editor_outer .CodeMirror {
122 height
: <?php
echo ceil($GLOBALS['cfg']['TextareaRows'] * 0.4); ?
>em
;
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 */
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
{
145 .CodeMirror
-vscrollbar
{
149 display
:none
!important
;
151 .CodeMirror
-hscrollbar
{
156 .CodeMirror
-scrollbar
-filler
{
159 .CodeMirror
-gutter
-filler
{
163 .CodeMirror
-gutters
{
164 position
: absolute
; left
: 0; top
: 0;
165 padding
-bottom
: 30px
;
167 height
: 100%
!important
;
172 padding
-bottom
: 30px
;
173 margin
-bottom
: -32px
;
174 display
: inline
-block
;
175 /* Hack to make IE7 behave */
179 .CodeMirror
-gutter
-wrapper
{
182 .CodeMirror
-gutter
-elt
{
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;
195 background
: transparent
;
196 font
-family
: inherit
;
201 line
-height
: inherit
;
207 .CodeMirror
-wrap pre
{
208 word
-wrap
: break-word
;
209 white
-space
: pre
-wrap
;
212 .CodeMirror
-code pre
{
213 border
-right
: 30px solid transparent
;
214 width
: -webkit
-fit
-content
;
215 width
: -moz
-fit
-content
;
218 .CodeMirror
-wrap
.CodeMirror
-code pre
{
222 .CodeMirror
-linebackground
{
224 left
: 0; right
: 0; top
: 0; bottom
: 0;
228 .CodeMirror
-linewidget
{
235 display
: inline
-block
;
238 .CodeMirror
-wrap
.CodeMirror
-scroll
{
242 .CodeMirror
-measure
{
244 width
: 100%
; height
: 0px
;
248 .CodeMirror
-measure pre
{ position
: static; }
250 .CodeMirror div
.CodeMirror
-cursor
{
256 .CodeMirror
-focused div
.CodeMirror
-cursor
{
260 .CodeMirror
-selected
{ background
: #d9d9d9; }
261 .CodeMirror
-focused
.CodeMirror
-selected
{ background
: #d7d4f0; }
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
; }
272 /* Hide the cursor when printing */
273 .CodeMirror div
.CodeMirror
-cursor
{
278 span
.cm
-keyword
, span
.cm
-statement
-verb
{
287 span
.cm
-mysql
-string {
312 /* CodeMirror Hints styling */
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);
326 border
: 1px solid silver
;
330 font
-family
: monospace
;
347 li
.CodeMirror
-hint
-active
{