-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsource_editor.css
More file actions
96 lines (93 loc) · 1.6 KB
/
Copy pathsource_editor.css
File metadata and controls
96 lines (93 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@set colorizer < std-plaintext {
:root {
aspect: colorize url(source_editor.js);
overflow: scroll-indicator;
}
text {
white-space: pre;
height: 1.2em;
}
/*highlightup*/
text::highlight(tag) {
color: olive;
}
/*background-color: #f0f0fa;*/
text::highlight(tag-id) {
color: red;
}
/*background-color: #f0f0fa;*/
/*source*/
text::highlight(number) {
color: brown;
}
text::highlight(number-unit) {
color: brown;
}
text::highlight(string) {
color: teal;
}
text::highlight(keyword) {
color: blue;
}
text::highlight(symbol) {
color: brown;
}
text::highlight(literal) {
color: brown;
}
text::highlight(comment) {
color: green;
}
text[type=script] {
background-color: #FFFAF0;
}
text[type=markup] {
background-color: #FFF;
}
text[type=style] {
background-color: #FAFFF0;
}
}
plaintext[type] {
style-set: colorizer;
}
@set element-colorizer {
:root {
aspect: colorize url(source_editor.js);
background-color: #fafaff;
padding: 4dip;
border: 1dip dashed #bbb;
}
/*highlightup*/
:root::highlight(tag) {
color: olive;
}
:root::highlight(tag-id) {
color: red;
}
/*source*/
:root::highlight(number) {
color: brown;
}
:root::highlight(number-unit) {
color: brown;
}
:root::highlight(string) {
color: teal;
}
:root::highlight(keyword) {
color: blue;
}
:root::highlight(symbol) {
color: brown;
}
:root::highlight(literal) {
color: brown;
}
:root::highlight(comment) {
color: green;
}
}
pre[type] {
style-set: element-colorizer;
}