md2ui 1.0.7 → 1.0.9
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/README.md +104 -38
- package/bin/build.js +608 -0
- package/bin/md2ui.js +112 -63
- package/index.html +43 -1
- package/package.json +6 -5
- package/src/App.vue +106 -250
- package/src/api/docs.js +2 -1
- package/src/components/AppSidebar.vue +102 -0
- package/src/components/DocContent.vue +39 -0
- package/src/components/Logo.vue +5 -9
- package/src/components/MobileHeader.vue +20 -0
- package/src/components/MobileToc.vue +40 -0
- package/src/components/SearchPanel.vue +90 -0
- package/src/components/TableOfContents.vue +2 -2
- package/src/components/TopBar.vue +144 -0
- package/src/components/WelcomePage.vue +251 -0
- package/src/composables/useDocHash.js +66 -0
- package/src/composables/useDocManager.js +280 -0
- package/src/composables/useDocTree.js +96 -0
- package/src/composables/useFrontmatter.js +41 -0
- package/src/composables/useMarkdown.js +316 -94
- package/src/composables/useMobile.js +29 -0
- package/src/composables/useScroll.js +9 -15
- package/src/composables/useSearch.js +133 -0
- package/src/hljs-theme.css +104 -0
- package/src/main.js +1 -0
- package/src/style.css +935 -213
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* ===== highlight.js 亮色主题(GitHub Light 风格) ===== */
|
|
2
|
+
|
|
3
|
+
/* 基础布局 */
|
|
4
|
+
pre code.hljs {
|
|
5
|
+
display: block;
|
|
6
|
+
overflow-x: auto;
|
|
7
|
+
padding: 16px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
code.hljs {
|
|
11
|
+
padding: 3px 5px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.hljs {
|
|
15
|
+
color: #24292e;
|
|
16
|
+
background: transparent;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.hljs-doctag,
|
|
20
|
+
.hljs-keyword,
|
|
21
|
+
.hljs-meta .hljs-keyword,
|
|
22
|
+
.hljs-template-tag,
|
|
23
|
+
.hljs-template-variable,
|
|
24
|
+
.hljs-type,
|
|
25
|
+
.hljs-variable.language_ {
|
|
26
|
+
color: #d73a49;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.hljs-title,
|
|
30
|
+
.hljs-title.class_,
|
|
31
|
+
.hljs-title.class_.inherited__,
|
|
32
|
+
.hljs-title.function_ {
|
|
33
|
+
color: #6f42c1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.hljs-attr,
|
|
37
|
+
.hljs-attribute,
|
|
38
|
+
.hljs-literal,
|
|
39
|
+
.hljs-meta,
|
|
40
|
+
.hljs-number,
|
|
41
|
+
.hljs-operator,
|
|
42
|
+
.hljs-variable,
|
|
43
|
+
.hljs-selector-attr,
|
|
44
|
+
.hljs-selector-class,
|
|
45
|
+
.hljs-selector-id {
|
|
46
|
+
color: #005cc5;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.hljs-regexp,
|
|
50
|
+
.hljs-string,
|
|
51
|
+
.hljs-meta .hljs-string {
|
|
52
|
+
color: #032f62;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.hljs-built_in,
|
|
56
|
+
.hljs-symbol {
|
|
57
|
+
color: #e36209;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.hljs-comment,
|
|
61
|
+
.hljs-code,
|
|
62
|
+
.hljs-formula {
|
|
63
|
+
color: #6a737d;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.hljs-name,
|
|
67
|
+
.hljs-quote,
|
|
68
|
+
.hljs-selector-tag,
|
|
69
|
+
.hljs-selector-pseudo {
|
|
70
|
+
color: #22863a;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.hljs-subst {
|
|
74
|
+
color: #24292e;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.hljs-section {
|
|
78
|
+
color: #005cc5;
|
|
79
|
+
font-weight: bold;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.hljs-bullet {
|
|
83
|
+
color: #735c0f;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.hljs-emphasis {
|
|
87
|
+
color: #24292e;
|
|
88
|
+
font-style: italic;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.hljs-strong {
|
|
92
|
+
color: #24292e;
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.hljs-addition {
|
|
97
|
+
color: #22863a;
|
|
98
|
+
background-color: #f0fff4;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.hljs-deletion {
|
|
102
|
+
color: #b31d28;
|
|
103
|
+
background-color: #ffeef0;
|
|
104
|
+
}
|