ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css
author indvd00m (gotoindvdum[at]gmail[dot]com)
Thu, 15 Dec 2016 18:10:20 +0300
changeset 0 44d330dccc59
permissions -rw-r--r--
Init sample
indvd00m@0
     1
/* BASICS */
indvd00m@0
     2
indvd00m@0
     3
.CodeMirror {
indvd00m@0
     4
  /* Set height, width, borders, and global font properties here */
indvd00m@0
     5
  font-family: monospace;
indvd00m@0
     6
  height: 300px;
indvd00m@0
     7
  color: black;
indvd00m@0
     8
}
indvd00m@0
     9
indvd00m@0
    10
/* PADDING */
indvd00m@0
    11
indvd00m@0
    12
.CodeMirror-lines {
indvd00m@0
    13
  padding: 4px 0; /* Vertical padding around content */
indvd00m@0
    14
}
indvd00m@0
    15
.CodeMirror pre {
indvd00m@0
    16
  padding: 0 4px; /* Horizontal padding of content */
indvd00m@0
    17
}
indvd00m@0
    18
indvd00m@0
    19
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
indvd00m@0
    20
  background-color: white; /* The little square between H and V scrollbars */
indvd00m@0
    21
}
indvd00m@0
    22
indvd00m@0
    23
/* GUTTER */
indvd00m@0
    24
indvd00m@0
    25
.CodeMirror-gutters {
indvd00m@0
    26
  border-right: 1px solid #ddd;
indvd00m@0
    27
  background-color: #f7f7f7;
indvd00m@0
    28
  white-space: nowrap;
indvd00m@0
    29
}
indvd00m@0
    30
.CodeMirror-linenumbers {}
indvd00m@0
    31
.CodeMirror-linenumber {
indvd00m@0
    32
  padding: 0 3px 0 5px;
indvd00m@0
    33
  min-width: 20px;
indvd00m@0
    34
  text-align: right;
indvd00m@0
    35
  color: #999;
indvd00m@0
    36
  white-space: nowrap;
indvd00m@0
    37
}
indvd00m@0
    38
indvd00m@0
    39
.CodeMirror-guttermarker { color: black; }
indvd00m@0
    40
