PluginProbe
Code Snippets / 3.8.1
Code Snippets v3.8.1
3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 3.0.1 All 64 releases
code-snippets / css / common / _codemirror.scss

_codemirror.scss in Code Snippets 3.8.1, at css/common/_codemirror.scss

110 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .CodeMirror {
2 border: 1px solid #dfdfdf;
3 border-radius: 3px;
4 block-size: auto !important;
5 background-color: #fff;
6 }
7
8 .CodeMirror-code {
9 outline: none;
10 }
11
12 .CodeMirror-focused .cm-matchhighlight {
13 color: white !important;
14 outline: 1px solid green;
15 }
16
17 /* Add a bit of extra space above the editor */
18 .CodeMirror-sizer {
19 &::before, &::after {
20 display: block;
21 color: #bbb;
22 }
23
24 &::before {
25 content: '';
26 padding-block-end: 5px;
27 }
28 }
29
30 /* Fix cursor color with rubyblue theme (see https://goo.gl/3HDgRm */
31 .cm-s-rubyblue .CodeMirror-cursor {
32 border-inline-start: 1px solid white !important;
33 }
34
35 [class*='CodeMirror-lint-marker']*='CodeMirror-lint-marker'], [class*='CodeMirror-lint-message']*='CodeMirror-lint-message'], .CodeMirror-lint-marker-multiple {
36 background-image: none;
37 }
38
39 .CodeMirror-lint-marker-error, .CodeMirror-lint-marker-warning {
40 cursor: help;
41 }
42
43 .CodeMirror-lint-marker-multiple {
44 position: absolute;
45 inset-block-start: 0;
46 }
47
48 [class*='CodeMirror-lint-marker']*='CodeMirror-lint-marker']::before {
49 font: normal 18px/1 dashicons;
50 position: relative;
51 inset-block-start: -2px;
52 }
53
54 [class*='CodeMirror-lint-message']*='CodeMirror-lint-message']::before {
55 font: normal 16px/1 dashicons;
56 position: absolute;
57 inset-inline-start: 16px;
58 }
59
60 .CodeMirror-lint-message-error,
61 .CodeMirror-lint-message-warning {
62 box-shadow: 0 1px 1px 0 rgb(0 0 0 / 10%);
63 margin-block: 5px 2px;
64 padding-block: 3px;
65 margin-inline: 0;
66 padding-inline: 28px 12px;
67 }
68
69 .CodeMirror-lint-message-warning {
70 background-color: #fff8e5;
71 border-inline-start: 4px solid #ffb900;
72 }
73
74 .CodeMirror-lint-marker-warning::before, .CodeMirror-lint-message-warning::before {
75 content: '\f534';
76 color: #f6a306;
77 }
78
79 .CodeMirror-lint-message-error {
80 background-color: #fbeaea;
81 border-inline-start: 4px solid #dc3232;
82 }
83
84 .CodeMirror-lint-marker-error::before, .CodeMirror-lint-message-error::before {
85 content: '\f153';
86 color: #dc3232;
87 }
88
89 .CodeMirror-lint-tooltip {
90 background: none;
91 border: none;
92 border-radius: 0;
93 direction: ltr;
94 }
95
96 .CodeMirror .CodeMirror-matchingbracket {
97 background: rgb(255 150 0 / 30%);
98 color: inherit;
99 }
100
101 .CodeMirror .CodeMirror-linenumber {
102 color: #666;
103 }
104
105 .CodeMirror-foldmarker {
106 color: inherit;
107 margin-inline: 0.25em;
108 font-weight: bold;
109 }
110