@bhsd/codemirror-mediawiki 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.min.js +1 -1
- package/mediawiki.css +59 -56
- package/package.json +2 -3
package/mediawiki.css
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* section title */
|
|
2
|
+
.cm-mw-section-1,
|
|
3
|
+
.cm-mw-section-1 ~ * {
|
|
4
|
+
font-size: 1.8em;
|
|
5
|
+
line-height: 1.2em;
|
|
6
|
+
}
|
|
7
|
+
.cm-mw-section-2,
|
|
8
|
+
.cm-mw-section-2 ~ * {
|
|
9
|
+
font-size: 1.5em;
|
|
10
|
+
line-height: 1.2em;
|
|
11
|
+
}
|
|
12
|
+
.cm-mw-section-3 ~ *,
|
|
13
|
+
.cm-mw-section-4 ~ *,
|
|
14
|
+
.cm-mw-section-5 ~ *,
|
|
15
|
+
.cm-mw-section-6 ~ * {
|
|
16
|
+
font-weight: bold;
|
|
17
|
+
}
|
|
18
|
+
.cm-mw-section-header {
|
|
19
|
+
color: #08f;
|
|
20
|
+
font-weight: normal;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cm-mw-error {
|
|
24
|
+
color: #f00;
|
|
3
25
|
}
|
|
4
26
|
|
|
5
|
-
.cm-mw-
|
|
6
|
-
|
|
27
|
+
.cm-mw-pagename {
|
|
28
|
+
text-decoration: underline;
|
|
7
29
|
}
|
|
8
30
|
|
|
9
31
|
/* miscellaneous */
|
|
@@ -15,7 +37,7 @@
|
|
|
15
37
|
color: #08f;
|
|
16
38
|
font-weight: bold;
|
|
17
39
|
}
|
|
18
|
-
.cm-mw-
|
|
40
|
+
.cm-mw-double-underscore,
|
|
19
41
|
.cm-mw-signature,
|
|
20
42
|
.cm-mw-hr {
|
|
21
43
|
color: #08f;
|
|
@@ -31,25 +53,8 @@
|
|
|
31
53
|
color: #08f;
|
|
32
54
|
}
|
|
33
55
|
|
|
34
|
-
/* section title */
|
|
35
|
-
.cm-mw-section-1,
|
|
36
|
-
.cm-mw-section-2,
|
|
37
|
-
.cm-mw-section-3,
|
|
38
|
-
.cm-mw-section-4,
|
|
39
|
-
.cm-mw-section-5,
|
|
40
|
-
.cm-mw-section-6 {
|
|
41
|
-
font-weight: bold;
|
|
42
|
-
}
|
|
43
|
-
.cm-mw-section-header {
|
|
44
|
-
color: #08f;
|
|
45
|
-
font-weight: normal;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
56
|
/* template */
|
|
49
|
-
.cm-mw-template
|
|
50
|
-
color: #80c;
|
|
51
|
-
font-weight: normal;
|
|
52
|
-
}
|
|
57
|
+
.cm-mw-template,
|
|
53
58
|
.cm-mw-template-name-mnemonic {
|
|
54
59
|
font-weight: normal;
|
|
55
60
|
}
|
|
@@ -60,24 +65,21 @@
|
|
|
60
65
|
font-weight: bold;
|
|
61
66
|
}
|
|
62
67
|
.cm-mw-template-argument-name {
|
|
63
|
-
color: #
|
|
64
|
-
font-weight:
|
|
68
|
+
color: #b0c;
|
|
69
|
+
font-weight: normal;
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
/* template variable */
|
|
68
73
|
.cm-mw-templatevariable {
|
|
69
|
-
color: #
|
|
74
|
+
color: #ff9500;
|
|
70
75
|
font-weight: normal;
|
|
71
76
|
}
|
|
72
77
|
.cm-mw-templatevariable-name,
|
|
78
|
+
.cm-mw-templatevariable-bracket,
|
|
73
79
|
.cm-mw-templatevariable-delimiter {
|
|
74
80
|
color: #f50;
|
|
75
81
|
font-weight: bold;
|
|
76
82
|
}
|
|
77
|
-
.cm-mw-templatevariable-bracket {
|
|
78
|
-
color: #f50;
|
|
79
|
-
font-weight: normal;
|
|
80
|
-
}
|
|
81
83
|
|
|
82
84
|
/* parser function */
|
|
83
85
|
.cm-mw-parserfunction {
|
|
@@ -90,22 +92,7 @@
|
|
|
90
92
|
font-weight: bold;
|
|
91
93
|
}
|
|
92
94
|
|
|
93
|
-
/* tag */
|
|
94
|
-
.cm-mw-exttag-name,
|
|
95
|
-
.cm-mw-htmltag-name {
|
|
96
|
-
color: #290;
|
|
97
|
-
font-weight: bold;
|
|
98
|
-
}
|
|
99
|
-
.cm-mw-exttag-bracket,
|
|
100
|
-
.cm-mw-exttag-attribute,
|
|
101
|
-
.cm-mw-htmltag-bracket,
|
|
102
|
-
.cm-mw-htmltag-attribute {
|
|
103
|
-
color: #290;
|
|
104
|
-
font-weight: normal;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
95
|
/* link */
|
|
108
|
-
.cm-mw-link,
|
|
109
96
|
.cm-mw-link-pagename,
|
|
110
97
|
.cm-mw-link-bracket,
|
|
111
98
|
.cm-mw-link-delimiter,
|
|
@@ -114,6 +101,7 @@
|
|
|
114
101
|
color: #36c;
|
|
115
102
|
font-weight: normal;
|
|
116
103
|
}
|
|
104
|
+
.cm-mw-link,
|
|
117
105
|
.cm-mw-link-tosection {
|
|
118
106
|
color: #18e;
|
|
119
107
|
font-weight: normal;
|
|
@@ -125,6 +113,27 @@
|
|
|
125
113
|
font-weight: bold;
|
|
126
114
|
}
|
|
127
115
|
|
|
116
|
+
.cm-mw-strong {
|
|
117
|
+
font-weight: bold;
|
|
118
|
+
}
|
|
119
|
+
.cm-mw-em {
|
|
120
|
+
font-style: italic;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* tag */
|
|
124
|
+
.cm-mw-exttag-name,
|
|
125
|
+
.cm-mw-htmltag-name {
|
|
126
|
+
color: #290;
|
|
127
|
+
font-weight: bold;
|
|
128
|
+
}
|
|
129
|
+
.cm-mw-exttag-bracket,
|
|
130
|
+
.cm-mw-exttag-attribute,
|
|
131
|
+
.cm-mw-htmltag-bracket,
|
|
132
|
+
.cm-mw-htmltag-attribute {
|
|
133
|
+
color: #290;
|
|
134
|
+
font-weight: normal;
|
|
135
|
+
}
|
|
136
|
+
|
|
128
137
|
/* table */
|
|
129
138
|
.cm-mw-table-bracket,
|
|
130
139
|
.cm-mw-table-delimiter {
|
|
@@ -141,7 +150,7 @@
|
|
|
141
150
|
|
|
142
151
|
/* mnemonic */
|
|
143
152
|
.cm-mw-mnemonic {
|
|
144
|
-
color: #
|
|
153
|
+
color: #84a0a0;
|
|
145
154
|
}
|
|
146
155
|
|
|
147
156
|
/* backgrounds */
|
|
@@ -149,14 +158,14 @@
|
|
|
149
158
|
.cm-mw-tag-nowiki {
|
|
150
159
|
background-color: rgba( 0, 0, 0, 0.04 );
|
|
151
160
|
}
|
|
152
|
-
.cm-mw-
|
|
153
|
-
background-color: rgba(
|
|
161
|
+
.cm-mw-template-ground {
|
|
162
|
+
background-color: rgba( 170, 17, 17, 0.04 );
|
|
154
163
|
}
|
|
155
164
|
.cm-mw-template2-ground {
|
|
156
|
-
background-color: rgba( 170, 17, 17, 0.
|
|
165
|
+
background-color: rgba( 170, 17, 17, 0.08 );
|
|
157
166
|
}
|
|
158
167
|
.cm-mw-template3-ground {
|
|
159
|
-
background-color: rgba( 170, 17, 17, 0.
|
|
168
|
+
background-color: rgba( 170, 17, 17, 0.12 );
|
|
160
169
|
}
|
|
161
170
|
.cm-mw-template-ext-ground,
|
|
162
171
|
.cm-mw-ext-ground,
|
|
@@ -228,10 +237,4 @@
|
|
|
228
237
|
}
|
|
229
238
|
.cm-mw-template3-ext3-link-ground {
|
|
230
239
|
background-color: rgba( 122, 9, 116, 0.24 );
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.cm-mw-matchingbracket {
|
|
234
|
-
background-color: #eee;
|
|
235
|
-
box-shadow: inset 0 0 1px 1px #999;
|
|
236
|
-
font-weight: bold;
|
|
237
240
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/codemirror-mediawiki",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mediawiki",
|
|
@@ -31,9 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@codemirror/commands": "^6.3.2",
|
|
34
|
-
"@codemirror/lang-javascript": "^6.2.1",
|
|
35
|
-
"@codemirror/lang-css": "^6.2.1",
|
|
36
34
|
"@codemirror/language": "^6.9.3",
|
|
35
|
+
"@codemirror/legacy-modes": "^6.3.3",
|
|
37
36
|
"@codemirror/lint": "^6.4.2",
|
|
38
37
|
"@codemirror/search": "^6.5.4",
|
|
39
38
|
"@codemirror/state": "^6.3.3",
|