@bhsd/codemirror-mediawiki 3.2.0 → 3.3.0

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.
@@ -0,0 +1,8 @@
1
+ import type { Extension } from '@codemirror/state';
2
+ export declare const light: Extension,
3
+ /**
4
+ * @author 鬼影233
5
+ * @author Bhsd
6
+ * @see https://zh.moegirl.org.cn/User:%E9%AC%BC%E5%BD%B1233/nord-moeskin.css
7
+ */
8
+ nord: Extension;
package/dist/theme.js ADDED
@@ -0,0 +1,108 @@
1
+ import { EditorView } from '@codemirror/view';
2
+ import { nord as nordBase } from 'cm6-theme-nord';
3
+ export const light = /* @__PURE__ */ EditorView.theme({
4
+ '&': {
5
+ backgroundColor: '#fff',
6
+ },
7
+ '&.cm-focused .cm-matchingTag': {
8
+ backgroundColor: 'rgb(50,140,130,.32)',
9
+ },
10
+ '&.cm-focused .cm-nonmatchingTag': {
11
+ backgroundColor: 'rgb(187,85,85,.27)',
12
+ },
13
+ '.cm-tooltip-hover code': {
14
+ backgroundColor: '#e0e6eb',
15
+ },
16
+ '.cm-status-fix-menu': {
17
+ backgroundColor: '#f5f5f5',
18
+ boxShadow: '0 2px 2px 0 rgb(0,0,0,.25)',
19
+ },
20
+ '.cm-status-fix-menu>div:hover': {
21
+ backgroundColor: '#e2f2ff',
22
+ },
23
+ '.cm-status-message': {
24
+ borderColor: '#c8ccd1',
25
+ },
26
+ '.cm-content': {
27
+ '--cm-arg': '#b0c',
28
+ '--cm-attr': '#179b1c',
29
+ '--cm-comment': '#7b8c8f',
30
+ '--cm-convert': '#b68',
31
+ '--cm-entity': '#00a1a1',
32
+ '--cm-error': '#d73333',
33
+ '--cm-func': '#a11',
34
+ '--cm-hr': '#0076dd',
35
+ '--cm-hr-bg': 'rgb(0,0,0,.07)',
36
+ '--cm-link': '#000aaa',
37
+ '--cm-sect': '#006fe6',
38
+ '--cm-sp': 'rgb(134,206,255,.3)',
39
+ '--cm-table': '#d08',
40
+ '--cm-table-attr': '#f500d4',
41
+ '--cm-tag': '#14866d',
42
+ '--cm-tpl': '#80c',
43
+ '--cm-var': '#ad9300',
44
+ '--cm-var-name': '#ac6600',
45
+ },
46
+ }),
47
+ /**
48
+ * @author 鬼影233
49
+ * @author Bhsd
50
+ * @see https://zh.moegirl.org.cn/User:%E9%AC%BC%E5%BD%B1233/nord-moeskin.css
51
+ */
52
+ nord = [
53
+ nordBase,
54
+ /* @__PURE__ */ EditorView.theme({
55
+ 'div.cm-activeLine': {
56
+ backgroundColor: '#4c566a44',
57
+ },
58
+ '&.cm-focused .cm-matchingTag, &.cm-focused .cm-nonmatchingTag': {
59
+ outline: '1px solid #8fbcbb',
60
+ },
61
+ '&.cm-focused .cm-matchingTag': {
62
+ backgroundColor: '#eceff4',
63
+ color: '#434c5e',
64
+ },
65
+ ['&.cm-focused>.cm-scroller>.cm-selectionLayer div.cm-selectionBackground,'
66
+ + '.cm-tooltip-hover code, .cm-status-fix-menu>div:hover, .cm-diagnosticAction, div.cm-tooltip-fold']: {
67
+ backgroundColor: '#4c566a',
68
+ },
69
+ 'div.cm-panels': {
70
+ color: '#d8dee9',
71
+ },
72
+ '.cm-status-fix-menu': {
73
+ backgroundColor: '#252a33',
74
+ },
75
+ '.cm-status-message': {
76
+ borderColor: '#000',
77
+ },
78
+ '&.cm-focused .cm-searchMatch.cm-searchMatch-selected': {
79
+ color: '#b48ead',
80
+ },
81
+ 'div.cm-tooltip-autocomplete ul li[aria-selected]': {
82
+ color: 'inherit',
83
+ },
84
+ 'div.cm-gutters': {
85
+ color: '#5e81ac',
86
+ },
87
+ '.cm-content': {
88
+ '--cm-arg': '#9f78a5',
89
+ '--cm-attr': '#97b757',
90
+ '--cm-comment': '#4c566a',
91
+ '--cm-convert': '#b68',
92
+ '--cm-entity': '#00a1a1',
93
+ '--cm-error': '#bf616a',
94
+ '--cm-func': '#bf616a',
95
+ '--cm-hr': '#5e81ac',
96
+ '--cm-hr-bg': '#3b4252',
97
+ '--cm-link': '#5e81ac',
98
+ '--cm-sect': '#81a1c1',
99
+ '--cm-sp': '#88c0d0',
100
+ '--cm-table': '#b48ead',
101
+ '--cm-table-attr': '#9f78a5',
102
+ '--cm-tag': '#a3be8c',
103
+ '--cm-tpl': '#9f78a5',
104
+ '--cm-var': '#d08770',
105
+ '--cm-var-name': '#d08770',
106
+ },
107
+ }),
108
+ ];