vitepress-theme-element-plus 1.3.0 → 1.3.2
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/LICENSE +21 -21
- package/README.md +3 -3
- package/client/components/A11yTag.vue +29 -29
- package/client/components/ApiTyping.vue +54 -54
- package/client/components/Backdrop.vue +41 -41
- package/client/components/Bili.vue +94 -94
- package/client/components/Content.vue +148 -148
- package/client/components/DeprecatedTag.vue +19 -19
- package/client/components/Doc.vue +185 -185
- package/client/components/DocAside.vue +46 -46
- package/client/components/DocAsideOutline.vue +145 -145
- package/client/components/DocFooter.vue +162 -162
- package/client/components/Footer.vue +100 -100
- package/client/components/FooterCopyright.vue +27 -27
- package/client/components/Layout.vue +156 -156
- package/client/components/Link.vue +41 -41
- package/client/components/LocalNav.vue +160 -160
- package/client/components/Nav.vue +69 -69
- package/client/components/NavBar.vue +203 -203
- package/client/components/NavBarTitle.vue +89 -89
- package/client/components/Sidebar.vue +129 -129
- package/client/components/SidebarGroup.vue +51 -51
- package/client/components/SidebarItem.vue +304 -304
- package/client/components/ThemeToggler.vue +129 -129
- package/client/components/VPNavBarSearch.vue +23 -23
- package/client/hooks/useBackTop.ts +71 -71
- package/client/hooks/useLangs.ts +50 -50
- package/client/hooks/useSidebarControl.ts +78 -78
- package/client/hooks/useSize.ts +69 -69
- package/client/icons/dark.vue +8 -8
- package/client/icons/light.vue +8 -8
- package/client/utils/client/common.ts +49 -49
- package/client/utils/client/outline.ts +133 -126
- package/client/utils/common.ts +90 -90
- package/index.ts +45 -45
- package/package.json +2 -2
- package/shared/constants.ts +3 -3
- package/styles/base.scss +105 -105
- package/styles/code.scss +290 -290
- package/styles/doc-content.scss +363 -363
- package/styles/index.scss +71 -71
- package/styles/tag-content.scss +30 -30
package/styles/base.scss
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
::before,
|
|
2
|
-
::after {
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
html {
|
|
7
|
-
line-height: 1.4;
|
|
8
|
-
font-size: 16px;
|
|
9
|
-
text-size-adjust: 100%;
|
|
10
|
-
font-family: var(--font-family);
|
|
11
|
-
font-weight: 400;
|
|
12
|
-
-webkit-font-smoothing: antialiased;
|
|
13
|
-
-webkit-tap-highlight-color: transparent;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
body {
|
|
17
|
-
margin: 0;
|
|
18
|
-
width: 100%;
|
|
19
|
-
min-width: 320px;
|
|
20
|
-
min-height: 100vh;
|
|
21
|
-
line-height: 1.4;
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
font-weight: 400;
|
|
24
|
-
color: var(--text-color);
|
|
25
|
-
background-color: var(--bg-color);
|
|
26
|
-
direction: ltr;
|
|
27
|
-
font-synthesis: none;
|
|
28
|
-
text-rendering: optimizeLegibility;
|
|
29
|
-
-webkit-font-smoothing: antialiased;
|
|
30
|
-
-moz-osx-font-smoothing: grayscale;
|
|
31
|
-
transition: background-color var(--el-transition-duration-fast);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
main {
|
|
35
|
-
display: block;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
a,
|
|
39
|
-
area,
|
|
40
|
-
button,
|
|
41
|
-
[role='button'],
|
|
42
|
-
input,
|
|
43
|
-
label,
|
|
44
|
-
select,
|
|
45
|
-
summary,
|
|
46
|
-
textarea {
|
|
47
|
-
touch-action: manipulation;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
* {
|
|
51
|
-
scrollbar-color: var(--el-scrollbar-bg-color) var(--el-fill-color-light);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
::-webkit-scrollbar {
|
|
55
|
-
width: 6px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
::-webkit-scrollbar:horizontal {
|
|
59
|
-
height: 6px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
::-webkit-scrollbar-track {
|
|
63
|
-
border-radius: 10px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
::-webkit-scrollbar-thumb {
|
|
67
|
-
background-color: #0003;
|
|
68
|
-
border-radius: 10px;
|
|
69
|
-
transition: all 0.2s ease-in-out;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
::-webkit-scrollbar-thumb:hover {
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
background-color: #0000004d;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.dark ::-webkit-scrollbar-thumb {
|
|
78
|
-
background-color: #fff3;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.dark ::-webkit-scrollbar-thumb:hover {
|
|
82
|
-
background-color: #fff6;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
::view-transition-old(root),
|
|
86
|
-
::view-transition-new(root) {
|
|
87
|
-
animation: none;
|
|
88
|
-
mix-blend-mode: normal;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
::view-transition-old(root) {
|
|
92
|
-
z-index: 1;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
::view-transition-new(root) {
|
|
96
|
-
z-index: 2147483646;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.dark::view-transition-old(root) {
|
|
100
|
-
z-index: 2147483646;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.dark::view-transition-new(root) {
|
|
104
|
-
z-index: 1;
|
|
105
|
-
}
|
|
1
|
+
::before,
|
|
2
|
+
::after {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
html {
|
|
7
|
+
line-height: 1.4;
|
|
8
|
+
font-size: 16px;
|
|
9
|
+
text-size-adjust: 100%;
|
|
10
|
+
font-family: var(--font-family);
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
-webkit-font-smoothing: antialiased;
|
|
13
|
+
-webkit-tap-highlight-color: transparent;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
width: 100%;
|
|
19
|
+
min-width: 320px;
|
|
20
|
+
min-height: 100vh;
|
|
21
|
+
line-height: 1.4;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
color: var(--text-color);
|
|
25
|
+
background-color: var(--bg-color);
|
|
26
|
+
direction: ltr;
|
|
27
|
+
font-synthesis: none;
|
|
28
|
+
text-rendering: optimizeLegibility;
|
|
29
|
+
-webkit-font-smoothing: antialiased;
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
transition: background-color var(--el-transition-duration-fast);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
main {
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
a,
|
|
39
|
+
area,
|
|
40
|
+
button,
|
|
41
|
+
[role='button'],
|
|
42
|
+
input,
|
|
43
|
+
label,
|
|
44
|
+
select,
|
|
45
|
+
summary,
|
|
46
|
+
textarea {
|
|
47
|
+
touch-action: manipulation;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
* {
|
|
51
|
+
scrollbar-color: var(--el-scrollbar-bg-color) var(--el-fill-color-light);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
::-webkit-scrollbar {
|
|
55
|
+
width: 6px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
::-webkit-scrollbar:horizontal {
|
|
59
|
+
height: 6px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
::-webkit-scrollbar-track {
|
|
63
|
+
border-radius: 10px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
::-webkit-scrollbar-thumb {
|
|
67
|
+
background-color: #0003;
|
|
68
|
+
border-radius: 10px;
|
|
69
|
+
transition: all 0.2s ease-in-out;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
::-webkit-scrollbar-thumb:hover {
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
background-color: #0000004d;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dark ::-webkit-scrollbar-thumb {
|
|
78
|
+
background-color: #fff3;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.dark ::-webkit-scrollbar-thumb:hover {
|
|
82
|
+
background-color: #fff6;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
::view-transition-old(root),
|
|
86
|
+
::view-transition-new(root) {
|
|
87
|
+
animation: none;
|
|
88
|
+
mix-blend-mode: normal;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
::view-transition-old(root) {
|
|
92
|
+
z-index: 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
::view-transition-new(root) {
|
|
96
|
+
z-index: 2147483646;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dark::view-transition-old(root) {
|
|
100
|
+
z-index: 2147483646;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.dark::view-transition-new(root) {
|
|
104
|
+
z-index: 1;
|
|
105
|
+
}
|