@bhsd/codemirror-mediawiki 2.0.2 → 2.0.4

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/mediawiki.css CHANGED
@@ -1,9 +1,37 @@
1
- .cm-mw-pagename {
2
- text-decoration: underline;
1
+ /**
2
+ * @author pastakhov and others
3
+ * @license GPL-2.0-or-later
4
+ * @link https://gerrit.wikimedia.org/g/mediawiki/extensions/CodeMirror
5
+ */
6
+
7
+ /* section title */
8
+ .cm-mw-section-1,
9
+ .cm-mw-section-1 ~ * {
10
+ font-size: 1.8em;
11
+ line-height: 1.2em;
12
+ }
13
+ .cm-mw-section-2,
14
+ .cm-mw-section-2 ~ * {
15
+ font-size: 1.5em;
16
+ line-height: 1.2em;
17
+ }
18
+ .cm-mw-section-3 ~ *,
19
+ .cm-mw-section-4 ~ *,
20
+ .cm-mw-section-5 ~ *,
21
+ .cm-mw-section-6 ~ * {
22
+ font-weight: bold;
23
+ }
24
+ .cm-mw-section-header {
25
+ color: #08f;
26
+ font-weight: normal;
27
+ }
28
+
29
+ .cm-mw-error {
30
+ color: #f00;
3
31
  }
4
32
 
5
- .cm-mw-matching {
6
- background-color: #ffd700;
33
+ .cm-mw-pagename {
34
+ text-decoration: underline;
7
35
  }
8
36
 
9
37
  /* miscellaneous */
@@ -15,7 +43,7 @@
15
43
  color: #08f;
16
44
  font-weight: bold;
17
45
  }
18
- .cm-mw-doubleUnderscore,
46
+ .cm-mw-double-underscore,
19
47
  .cm-mw-signature,
20
48
  .cm-mw-hr {
21
49
  color: #08f;
@@ -31,25 +59,8 @@
31
59
  color: #08f;
32
60
  }
33
61
 
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
62
  /* template */
49
- .cm-mw-template {
50
- color: #80c;
51
- font-weight: normal;
52
- }
63
+ .cm-mw-template,
53
64
  .cm-mw-template-name-mnemonic {
54
65
  font-weight: normal;
55
66
  }
@@ -60,24 +71,21 @@
60
71
  font-weight: bold;
61
72
  }
62
73
  .cm-mw-template-argument-name {
63
- color: #80c;
64
- font-weight: bold;
74
+ color: #b0c;
75
+ font-weight: normal;
65
76
  }
66
77
 
67
78
  /* template variable */
68
79
  .cm-mw-templatevariable {
69
- color: #f50;
80
+ color: #ff9500;
70
81
  font-weight: normal;
71
82
  }
72
83
  .cm-mw-templatevariable-name,
84
+ .cm-mw-templatevariable-bracket,
73
85
  .cm-mw-templatevariable-delimiter {
74
86
  color: #f50;
75
87
  font-weight: bold;
76
88
  }
77
- .cm-mw-templatevariable-bracket {
78
- color: #f50;
79
- font-weight: normal;
80
- }
81
89
 
82
90
  /* parser function */
83
91
  .cm-mw-parserfunction {
@@ -90,22 +98,7 @@
90
98
  font-weight: bold;
91
99
  }
92
100
 
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
101
  /* link */
108
- .cm-mw-link,
109
102
  .cm-mw-link-pagename,
110
103
  .cm-mw-link-bracket,
111
104
  .cm-mw-link-delimiter,
@@ -114,6 +107,7 @@
114
107
  color: #36c;
115
108
  font-weight: normal;
116
109
  }
110
+ .cm-mw-link,
117
111
  .cm-mw-link-tosection {
118
112
  color: #18e;
119
113
  font-weight: normal;
@@ -125,6 +119,27 @@
125
119
  font-weight: bold;
126
120
  }
127
121
 
122
+ .cm-mw-strong {
123
+ font-weight: bold;
124
+ }
125
+ .cm-mw-em {
126
+ font-style: italic;
127
+ }
128
+
129
+ /* tag */
130
+ .cm-mw-exttag-name,
131
+ .cm-mw-htmltag-name {
132
+ color: #290;
133
+ font-weight: bold;
134
+ }
135
+ .cm-mw-exttag-bracket,
136
+ .cm-mw-exttag-attribute,
137
+ .cm-mw-htmltag-bracket,
138
+ .cm-mw-htmltag-attribute {
139
+ color: #290;
140
+ font-weight: normal;
141
+ }
142
+
128
143
  /* table */
129
144
  .cm-mw-table-bracket,
130
145
  .cm-mw-table-delimiter {
@@ -141,7 +156,7 @@
141
156
 
142
157
  /* mnemonic */
143
158
  .cm-mw-mnemonic {
144
- color: #290;
159
+ color: #84a0a0;
145
160
  }
146
161
 
147
162
  /* backgrounds */
@@ -149,14 +164,14 @@
149
164
  .cm-mw-tag-nowiki {
150
165
  background-color: rgba( 0, 0, 0, 0.04 );
151
166
  }
152
- .cm-mw-exttag {
153
- background-color: rgba( 119, 0, 170, 0.02 );
167
+ .cm-mw-template-ground {
168
+ background-color: rgba( 170, 17, 17, 0.04 );
154
169
  }
155
170
  .cm-mw-template2-ground {
156
- background-color: rgba( 170, 17, 17, 0.04 );
171
+ background-color: rgba( 170, 17, 17, 0.08 );
157
172
  }
158
173
  .cm-mw-template3-ground {
159
- background-color: rgba( 170, 17, 17, 0.08 );
174
+ background-color: rgba( 170, 17, 17, 0.12 );
160
175
  }
161
176
  .cm-mw-template-ext-ground,
162
177
  .cm-mw-ext-ground,
@@ -228,10 +243,4 @@
228
243
  }
229
244
  .cm-mw-template3-ext3-link-ground {
230
245
  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
246
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/codemirror-mediawiki",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
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",