PluginProbe
Code Snippets / 3.2.1
Code Snippets v3.2.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 / _editor.scss

_editor.scss in Code Snippets 3.2.1, at css/_editor.scss

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