@vuepress/theme-default 2.0.0-beta.28 → 2.0.0-beta.32
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/lib/client/clientAppEnhance.js +4 -5
- package/lib/client/components/{NavLink.vue → AutoLink.vue} +28 -29
- package/lib/client/components/DropdownTransition.vue +11 -11
- package/lib/client/components/Home.vue +12 -110
- package/lib/client/components/HomeContent.vue +5 -0
- package/lib/client/components/HomeFeatures.vue +23 -0
- package/lib/client/components/HomeFooter.vue +17 -0
- package/lib/client/components/HomeHero.vue +97 -0
- package/lib/client/components/Navbar.vue +24 -58
- package/lib/client/components/NavbarBrand.vue +55 -0
- package/lib/client/components/{DropdownLink.vue → NavbarDropdown.vue} +64 -64
- package/lib/client/components/{NavbarLinks.vue → NavbarItems.vue} +12 -13
- package/lib/client/components/Page.vue +5 -5
- package/lib/client/components/PageMeta.vue +33 -33
- package/lib/client/components/PageNav.vue +20 -20
- package/lib/client/components/Sidebar.vue +7 -19
- package/lib/client/components/SidebarItem.vue +74 -0
- package/lib/client/components/SidebarItems.vue +16 -0
- package/lib/client/components/ToggleDarkModeButton.vue +11 -11
- package/lib/client/components/ToggleSidebarButton.vue +8 -8
- package/lib/client/components/global/Badge.vue +12 -12
- package/lib/client/components/global/CodeGroupItem.vue +10 -10
- package/lib/client/components/global/{OutboundLink.vue → ExternalLinkIcon.vue} +7 -10
- package/lib/client/index.d.ts +2 -2
- package/lib/client/layouts/404.vue +12 -12
- package/lib/client/layouts/Layout.vue +54 -54
- package/lib/client/styles/{_wrapper.scss → _mixins.scss} +6 -1
- package/lib/client/styles/code.scss +2 -1
- package/lib/client/styles/index.scss +1 -1
- package/lib/client/styles/layout.scss +2 -2
- package/lib/client/styles/{dropdown.scss → navbar-dropdown.scss} +25 -33
- package/lib/client/styles/navbar.scss +8 -8
- package/lib/client/styles/normalize.scss +4 -0
- package/lib/client/styles/page.scss +5 -5
- package/lib/client/styles/sidebar.scss +67 -70
- package/lib/client/styles/transitions.scss +11 -2
- package/lib/client/styles/vars.scss +5 -0
- package/lib/client/utils/index.d.ts +1 -0
- package/lib/client/utils/index.js +1 -0
- package/lib/client/utils/isActiveSidebarItem.d.ts +3 -0
- package/lib/client/utils/isActiveSidebarItem.js +20 -0
- package/lib/node/defaultTheme.js +1 -0
- package/lib/node/utils/assignDefaultLocaleOptions.d.ts +3 -1
- package/lib/node/utils/assignDefaultLocaleOptions.js +5 -5
- package/lib/shared/nav.d.ts +10 -4
- package/lib/shared/options.d.ts +5 -1
- package/package.json +16 -15
- package/lib/client/components/SidebarChild.d.ts +0 -6
- package/lib/client/components/SidebarChild.js +0 -76
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="theme-container">
|
|
3
|
-
<div class="theme-default-content">
|
|
4
|
-
<h1>404</h1>
|
|
5
|
-
|
|
6
|
-
<blockquote>{{ getMsg() }}</blockquote>
|
|
7
|
-
|
|
8
|
-
<RouterLink :to="homeLink">{{ homeText }}</RouterLink>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
1
|
<script setup lang="ts">
|
|
14
2
|
import { useRouteLocale } from '@vuepress/client'
|
|
15
3
|
import { useThemeLocaleData } from '../composables'
|
|
@@ -23,3 +11,15 @@ const getMsg = (): string =>
|
|
|
23
11
|
const homeLink = themeLocale.value.home ?? routeLocale.value
|
|
24
12
|
const homeText = themeLocale.value.backToHome ?? 'Back to home'
|
|
25
13
|
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<div class="theme-container">
|
|
17
|
+
<div class="theme-default-content">
|
|
18
|
+
<h1>404</h1>
|
|
19
|
+
|
|
20
|
+
<blockquote>{{ getMsg() }}</blockquote>
|
|
21
|
+
|
|
22
|
+
<RouterLink :to="homeLink">{{ homeText }}</RouterLink>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
@@ -1,57 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="theme-container"
|
|
4
|
-
:class="containerClass"
|
|
5
|
-
@touchstart="onTouchStart"
|
|
6
|
-
@touchend="onTouchEnd"
|
|
7
|
-
>
|
|
8
|
-
<slot name="navbar">
|
|
9
|
-
<Navbar v-if="shouldShowNavbar" @toggle-sidebar="toggleSidebar">
|
|
10
|
-
<template #before>
|
|
11
|
-
<slot name="navbar-before" />
|
|
12
|
-
</template>
|
|
13
|
-
<template #after>
|
|
14
|
-
<slot name="navbar-after" />
|
|
15
|
-
</template>
|
|
16
|
-
</Navbar>
|
|
17
|
-
</slot>
|
|
18
|
-
|
|
19
|
-
<div class="sidebar-mask" @click="toggleSidebar(false)" />
|
|
20
|
-
|
|
21
|
-
<slot name="sidebar">
|
|
22
|
-
<Sidebar>
|
|
23
|
-
<template #top>
|
|
24
|
-
<slot name="sidebar-top" />
|
|
25
|
-
</template>
|
|
26
|
-
<template #bottom>
|
|
27
|
-
<slot name="sidebar-bottom" />
|
|
28
|
-
</template>
|
|
29
|
-
</Sidebar>
|
|
30
|
-
</slot>
|
|
31
|
-
|
|
32
|
-
<slot name="page">
|
|
33
|
-
<Home v-if="frontmatter.home" />
|
|
34
|
-
|
|
35
|
-
<Transition
|
|
36
|
-
v-else
|
|
37
|
-
name="fade-slide-y"
|
|
38
|
-
mode="out-in"
|
|
39
|
-
@before-enter="onBeforeEnter"
|
|
40
|
-
@before-leave="onBeforeLeave"
|
|
41
|
-
>
|
|
42
|
-
<Page :key="page.path">
|
|
43
|
-
<template #top>
|
|
44
|
-
<slot name="page-top" />
|
|
45
|
-
</template>
|
|
46
|
-
<template #bottom>
|
|
47
|
-
<slot name="page-bottom" />
|
|
48
|
-
</template>
|
|
49
|
-
</Page>
|
|
50
|
-
</Transition>
|
|
51
|
-
</slot>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
54
|
-
|
|
55
1
|
<script setup lang="ts">
|
|
56
2
|
import { usePageData, usePageFrontmatter } from '@vuepress/client'
|
|
57
3
|
import { computed, onMounted, onUnmounted, ref, Transition } from 'vue'
|
|
@@ -126,3 +72,57 @@ const scrollPromise = useScrollPromise()
|
|
|
126
72
|
const onBeforeEnter = scrollPromise.resolve
|
|
127
73
|
const onBeforeLeave = scrollPromise.pending
|
|
128
74
|
</script>
|
|
75
|
+
|
|
76
|
+
<template>
|
|
77
|
+
<div
|
|
78
|
+
class="theme-container"
|
|
79
|
+
:class="containerClass"
|
|
80
|
+
@touchstart="onTouchStart"
|
|
81
|
+
@touchend="onTouchEnd"
|
|
82
|
+
>
|
|
83
|
+
<slot name="navbar">
|
|
84
|
+
<Navbar v-if="shouldShowNavbar" @toggle-sidebar="toggleSidebar">
|
|
85
|
+
<template #before>
|
|
86
|
+
<slot name="navbar-before" />
|
|
87
|
+
</template>
|
|
88
|
+
<template #after>
|
|
89
|
+
<slot name="navbar-after" />
|
|
90
|
+
</template>
|
|
91
|
+
</Navbar>
|
|
92
|
+
</slot>
|
|
93
|
+
|
|
94
|
+
<div class="sidebar-mask" @click="toggleSidebar(false)" />
|
|
95
|
+
|
|
96
|
+
<slot name="sidebar">
|
|
97
|
+
<Sidebar>
|
|
98
|
+
<template #top>
|
|
99
|
+
<slot name="sidebar-top" />
|
|
100
|
+
</template>
|
|
101
|
+
<template #bottom>
|
|
102
|
+
<slot name="sidebar-bottom" />
|
|
103
|
+
</template>
|
|
104
|
+
</Sidebar>
|
|
105
|
+
</slot>
|
|
106
|
+
|
|
107
|
+
<slot name="page">
|
|
108
|
+
<Home v-if="frontmatter.home" />
|
|
109
|
+
|
|
110
|
+
<Transition
|
|
111
|
+
v-else
|
|
112
|
+
name="fade-slide-y"
|
|
113
|
+
mode="out-in"
|
|
114
|
+
@before-enter="onBeforeEnter"
|
|
115
|
+
@before-leave="onBeforeLeave"
|
|
116
|
+
>
|
|
117
|
+
<Page :key="page.path">
|
|
118
|
+
<template #top>
|
|
119
|
+
<slot name="page-top" />
|
|
120
|
+
</template>
|
|
121
|
+
<template #bottom>
|
|
122
|
+
<slot name="page-bottom" />
|
|
123
|
+
</template>
|
|
124
|
+
</Page>
|
|
125
|
+
</Transition>
|
|
126
|
+
</slot>
|
|
127
|
+
</div>
|
|
128
|
+
</template>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import '_variables';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@mixin content_wrapper {
|
|
4
4
|
max-width: var(--content-width);
|
|
5
5
|
margin: 0 auto;
|
|
6
6
|
padding: 2rem 2.5rem;
|
|
@@ -13,3 +13,8 @@
|
|
|
13
13
|
padding: 1.5rem;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
@mixin dropdown_wrapper {
|
|
18
|
+
transition: height 0.1s ease-out;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
@@ -125,7 +125,7 @@ pre[class*='language-'] {
|
|
|
125
125
|
pre,
|
|
126
126
|
pre[class*='language-'] {
|
|
127
127
|
line-height: 1.4;
|
|
128
|
-
padding: 1.
|
|
128
|
+
padding: 1.3rem 1.5rem;
|
|
129
129
|
margin: 0.85rem 0;
|
|
130
130
|
border-radius: 6px;
|
|
131
131
|
overflow: auto;
|
|
@@ -228,6 +228,7 @@ div[class*='language-'] {
|
|
|
228
228
|
z-index: 3;
|
|
229
229
|
user-select: none;
|
|
230
230
|
font-size: 0.85em;
|
|
231
|
+
line-height: 0;
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
@import '_mixins';
|
|
1
2
|
@import '_variables';
|
|
2
|
-
@import '_wrapper';
|
|
3
3
|
|
|
4
4
|
.page {
|
|
5
5
|
padding-top: var(--navbar-height);
|
|
@@ -142,7 +142,7 @@ h6 {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.theme-default-content:not(.custom) {
|
|
145
|
-
@
|
|
145
|
+
@include content_wrapper;
|
|
146
146
|
|
|
147
147
|
padding-top: 0;
|
|
148
148
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
@import '_mixins';
|
|
1
2
|
@import '_variables';
|
|
2
3
|
|
|
3
|
-
.dropdown-wrapper {
|
|
4
|
+
.navbar-dropdown-wrapper {
|
|
4
5
|
cursor: pointer;
|
|
5
6
|
|
|
6
|
-
.dropdown-title {
|
|
7
|
+
.navbar-dropdown-title {
|
|
7
8
|
display: block;
|
|
8
9
|
font-size: 0.9rem;
|
|
9
10
|
font-family: inherit;
|
|
@@ -26,8 +27,8 @@
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
.
|
|
30
|
-
@extend .dropdown-title;
|
|
30
|
+
.navbar-dropdown-title-mobile {
|
|
31
|
+
@extend .navbar-dropdown-title;
|
|
31
32
|
display: none;
|
|
32
33
|
font-weight: 600;
|
|
33
34
|
font-size: inherit;
|
|
@@ -36,12 +37,12 @@
|
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
.
|
|
40
|
-
.dropdown-item {
|
|
40
|
+
.navbar-dropdown {
|
|
41
|
+
.navbar-dropdown-item {
|
|
41
42
|
color: inherit;
|
|
42
43
|
line-height: 1.7rem;
|
|
43
44
|
|
|
44
|
-
.dropdown-subtitle {
|
|
45
|
+
.navbar-dropdown-subtitle {
|
|
45
46
|
margin: 0.45rem 0 0;
|
|
46
47
|
border-top: 1px solid var(--c-border);
|
|
47
48
|
padding: 1rem 0 0.45rem 0;
|
|
@@ -61,11 +62,11 @@
|
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
.dropdown-subitem-wrapper {
|
|
65
|
+
.navbar-dropdown-subitem-wrapper {
|
|
65
66
|
padding: 0;
|
|
66
67
|
list-style: none;
|
|
67
68
|
|
|
68
|
-
.dropdown-subitem {
|
|
69
|
+
.navbar-dropdown-subitem {
|
|
69
70
|
font-size: 0.9em;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
&:first-child .dropdown-subtitle {
|
|
104
|
+
&:first-child .navbar-dropdown-subtitle {
|
|
104
105
|
margin-top: 0;
|
|
105
106
|
padding-top: 0;
|
|
106
107
|
border-top: 0;
|
|
@@ -110,38 +111,37 @@
|
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
@media (max-width: $MQMobile) {
|
|
113
|
-
.dropdown-wrapper {
|
|
114
|
-
&.open .dropdown-title {
|
|
114
|
+
.navbar-dropdown-wrapper {
|
|
115
|
+
&.open .navbar-dropdown-title {
|
|
115
116
|
margin-bottom: 0.5rem;
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
.dropdown-title {
|
|
119
|
+
.navbar-dropdown-title {
|
|
119
120
|
display: none;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
|
-
.
|
|
123
|
+
.navbar-dropdown-title-mobile {
|
|
123
124
|
display: block;
|
|
124
125
|
}
|
|
125
126
|
|
|
126
|
-
.
|
|
127
|
-
|
|
128
|
-
overflow: hidden;
|
|
127
|
+
.navbar-dropdown {
|
|
128
|
+
@include dropdown_wrapper;
|
|
129
129
|
|
|
130
|
-
.dropdown-item {
|
|
131
|
-
.dropdown-subtitle {
|
|
130
|
+
.navbar-dropdown-item {
|
|
131
|
+
.navbar-dropdown-subtitle {
|
|
132
132
|
border-top: 0;
|
|
133
133
|
margin-top: 0;
|
|
134
134
|
padding-top: 0;
|
|
135
135
|
padding-bottom: 0;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
.dropdown-subtitle,
|
|
138
|
+
.navbar-dropdown-subtitle,
|
|
139
139
|
& > a {
|
|
140
140
|
font-size: 15px;
|
|
141
141
|
line-height: 2rem;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
.dropdown-subitem {
|
|
144
|
+
.navbar-dropdown-subitem {
|
|
145
145
|
font-size: 14px;
|
|
146
146
|
padding-left: 1rem;
|
|
147
147
|
}
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
@media (min-width: ($MQMobile + 1)) {
|
|
154
|
-
.dropdown-wrapper {
|
|
154
|
+
.navbar-dropdown-wrapper {
|
|
155
155
|
height: 1.8rem;
|
|
156
156
|
|
|
157
|
-
&:hover .
|
|
158
|
-
&.open .
|
|
157
|
+
&:hover .navbar-dropdown,
|
|
158
|
+
&.open .navbar-dropdown {
|
|
159
159
|
// override the inline style.
|
|
160
160
|
display: block !important;
|
|
161
161
|
}
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
display: none;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
.
|
|
167
|
+
.navbar-dropdown {
|
|
168
168
|
display: none;
|
|
169
169
|
// Avoid height shaked by clicking
|
|
170
170
|
height: auto !important;
|
|
@@ -185,11 +185,3 @@
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* transition
|
|
191
|
-
*/
|
|
192
|
-
.dropdown-enter-from,
|
|
193
|
-
.dropdown-leave-to {
|
|
194
|
-
height: 0 !important;
|
|
195
|
-
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
position: relative;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.navbar-
|
|
24
|
+
.navbar-items-wrapper {
|
|
25
25
|
display: flex;
|
|
26
26
|
position: absolute;
|
|
27
27
|
box-sizing: border-box;
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* navbar-
|
|
60
|
+
* navbar-items
|
|
61
61
|
*/
|
|
62
|
-
.navbar-
|
|
62
|
+
.navbar-items {
|
|
63
63
|
display: inline-block;
|
|
64
64
|
|
|
65
65
|
a {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.navbar-
|
|
76
|
+
.navbar-item {
|
|
77
77
|
position: relative;
|
|
78
78
|
display: inline-block;
|
|
79
79
|
margin-left: 1.5rem;
|
|
@@ -86,22 +86,22 @@
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
@media (max-width: $MQMobile) {
|
|
89
|
-
.navbar-
|
|
90
|
-
.navbar-
|
|
89
|
+
.navbar-items {
|
|
90
|
+
.navbar-item {
|
|
91
91
|
margin-left: 0;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
@media (min-width: $MQMobile) {
|
|
97
|
-
.navbar-
|
|
97
|
+
.navbar-items a {
|
|
98
98
|
&:hover,
|
|
99
99
|
&.router-link-active {
|
|
100
100
|
color: var(--c-text);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.navbar-
|
|
104
|
+
.navbar-item > a {
|
|
105
105
|
&:hover,
|
|
106
106
|
&.router-link-active {
|
|
107
107
|
margin-bottom: -2px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
@import '_mixins';
|
|
1
2
|
@import '_variables';
|
|
2
|
-
@import '_wrapper';
|
|
3
3
|
|
|
4
4
|
.page {
|
|
5
5
|
padding-bottom: 2rem;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.page-meta {
|
|
10
|
-
@
|
|
10
|
+
@include content_wrapper;
|
|
11
11
|
padding-top: 1rem;
|
|
12
12
|
padding-bottom: 1rem;
|
|
13
13
|
overflow: auto;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.page-nav {
|
|
54
|
-
@
|
|
54
|
+
@include content_wrapper;
|
|
55
55
|
padding-top: 1rem;
|
|
56
56
|
padding-bottom: 0;
|
|
57
57
|
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.prev {
|
|
68
|
-
a
|
|
68
|
+
a:before {
|
|
69
69
|
content: '←';
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
.next {
|
|
73
73
|
float: right;
|
|
74
|
-
a
|
|
74
|
+
a:after {
|
|
75
75
|
content: '→';
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import '_mixins';
|
|
1
2
|
@import '_variables';
|
|
2
3
|
|
|
3
4
|
.sidebar {
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
display: inline-block;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
.navbar-
|
|
15
|
+
.navbar-items {
|
|
15
16
|
display: none;
|
|
16
17
|
border-bottom: 1px solid var(--c-border);
|
|
17
18
|
transition: border-color var(--t-color);
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
font-weight: 600;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
.navbar-
|
|
25
|
+
.navbar-item {
|
|
25
26
|
display: block;
|
|
26
27
|
line-height: 1.25rem;
|
|
27
28
|
font-size: 1.1em;
|
|
@@ -29,80 +30,92 @@
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
.sidebar-
|
|
33
|
+
.sidebar-items {
|
|
33
34
|
padding: 1.5rem 0;
|
|
34
|
-
|
|
35
|
-
> li:not(:first-child) {
|
|
36
|
-
margin-top: 0.75rem;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.sidebar-sub-items {
|
|
40
|
-
padding-left: 1rem;
|
|
41
|
-
font-size: 0.95em;
|
|
42
|
-
}
|
|
43
35
|
}
|
|
44
36
|
}
|
|
45
37
|
|
|
46
38
|
@media (max-width: $MQMobile) {
|
|
47
39
|
.sidebar {
|
|
48
|
-
.navbar-
|
|
40
|
+
.navbar-items {
|
|
49
41
|
display: block;
|
|
50
42
|
|
|
51
|
-
.dropdown-wrapper
|
|
52
|
-
.
|
|
53
|
-
.dropdown-item
|
|
43
|
+
.navbar-dropdown-wrapper
|
|
44
|
+
.navbar-dropdown
|
|
45
|
+
.navbar-dropdown-item
|
|
54
46
|
a.router-link-active::after {
|
|
55
47
|
top: calc(1rem - 2px);
|
|
56
48
|
}
|
|
57
49
|
}
|
|
58
50
|
|
|
59
|
-
.sidebar-
|
|
51
|
+
.sidebar-items {
|
|
60
52
|
padding: 1rem 0;
|
|
61
53
|
}
|
|
62
54
|
}
|
|
63
55
|
}
|
|
64
56
|
|
|
65
|
-
.sidebar-
|
|
66
|
-
|
|
67
|
-
transition: color 0.15s ease;
|
|
68
|
-
font-size: 1.1em;
|
|
69
|
-
font-weight: bold;
|
|
70
|
-
padding: 0.35rem 1.5rem 0.35rem 1.25rem;
|
|
71
|
-
width: 100%;
|
|
72
|
-
box-sizing: border-box;
|
|
73
|
-
margin: 0;
|
|
74
|
-
border-left: 0.25rem solid transparent;
|
|
75
|
-
|
|
76
|
-
.arrow {
|
|
77
|
-
position: relative;
|
|
78
|
-
top: -0.12em;
|
|
79
|
-
left: 0.5em;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
57
|
+
.sidebar-item {
|
|
58
|
+
cursor: default;
|
|
82
59
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
60
|
+
&.sidebar-heading {
|
|
61
|
+
color: var(--c-text);
|
|
62
|
+
transition: color 0.15s ease;
|
|
63
|
+
font-size: 1.1em;
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
padding: 0.35rem 1.5rem 0.35rem 1.25rem;
|
|
66
|
+
width: 100%;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
margin: 0;
|
|
69
|
+
border-left: 0.25rem solid transparent;
|
|
70
|
+
|
|
71
|
+
&.collapsible {
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
|
|
74
|
+
& + .sidebar-item-children {
|
|
75
|
+
@include dropdown_wrapper;
|
|
76
|
+
margin-bottom: 0.75rem;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
98
79
|
|
|
99
|
-
|
|
100
|
-
|
|
80
|
+
.arrow {
|
|
81
|
+
position: relative;
|
|
82
|
+
top: -0.12em;
|
|
83
|
+
left: 0.5em;
|
|
84
|
+
}
|
|
101
85
|
}
|
|
102
|
-
}
|
|
103
86
|
|
|
104
|
-
.sidebar-
|
|
105
|
-
|
|
87
|
+
&:not(.sidebar-heading) {
|
|
88
|
+
font-size: 1em;
|
|
89
|
+
font-weight: 400;
|
|
90
|
+
display: inline-block;
|
|
91
|
+
color: var(--c-text);
|
|
92
|
+
border-left: 0.25rem solid transparent;
|
|
93
|
+
margin: 0;
|
|
94
|
+
padding: 0.35rem 1rem 0.35rem 2rem;
|
|
95
|
+
line-height: 1.4;
|
|
96
|
+
width: 100%;
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
|
|
99
|
+
&.active {
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
color: var(--c-text-accent);
|
|
102
|
+
border-left-color: var(--c-text-accent);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
& + .sidebar-item-children {
|
|
106
|
+
padding-left: 1rem;
|
|
107
|
+
font-size: 0.95em;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.sidebar-item-children .sidebar-item-children & {
|
|
111
|
+
padding: 0.25rem 1rem 0.25rem 1.75rem;
|
|
112
|
+
|
|
113
|
+
&.active {
|
|
114
|
+
font-weight: 500;
|
|
115
|
+
border-left-color: transparent;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
106
119
|
}
|
|
107
120
|
|
|
108
121
|
a.sidebar-item {
|
|
@@ -111,20 +124,4 @@ a.sidebar-item {
|
|
|
111
124
|
&:hover {
|
|
112
125
|
color: var(--c-text-accent);
|
|
113
126
|
}
|
|
114
|
-
|
|
115
|
-
&.active {
|
|
116
|
-
font-weight: 600;
|
|
117
|
-
color: var(--c-text-accent);
|
|
118
|
-
border-left-color: var(--c-text-accent);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&.sidebar-heading.active {
|
|
122
|
-
font-weight: bold;
|
|
123
|
-
border-left-color: transparent;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.sidebar-sub-items &.active {
|
|
127
|
-
font-weight: 500;
|
|
128
|
-
border-left-color: transparent;
|
|
129
|
-
}
|
|
130
127
|
}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dropdown
|
|
3
|
+
*/
|
|
4
|
+
.dropdown-enter-from,
|
|
5
|
+
.dropdown-leave-to {
|
|
6
|
+
height: 0 !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* fade-slide-y
|
|
11
|
+
*/
|
|
1
12
|
.fade-slide-y-enter-active {
|
|
2
13
|
transition: all 0.3s ease;
|
|
3
14
|
}
|
|
4
|
-
|
|
5
15
|
.fade-slide-y-leave-active {
|
|
6
16
|
transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
|
|
7
17
|
}
|
|
8
|
-
|
|
9
18
|
.fade-slide-y-enter-from,
|
|
10
19
|
.fade-slide-y-leave-to {
|
|
11
20
|
transform: translateY(10px);
|
|
@@ -95,6 +95,11 @@
|
|
|
95
95
|
--docsearch-footer-background: var(--c-bg);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
// plugin-external-link-icon
|
|
99
|
+
.external-link-icon {
|
|
100
|
+
--external-link-icon-color: var(--c-text-quote);
|
|
101
|
+
}
|
|
102
|
+
|
|
98
103
|
// plugin-medium-zoom
|
|
99
104
|
.medium-zoom-overlay {
|
|
100
105
|
--medium-zoom-bg-color: var(--c-bg);
|