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')) {
18 font
-family
: monospace
;
20 border
: 1px solid
#000;
21 /* Necessary so the scrollbar can be absolutely positioned within the wrapper on Lion. */
23 /* This prevents unwanted scrollbars from showing up on the body and wrapper in IE. */
29 height
: <?php
echo ceil($GLOBALS['cfg']['TextareaRows'] * 1.2); ?
>em
;
30 /* This is needed to prevent an IE[67] bug where the scrolled content
31 is visible outside of the scrolling box. */
36 /* Vertical scrollbar */
37 .CodeMirror
-scrollbar
{
44 .CodeMirror
-scrollbar
-inner
{
45 /* This needs to have a nonzero width in order for the scrollbar to appear
46 in Firefox and IE9. */
49 .CodeMirror
-scrollbar
.cm
-sb
-overlap
{
50 /* Ensure that the scrollbar appears in Lion, and that it overlaps the content
51 rather than sitting to the right of it. */
58 .CodeMirror
-scrollbar
.cm
-sb
-nonoverlap
{
61 .CodeMirror
-scrollbar
.cm
-sb
-ie7
{
66 position
: absolute
; left
: 0; top
: 0;
68 background
-color
: #f7f7f7;
69 border
-right
: 1px solid
#eee;
73 .CodeMirror
-gutter
-text
{
76 padding
: .4em
.2em
.4em
.4em
;
77 white
-space
: pre
!important
;
87 -moz
-border
-radius
: 0;
88 -webkit
-border
-radius
: 0;
91 border
-width
: 0; margin
: 0; padding
: 0; background
: transparent
;
94 padding
: 0; margin
: 0;
102 .CodeMirror
-wrap pre
{
103 word
-wrap
: break-word
;
104 white
-space
: pre
-wrap
;
107 .CodeMirror
-wrap
.CodeMirror
-scroll
{
111 .CodeMirror textarea
{
112 outline
: none
!important
;
113 font
-family
: inherit
!important
;
114 font
-size
: inherit
!important
;
117 .CodeMirror pre
.CodeMirror
-cursor
{
121 border
-<?php
echo $left; ?
>: 1px solid black
!important
;
122 border
-<?php
echo $right; ?
>: none
;
125 .cm
-keymap
-fat
-cursor pre
.CodeMirror
-cursor
{
128 background
: transparent
;
129 background
: rgba(0, 200, 0, .4);
130 filter
: progid
:DXImageTransform
.Microsoft
.gradient(startColorstr
=#6600c800, endColorstr=#4c00c800);
132 /* Kludge to turn off filter in ie9+, which also accepts rgba */
133 .cm
-keymap
-fat
-cursor pre
.CodeMirror
-cursor
:not(#nonsense_id) {
134 filter
: progid
:DXImageTransform
.Microsoft
.gradient(enabled
=false);
136 .CodeMirror pre
.CodeMirror
-cursor
.CodeMirror
-overwrite
{}
137 .CodeMirror
-focused pre
.CodeMirror
-cursor
{
141 div
.CodeMirror
-selected
{ background
: #d9d9d9; }
142 .CodeMirror
-focused div
.CodeMirror
-selected
{ background
: #d7d4f0; }
144 .CodeMirror
-searching
{
146 background
: rgba(255, 255, 0, .4);
150 div
.CodeMirror span
.CodeMirror
-matchingbracket
{color
: #0f0;}
151 div
.CodeMirror span
.CodeMirror
-nonmatchingbracket
{color
: #f22;}
155 /* Hide the cursor when printing */
156 .CodeMirror pre
.CodeMirror
-cursor
{
162 <?php
echo $_SESSION['PMA_Theme']->getCssCodeMirror(); ?
>