.CodeMirror-guttermarker-subtle { color: #999; }
indvd00m@0
    41
indvd00m@0
    42
/* CURSOR */
indvd00m@0
    43
indvd00m@0
    44
.CodeMirror div.CodeMirror-cursor {
indvd00m@0
    45
  border-left: 1px solid black;
indvd00m@0
    46
}
indvd00m@0
    47
/* Shown when moving in bi-directional text */
indvd00m@0
    48
.CodeMirror div.CodeMirror-secondarycursor {
indvd00m@0
    49
  border-left: 1px solid silver;
indvd00m@0
    50
}
indvd00m@0
    51
.CodeMirror.cm-fat-cursor div.CodeMirror-cursor {
indvd00m@0
    52
  width: auto;
indvd00m@0
    53
  border: 0;
indvd00m@0
    54
  background: #7e7;
indvd00m@0
    55
}
indvd00m@0
    56
.CodeMirror.cm-fat-cursor div.CodeMirror-cursors {
indvd00m@0
    57
  z-index: 1;
indvd00m@0
    58
}
indvd00m@0
    59
indvd00m@0
    60
.cm-animate-fat-cursor {
indvd00m@0
    61
  width: auto;
indvd00m@0
    62
  border: 0;
indvd00m@0
    63
  -webkit-animation: blink 1.06s steps(1) infinite;
indvd00m@0
    64
  -moz-animation: blink 1.06s steps(1) infinite;
indvd00m@0
    65
  animation: blink 1.06s steps(1) infinite;
indvd00m@0
    66
}
indvd00m@0
    67
@-moz-keyframes blink {
indvd00m@0
    68
  0% { background: #7e7; }
indvd00m@0
    69
  50% { background: none; }
indvd00m@0
    70
  100% { background: #7e7; }
indvd00m@0
    71
}
indvd00m@0
    72
@-webkit-keyframes blink {
indvd00m@0
    73
  0% { background: #7e7; }
indvd00m@0
    74
  50% { background: none; }
indvd00m@0
    75
  100% { background: #7e7; }
indvd00m@0
    76
}
indvd00m@0
    77
@keyframes blink {
indvd00m@0
    78
  0% { background: #7e7; }
indvd00m@0
    79
  50% { background: none; }
indvd00m@0
    80
  100% { background: #7e7; }
indvd00m@0
    81
}
indvd00m@0
    82
indvd00m@0
    83
/* Can style cursor different in overwrite (non-insert) mode */
indvd00m@0
    84
div.CodeMirror-overwrite div.CodeMirror-cursor {}
indvd00m@0
    85
indvd00m@0
    86
.cm-tab { display: inline-block; text-decoration: inherit; }
indvd00m@0
    87
indvd00m@0
    88
.CodeMirror-ruler {
indvd00m@0
    89
  border-left: 1px solid #ccc;
indvd00m@0
    90
  position: absolute;
indvd00m@0
    91
}
indvd00m@0
    92
indvd00m@0
    93
/* DEFAULT THEME */
indvd00m@0
    94
indvd00m@0
    95
.cm-s-default .cm-keyword {color: #708;}
indvd00m@0
    96
.cm-s-default .cm-atom {color: #219;}
indvd00m@0
    97
.cm-s-default .cm-number {color: #164;}
indvd00m@0
    98
.cm-s-default .cm-def {color: #00f;}
indvd00m@0
    99
.cm-s-default .cm-variable,
indvd00m@0
   100
.cm-s-default .cm-punctuation,
indvd00m@0
   101
.cm-s-default .cm-property,
indvd00m@0
   102
.cm-s-default .cm-operator {}
indvd00m@0
   103
.cm-s-default .cm-variable-2 {color: #05a;}
indvd00m@0
   104
.cm-s-default .cm-variable-3 {color: #085;}
indvd00m@0
   105
.cm-s-default .cm-comment {color: #a50;}
indvd00m@0
   106
.cm-s-default .cm-string {color: #a11;}
indvd00m@0
   107
.cm-s-default .cm-string-2 {color: #f50;}
indvd00m@0
   108
.cm-s-default .cm-meta {color: #555;}
indvd00m@0
   109
.cm-s-default .cm-qualifier {color: #555;}
indvd00m@0
   110
.cm-s-default .cm-builtin {color: #30a;}
indvd00m@0
   111
.cm-s-default .cm-bracket {color: #997;}
indvd00m@0
   112
.cm-s-default .cm-tag {color: #170;}
indvd00m@0
   113
.cm-s-default .cm-attribute {color: #00c;}
indvd00m@0
   114
.cm-s-default .cm-header {color: blue;}
indvd00m@0
   115
.cm-s-default .cm-quote {color: #090;}
indvd00m@0
   116
.cm-s-default .cm-hr {color: #999;}
indvd00m@0
   117
.cm-s-default .cm-link {color: #00c;}
indvd00m@0
   118
indvd00m@0
   119
.cm-negative {color: #d44;}
indvd00m@0
   120
.cm-positive {color: #292;}
indvd00m@0
   121
.cm-header, .cm-strong {font-weight: bold;}
indvd00m@0
   122
.cm-em {font-style: italic;}
indvd00m@0
   123
.cm-link {text-decoration: underline;}
indvd00m@0
   124
.cm-strikethrough {text-decoration: line-through;}
indvd00m@0
   125
indvd00m@0
   126
.cm-s-default .cm-error {color: #f00;}
indvd00m@0
   127
.cm-invalidchar {color: #f00;}
indvd00m@0
   128
indvd00m@0
   129
.CodeMirror-composing { border-bottom: 2px solid; }
indvd00m@0
   130
indvd00m@0
   131
/* Default styles for common addons */
indvd00m@0
   132
indvd00m@0
   133
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
indvd00m@0
   134
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
indvd00m@0
   135
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
indvd00m@0
   136
.CodeMirror-activeline-background {background: #e8f2ff;}
indvd00m@0
   137
indvd00m@0
   138
/* STOP */
indvd00m@0
   139
indvd00m@0
   140
/* The rest of this file contains styles related to the mechanics of
indvd00m@0
   141
   the editor. You probably shouldn't touch them. */
indvd00m@0
   142
indvd00m@0
   143
.CodeMirror {
indvd00m@0
   144
  position: relative;
indvd00m@0
   145
  overflow: hidden;
indvd00m@0
   146
  background: white;
indvd00m@0
   147
}
indvd00m@0
   148
indvd00m@0
   149
.CodeMirror-scroll {
indvd00m@0
   150
  overflow: scroll !important; /* Things will break if this is overridden */
indvd00m@0
   151
  /* 30px is the magic margin used to hide the element's real scrollbars */
indvd00m@0
   152
  /* See overflow: hidden in .CodeMirror */
indvd00m@0
   153
  margin-bottom: -30px; margin-right: -30px;
indvd00m@0
   154
  padding-bottom: 30px;
indvd00m@0
   155
  height: 100%;
indvd00m@0
   156
  outline: none; /* Prevent dragging from highlighting the element */
indvd00m@0
   157
  position: relative;
indvd00m@0
   158
}
indvd00m@0
   159
.CodeMirror-sizer {
indvd00m@0
   160
  position: relative;
indvd00m@0
   161
  border-right: 30px solid transparent;
indvd00m@0
   162
}
indvd00m@0
   163
indvd00m@0
   164
/* The fake, visible scrollbars. Used to force redraw during scrolling
indvd00m@0
   165
   before actuall scrolling happens, thus preventing shaking and
indvd00m@0
   166
   flickering artifacts. */
indvd00m@0
   167
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
indvd00m@0
   168
  position: absolute;
indvd00m@0
   169
  z-index: 6;
indvd00m@0
   170
  display: none;
indvd00m@0
   171
}
indvd00m@0
   172
.CodeMirror-vscrollbar {
indvd00m@0
   173
  right: 0; top: 0;
indvd00m@0
   174
  overflow-x: hidden;
indvd00m@0
   175
  overflow-y: scroll;
indvd00m@0
   176
}
indvd00m@0
   177
.CodeMirror-hscrollbar {
indvd00m@0
   178
  bottom: 0; left: 0;
indvd00m@0
   179
  overflow-y: hidden;
indvd00m@0
   180
  overflow-x: scroll;
indvd00m@0
   181
}
indvd00m@0
   182
.CodeMirror-scrollbar-filler {
indvd00m@0
   183
  right: 0; bottom: 0;
indvd00m@0
   184
}
indvd00m@0
   185
.CodeMirror-gutter-filler {
indvd00m@0
   186
  left: 0; bottom: 0;
indvd00m@0
   187
}
indvd00m@0
   188
indvd00m@0
   189
.CodeMirror-gutters {
indvd00m@0
   190
  position: absolute; left: 0; top: 0;
indvd00m@0
   191
  z-index: 3;
indvd00m@0
   192
}
indvd00m@0
   193
.CodeMirror-gutter {
indvd00m@0
   194
  white-space: normal;
indvd00m@0
   195
  height: 100%;
indvd00m@0
   196
  display: inline-block;
indvd00m@0
   197
  margin-bottom: -30px;
indvd00m@0
   198
  /* Hack to make IE7 behave */
indvd00m@0
   199
  *zoom:1;
indvd00m@0
   200
  *display:inline;
indvd00m@0
   201
}
indvd00m@0
   202
.CodeMirror-gutter-wrapper {
indvd00m@0
   203
  position: absolute;
indvd00m@0
   204
  z-index: 4;
indvd00m@0
   205
  height: 100%;
indvd00m@0
   206
}
indvd00m@0
   207
.CodeMirror-gutter-elt {
indvd00m@0
   208
  position: absolute;
indvd00m@0
   209
  cursor: default;
indvd00m@0
   210
  z-index: 4;
indvd00m@0
   211
}
indvd00m@0
   212
.CodeMirror-gutter-wrapper {
indvd00m@0
   213
  -webkit-user-select: none;
indvd00m@0
   214
  -moz-user-select: none;
indvd00m@0
   215
  user-select: none;
indvd00m@0
   216
}
indvd00m@0
   217
indvd00m@0
   218
.CodeMirror-lines {
indvd00m@0
   219
  cursor: text;
indvd00m@0
   220
  min-height: 1px; /* prevents collapsing before first draw */
indvd00m@0
   221
}
indvd00m@0
   222
.CodeMirror pre {
indvd00m@0
   223
  /* Reset some styles that the rest of the page might have set */
indvd00m@0
   224
  -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
indvd00m@0
   225
  border-width: 0;
indvd00m@0
   226
  background: transparent;
indvd00m@0
   227
  font-family: inherit;
indvd00m@0
   228
  font-size: inherit;
indvd00m@0
   229
  margin: 0;
indvd00m@0
   230
  white-space: pre;
indvd00m@0
   231
  word-wrap: normal;
indvd00m@0
   232
  line-height: inherit;
indvd00m@0
   233
  color: inherit;
indvd00m@0
   234
  z-index: 2;
indvd00m@0
   235
  position: relative;
indvd00m@0
   236
  overflow: visible;
indvd00m@0
   237
  -webkit-tap-highlight-color: transparent;
indvd00m@0
   238
}
indvd00m@0
   239
.CodeMirror-wrap pre {
indvd00m@0
   240
  word-wrap: break-word;
indvd00m@0
   241
  white-space: pre-wrap;
indvd00m@0
   242
  word-break: normal;
indvd00m@0
   243
}
indvd00m@0
   244
indvd00m@0
   245
.CodeMirror-linebackground {
indvd00m@0
   246
  position: absolute;
indvd00m@0
   247
  left: 0; right: 0; top: 0; bottom: 0;
indvd00m@0
   248
  z-index: 0;
indvd00m@0
   249
}
indvd00m@0
   250
indvd00m@0
   251
.CodeMirror-linewidget {
indvd00m@0
   252
  position: relative;
indvd00m@0
   253
  z-index: 2;
indvd00m@0
   254
  overflow: auto;
indvd00m@0
   255
}
indvd00m@0
   256
indvd00m@0
   257
.CodeMirror-widget {}
indvd00m@0
   258
indvd00m@0
   259
.CodeMirror-code {
indvd00m@0
   260
  outline: none;
indvd00m@0
   261
}
indvd00m@0
   262
indvd00m@0
   263
/* Force content-box sizing for the elements where we expect it */
indvd00m@0
   264
.CodeMirror-scroll,
indvd00m@0
   265
.CodeMirror-sizer,
indvd00m@0
   266
.CodeMirror-gutter,
indvd00m@0
   267
.CodeMirror-gutters,
indvd00m@0
   268
.CodeMirror-linenumber {
indvd00m@0
   269
  -moz-box-sizing: content-box;
indvd00m@0
   270
  box-sizing: content-box;
indvd00m@0
   271
}
indvd00m@0
   272
indvd00m@0
   273
.CodeMirror-measure {
indvd00m@0
   274
  position: absolute;
indvd00m@0
   275
  width: 100%;
indvd00m@0
   276
  height: 0;
indvd00m@0
   277
  overflow: hidden;
indvd00m@0
   278
  visibility: hidden;
indvd00m@0
   279
}
indvd00m@0
   280
.CodeMirror-measure pre { position: static; }
indvd00m@0
   281
indvd00m@0
   282
.CodeMirror div.CodeMirror-cursor {
indvd00m@0
   283
  position: absolute;
indvd00m@0
   284
  border-right: none;
indvd00m@0
   285
  width: 0;
indvd00m@0
   286
}
indvd00m@0
   287
indvd00m@0
   288
div.CodeMirror-cursors {
indvd00m@0
   289
  visibility: hidden;
indvd00m@0
   290
  position: relative;
indvd00m@0
   291
  z-index: 3;
indvd00m@0
   292
}
indvd00m@0
   293
.CodeMirror-focused div.CodeMirror-cursors {
indvd00m@0
   294
  visibility: visible;
indvd00m@0
   295
}
indvd00m@0
   296
indvd00m@0
   297
.CodeMirror-selected { background: #d9d9d9; }
indvd00m@0
   298
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
indvd00m@0
   299
.CodeMirror-crosshair { cursor: crosshair; }
indvd00m@0
   300
.CodeMirror ::selection { background: #d7d4f0; }
indvd00m@0
   301
.CodeMirror ::-moz-selection { background: #d7d4f0; }
indvd00m@0
   302
indvd00m@0
   303
.cm-searching {
indvd00m@0
   304
  background: #ffa;
indvd00m@0
   305
  background: rgba(255, 255, 0, .4);
indvd00m@0
   306
}
indvd00m@0
   307
indvd00m@0
   308
/* IE7 hack to prevent it from returning funny offsetTops on the spans */
indvd00m@0
   309
.CodeMirror span { *vertical-align: text-bottom; }
indvd00m@0
   310
indvd00m@0
   311
/* Used to force a border model for a node */
indvd00m@0
   312
.cm-force-border { padding-right: .1px; }
indvd00m@0
   313
indvd00m@0
   314
@media print {
indvd00m@0
   315
  /* Hide the cursor when printing */
indvd00m@0
   316
  .CodeMirror div.CodeMirror-cursors {
indvd00m@0
   317
    visibility: hidden;
indvd00m@0
   318
  }
indvd00m@0
   319
}
indvd00m@0
   320
indvd00m@0
   321
/* See issue #2901 */
indvd00m@0
   322
.cm-tab-wrap-hack:after { content: ''; }
indvd00m@0
   323
indvd00m@0
   324
/* Help users use markselection to safely style text background */
indvd00m@0
   325
span.CodeMirror-selectedtext { background: none; }