@vuepress/theme-default 2.0.0-rc.5 → 2.0.0-rc.52
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/components/VPDarkIcon.vue +8 -0
- package/lib/client/components/VPDropdownTransition.vue +36 -0
- package/lib/client/components/VPEditIcon.vue +12 -0
- package/lib/client/components/VPHome.vue +38 -0
- package/lib/client/components/VPHomeFeatures.vue +66 -0
- package/lib/client/components/{HomeFooter.vue → VPHomeFooter.vue} +17 -2
- package/lib/client/components/{HomeHero.vue → VPHomeHero.vue} +113 -19
- package/lib/client/components/VPLightIcon.vue +28 -0
- package/lib/client/components/VPNavbar.vue +134 -0
- package/lib/client/components/{NavbarBrand.vue → VPNavbarBrand.vue} +40 -7
- package/lib/client/components/VPNavbarDropdown.vue +320 -0
- package/lib/client/components/VPNavbarItems.vue +111 -0
- package/lib/client/components/VPPage.vue +70 -0
- package/lib/client/components/VPPageMeta.vue +132 -0
- package/lib/client/components/VPPageNav.vue +118 -0
- package/lib/client/components/VPSidebar.vue +113 -0
- package/lib/client/components/VPSidebarItem.vue +174 -0
- package/lib/client/components/{SidebarItems.vue → VPSidebarItems.vue} +32 -7
- package/lib/client/components/VPToggleColorModeButton.vue +55 -0
- package/lib/client/components/VPToggleSidebarButton.vue +92 -0
- package/lib/client/components/global/Badge.vue +84 -18
- package/lib/client/components/global/index.d.ts +1 -3
- package/lib/client/components/global/index.js +1 -3
- package/lib/client/composables/index.d.ts +8 -0
- package/lib/client/composables/index.js +8 -0
- package/lib/client/composables/useContributors.d.ts +3 -0
- package/lib/client/composables/useContributors.js +14 -0
- package/lib/client/composables/useDarkMode.d.ts +0 -1
- package/lib/client/composables/useDarkMode.js +16 -13
- package/lib/client/composables/useEditLink.d.ts +3 -0
- package/lib/client/composables/useEditLink.js +31 -0
- package/lib/client/composables/useLastUpdated.d.ts +2 -0
- package/lib/client/composables/useLastUpdated.js +17 -0
- package/lib/client/composables/useNavbarConfig.d.ts +3 -0
- package/lib/client/composables/useNavbarConfig.js +27 -0
- package/lib/client/composables/useNavbarRepo.d.ts +6 -0
- package/lib/client/composables/useNavbarRepo.js +38 -0
- package/lib/client/composables/useNavbarSelectLanguage.d.ts +6 -0
- package/lib/client/composables/useNavbarSelectLanguage.js +59 -0
- package/lib/client/composables/useNavigate.d.ts +1 -0
- package/lib/client/composables/useNavigate.js +22 -0
- package/lib/client/composables/useRelatedLinks.d.ts +8 -0
- package/lib/client/composables/useRelatedLinks.js +91 -0
- package/lib/client/composables/useScrollPromise.js +3 -1
- package/lib/client/composables/useSidebarItems.d.ts +28 -23
- package/lib/client/composables/useSidebarItems.js +120 -84
- package/lib/client/composables/useUpdateDeviceStatus.d.ts +1 -1
- package/lib/client/composables/useUpdateDeviceStatus.js +10 -5
- package/lib/client/config.d.ts +3 -2
- package/lib/client/config.js +9 -22
- package/lib/client/index.d.ts +2 -1
- package/lib/client/index.js +0 -1
- package/lib/client/layouts/Layout.vue +139 -34
- package/lib/client/layouts/NotFound.vue +17 -5
- package/lib/client/shim.d.ts +12 -3
- package/lib/client/styles/_mixins.scss +4 -4
- package/lib/client/styles/_variables.module.scss +1 -1
- package/lib/client/styles/_variables.scss +1 -0
- package/lib/client/styles/arrow.scss +18 -24
- package/lib/client/styles/code-group.scss +35 -30
- package/lib/client/styles/content/code.scss +23 -0
- package/lib/client/styles/content/index.scss +3 -0
- package/lib/client/styles/content/normalize.scss +39 -0
- package/lib/client/styles/{toc.scss → content/toc.scss} +1 -1
- package/lib/client/styles/external-link-icon.scss +37 -0
- package/lib/client/styles/index.scss +3 -13
- package/lib/client/styles/layout.scss +3 -199
- package/lib/client/styles/normalize.scss +1 -194
- package/lib/client/styles/plugins.scss +28 -0
- package/lib/client/styles/vars-dark.scss +20 -58
- package/lib/client/styles/vars.scss +53 -129
- package/lib/client/typings.d.ts +13 -0
- package/lib/client/typings.js +1 -0
- package/lib/client/utils/getAutoLink.d.ts +9 -0
- package/lib/client/utils/getAutoLink.js +17 -0
- package/lib/client/utils/index.d.ts +3 -2
- package/lib/client/utils/index.js +3 -2
- package/lib/client/utils/isActiveSidebarItem.d.ts +3 -3
- package/lib/client/utils/isActiveSidebarItem.js +3 -3
- package/lib/client/utils/isLinkInternal.d.ts +1 -0
- package/lib/client/utils/isLinkInternal.js +2 -0
- package/lib/client/utils/resolveEditLink.d.ts +1 -1
- package/lib/client/utils/resolvePrefix.d.ts +1 -0
- package/lib/client/utils/resolvePrefix.js +4 -0
- package/lib/client/utils/resolveRepoType.d.ts +1 -1
- package/lib/client/utils/resolveRepoType.js +4 -4
- package/lib/node/defaultTheme.d.ts +2 -1
- package/lib/node/defaultTheme.js +72 -46
- package/lib/node/index.d.ts +3 -1
- package/lib/node/index.js +1 -1
- package/lib/node/typings.d.ts +58 -0
- package/lib/node/typings.js +1 -0
- package/lib/node/utils/assignDefaultLocaleOptions.js +3 -7
- package/lib/node/utils/index.d.ts +1 -1
- package/lib/node/utils/index.js +1 -1
- package/lib/node/utils/resolveMarkdownHintLocales.d.ts +9 -0
- package/lib/node/utils/resolveMarkdownHintLocales.js +19 -0
- package/lib/shared/index.d.ts +5 -3
- package/lib/shared/index.js +1 -3
- package/lib/shared/nav.d.ts +19 -30
- package/lib/shared/navbar.d.ts +21 -0
- package/lib/shared/navbar.js +1 -0
- package/lib/shared/options.d.ts +36 -60
- package/lib/shared/page.d.ts +9 -6
- package/lib/shared/sidebar.d.ts +26 -0
- package/lib/shared/sidebar.js +1 -0
- package/package.json +30 -26
- package/templates/build.html +23 -14
- package/lib/client/components/AutoLink.vue +0 -113
- package/lib/client/components/DropdownTransition.vue +0 -25
- package/lib/client/components/Home.vue +0 -15
- package/lib/client/components/HomeContent.vue +0 -5
- package/lib/client/components/HomeFeatures.vue +0 -22
- package/lib/client/components/Navbar.vue +0 -79
- package/lib/client/components/NavbarDropdown.vue +0 -126
- package/lib/client/components/NavbarItems.vue +0 -199
- package/lib/client/components/Page.vue +0 -31
- package/lib/client/components/PageMeta.vue +0 -124
- package/lib/client/components/PageNav.vue +0 -122
- package/lib/client/components/Sidebar.vue +0 -18
- package/lib/client/components/SidebarItem.vue +0 -87
- package/lib/client/components/ToggleColorModeButton.vue +0 -57
- package/lib/client/components/ToggleSidebarButton.vue +0 -24
- package/lib/client/components/global/CodeGroup.d.ts +0 -6
- package/lib/client/components/global/CodeGroup.js +0 -120
- package/lib/client/components/global/CodeGroupItem.vue +0 -27
- package/lib/client/styles/badge.scss +0 -36
- package/lib/client/styles/code.scss +0 -263
- package/lib/client/styles/custom-container.scss +0 -142
- package/lib/client/styles/home.scss +0 -168
- package/lib/client/styles/navbar-dropdown.scss +0 -183
- package/lib/client/styles/navbar.scss +0 -197
- package/lib/client/styles/page.scss +0 -87
- package/lib/client/styles/sidebar.scss +0 -134
- package/lib/client/styles/transitions.scss +0 -22
- package/lib/client/utils/getNavLink.d.ts +0 -15
- package/lib/client/utils/getNavLink.js +0 -18
- package/lib/client/utils/getResolveRouteWithRedirect.d.ts +0 -5
- package/lib/client/utils/getResolveRouteWithRedirect.js +0 -22
- package/lib/node/utils/resolveContainerPluginOptions.d.ts +0 -8
- package/lib/node/utils/resolveContainerPluginOptions.js +0 -17
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
@import '_variables';
|
|
2
|
-
|
|
3
|
-
.home {
|
|
4
|
-
padding: var(--navbar-height) 2rem 0;
|
|
5
|
-
max-width: var(--homepage-width);
|
|
6
|
-
margin: 0px auto;
|
|
7
|
-
display: block;
|
|
8
|
-
|
|
9
|
-
.hero {
|
|
10
|
-
text-align: center;
|
|
11
|
-
|
|
12
|
-
img {
|
|
13
|
-
max-width: 100%;
|
|
14
|
-
max-height: 280px;
|
|
15
|
-
display: block;
|
|
16
|
-
margin: 3rem auto 1.5rem;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
h1 {
|
|
20
|
-
font-size: 3rem;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
h1,
|
|
24
|
-
.description,
|
|
25
|
-
.actions {
|
|
26
|
-
margin: 1.8rem auto;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.actions {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-wrap: wrap;
|
|
32
|
-
gap: 1rem;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.description {
|
|
37
|
-
max-width: 35rem;
|
|
38
|
-
font-size: 1.6rem;
|
|
39
|
-
line-height: 1.3;
|
|
40
|
-
color: var(--c-text-lightest);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.action-button {
|
|
44
|
-
display: inline-block;
|
|
45
|
-
font-size: 1.2rem;
|
|
46
|
-
padding: 0.8rem 1.6rem;
|
|
47
|
-
border-width: 2px;
|
|
48
|
-
border-style: solid;
|
|
49
|
-
border-radius: 4px;
|
|
50
|
-
transition: background-color var(--t-color);
|
|
51
|
-
box-sizing: border-box;
|
|
52
|
-
|
|
53
|
-
&.primary {
|
|
54
|
-
color: var(--c-bg);
|
|
55
|
-
background-color: var(--c-brand);
|
|
56
|
-
border-color: var(--c-brand);
|
|
57
|
-
&:hover {
|
|
58
|
-
background-color: var(--c-brand-light);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.secondary {
|
|
63
|
-
color: var(--c-brand);
|
|
64
|
-
background-color: var(--c-bg);
|
|
65
|
-
border-color: var(--c-brand);
|
|
66
|
-
&:hover {
|
|
67
|
-
color: var(--c-bg);
|
|
68
|
-
background-color: var(--c-brand-light);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.features {
|
|
75
|
-
border-top: 1px solid var(--c-border);
|
|
76
|
-
transition: border-color var(--t-color);
|
|
77
|
-
padding: 1.2rem 0;
|
|
78
|
-
margin-top: 2.5rem;
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-wrap: wrap;
|
|
81
|
-
align-items: flex-start;
|
|
82
|
-
align-content: stretch;
|
|
83
|
-
justify-content: space-between;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.feature {
|
|
87
|
-
flex-grow: 1;
|
|
88
|
-
flex-basis: 30%;
|
|
89
|
-
max-width: 30%;
|
|
90
|
-
|
|
91
|
-
h2 {
|
|
92
|
-
font-size: 1.4rem;
|
|
93
|
-
font-weight: 500;
|
|
94
|
-
border-bottom: none;
|
|
95
|
-
padding-bottom: 0;
|
|
96
|
-
color: var(--c-text-light);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
p {
|
|
100
|
-
color: var(--c-text-lighter);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.theme-default-content {
|
|
105
|
-
padding: 0;
|
|
106
|
-
margin: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.footer {
|
|
110
|
-
padding: 2.5rem;
|
|
111
|
-
border-top: 1px solid var(--c-border);
|
|
112
|
-
text-align: center;
|
|
113
|
-
color: var(--c-text-lighter);
|
|
114
|
-
transition: border-color var(--t-color);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@media (max-width: $MQMobile) {
|
|
119
|
-
.home {
|
|
120
|
-
.features {
|
|
121
|
-
flex-direction: column;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.feature {
|
|
125
|
-
max-width: 100%;
|
|
126
|
-
padding: 0 2.5rem;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@media (max-width: $MQMobileNarrow) {
|
|
132
|
-
.home {
|
|
133
|
-
padding-left: 1.5rem;
|
|
134
|
-
padding-right: 1.5rem;
|
|
135
|
-
|
|
136
|
-
.hero {
|
|
137
|
-
img {
|
|
138
|
-
max-height: 210px;
|
|
139
|
-
margin: 2rem auto 1.2rem;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
h1 {
|
|
143
|
-
font-size: 2rem;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
h1,
|
|
147
|
-
.description,
|
|
148
|
-
.actions {
|
|
149
|
-
margin: 1.2rem auto;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.description {
|
|
153
|
-
font-size: 1.2rem;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.action-button {
|
|
157
|
-
font-size: 1rem;
|
|
158
|
-
padding: 0.6rem 1.2rem;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.feature {
|
|
163
|
-
h2 {
|
|
164
|
-
font-size: 1.25rem;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
@import '_mixins';
|
|
2
|
-
@import '_variables';
|
|
3
|
-
|
|
4
|
-
.navbar-dropdown-wrapper {
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
|
|
7
|
-
.navbar-dropdown-title {
|
|
8
|
-
display: block;
|
|
9
|
-
font-size: 0.9rem;
|
|
10
|
-
font-family: inherit;
|
|
11
|
-
cursor: inherit;
|
|
12
|
-
padding: inherit;
|
|
13
|
-
line-height: 1.4rem;
|
|
14
|
-
background: transparent;
|
|
15
|
-
border: none;
|
|
16
|
-
font-weight: 500;
|
|
17
|
-
color: var(--c-text);
|
|
18
|
-
|
|
19
|
-
&:hover {
|
|
20
|
-
border-color: transparent;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.arrow {
|
|
24
|
-
vertical-align: middle;
|
|
25
|
-
margin-top: -1px;
|
|
26
|
-
margin-left: 0.4rem;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.navbar-dropdown-title-mobile {
|
|
31
|
-
@extend .navbar-dropdown-title;
|
|
32
|
-
display: none;
|
|
33
|
-
font-weight: 600;
|
|
34
|
-
font-size: inherit;
|
|
35
|
-
&:hover {
|
|
36
|
-
color: var(--c-text-accent);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.navbar-dropdown {
|
|
41
|
-
.navbar-dropdown-item {
|
|
42
|
-
color: inherit;
|
|
43
|
-
line-height: 1.7rem;
|
|
44
|
-
|
|
45
|
-
.navbar-dropdown-subtitle {
|
|
46
|
-
margin: 0.45rem 0 0;
|
|
47
|
-
border-top: 1px solid var(--c-border);
|
|
48
|
-
padding: 1rem 0 0.45rem 0;
|
|
49
|
-
font-size: 0.9rem;
|
|
50
|
-
|
|
51
|
-
& > span {
|
|
52
|
-
padding: 0 1.5rem 0 1.25rem;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
& > a {
|
|
56
|
-
font-weight: inherit;
|
|
57
|
-
&.router-link-active {
|
|
58
|
-
&::after {
|
|
59
|
-
display: none;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.navbar-dropdown-subitem-wrapper {
|
|
66
|
-
padding: 0;
|
|
67
|
-
list-style: none;
|
|
68
|
-
|
|
69
|
-
.navbar-dropdown-subitem {
|
|
70
|
-
font-size: 0.9em;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
a {
|
|
75
|
-
display: block;
|
|
76
|
-
line-height: 1.7rem;
|
|
77
|
-
position: relative;
|
|
78
|
-
border-bottom: none;
|
|
79
|
-
font-weight: 400;
|
|
80
|
-
margin-bottom: 0;
|
|
81
|
-
padding: 0 1.5rem 0 1.25rem;
|
|
82
|
-
|
|
83
|
-
&:hover {
|
|
84
|
-
color: var(--c-text-accent);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.router-link-active {
|
|
88
|
-
color: var(--c-text-accent);
|
|
89
|
-
|
|
90
|
-
&::after {
|
|
91
|
-
content: '';
|
|
92
|
-
width: 0;
|
|
93
|
-
height: 0;
|
|
94
|
-
border-left: 5px solid var(--c-text-accent);
|
|
95
|
-
border-top: 3px solid transparent;
|
|
96
|
-
border-bottom: 3px solid transparent;
|
|
97
|
-
position: absolute;
|
|
98
|
-
top: calc(50% - 2px);
|
|
99
|
-
left: 9px;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&:first-child .navbar-dropdown-subtitle {
|
|
105
|
-
margin-top: 0;
|
|
106
|
-
padding-top: 0;
|
|
107
|
-
border-top: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&.mobile {
|
|
113
|
-
&.open .navbar-dropdown-title {
|
|
114
|
-
margin-bottom: 0.5rem;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.navbar-dropdown-title {
|
|
118
|
-
display: none;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.navbar-dropdown-title-mobile {
|
|
122
|
-
display: block;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.navbar-dropdown {
|
|
126
|
-
@include dropdown_wrapper;
|
|
127
|
-
|
|
128
|
-
.navbar-dropdown-item {
|
|
129
|
-
.navbar-dropdown-subtitle {
|
|
130
|
-
border-top: 0;
|
|
131
|
-
margin-top: 0;
|
|
132
|
-
padding-top: 0;
|
|
133
|
-
padding-bottom: 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.navbar-dropdown-subtitle,
|
|
137
|
-
& > a {
|
|
138
|
-
font-size: 15px;
|
|
139
|
-
line-height: 2rem;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.navbar-dropdown-subitem {
|
|
143
|
-
font-size: 14px;
|
|
144
|
-
padding-left: 1rem;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&:not(.mobile) {
|
|
151
|
-
height: 1.8rem;
|
|
152
|
-
|
|
153
|
-
&:hover .navbar-dropdown,
|
|
154
|
-
&.open .navbar-dropdown {
|
|
155
|
-
// override the inline style.
|
|
156
|
-
display: block !important;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&.open:blur {
|
|
160
|
-
display: none;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.navbar-dropdown {
|
|
164
|
-
display: none;
|
|
165
|
-
// Avoid height shaked by clicking
|
|
166
|
-
height: auto !important;
|
|
167
|
-
box-sizing: border-box;
|
|
168
|
-
max-height: calc(100vh - 2.7rem);
|
|
169
|
-
overflow-y: auto;
|
|
170
|
-
position: absolute;
|
|
171
|
-
top: 100%;
|
|
172
|
-
right: 0;
|
|
173
|
-
background-color: var(--c-bg-navbar);
|
|
174
|
-
padding: 0.6rem 0;
|
|
175
|
-
border: 1px solid var(--c-border);
|
|
176
|
-
border-bottom-color: var(--c-border-dark);
|
|
177
|
-
text-align: left;
|
|
178
|
-
border-radius: 0.25rem;
|
|
179
|
-
white-space: nowrap;
|
|
180
|
-
margin: 0;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
@import '_variables';
|
|
2
|
-
|
|
3
|
-
.navbar {
|
|
4
|
-
--navbar-line-height: calc(
|
|
5
|
-
var(--navbar-height) - 2 * var(--navbar-padding-v)
|
|
6
|
-
);
|
|
7
|
-
|
|
8
|
-
padding: var(--navbar-padding-v) var(--navbar-padding-h);
|
|
9
|
-
line-height: var(--navbar-line-height);
|
|
10
|
-
|
|
11
|
-
.logo {
|
|
12
|
-
height: var(--navbar-line-height);
|
|
13
|
-
margin-right: var(--navbar-padding-v);
|
|
14
|
-
vertical-align: top;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.site-name {
|
|
18
|
-
font-size: 1.3rem;
|
|
19
|
-
font-weight: 600;
|
|
20
|
-
color: var(--c-text);
|
|
21
|
-
position: relative;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.navbar-items-wrapper {
|
|
25
|
-
display: flex;
|
|
26
|
-
position: absolute;
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
top: var(--navbar-padding-v);
|
|
29
|
-
right: var(--navbar-padding-h);
|
|
30
|
-
height: var(--navbar-line-height);
|
|
31
|
-
padding-left: var(--navbar-padding-h);
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
font-size: 0.9rem;
|
|
34
|
-
|
|
35
|
-
.search-box {
|
|
36
|
-
flex: 0 0 auto;
|
|
37
|
-
vertical-align: top;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media screen and (max-width: $MQMobile) {
|
|
43
|
-
.navbar {
|
|
44
|
-
padding-left: 4rem;
|
|
45
|
-
|
|
46
|
-
.site-name {
|
|
47
|
-
display: block;
|
|
48
|
-
// 5.5rem for .navbar padding-inline
|
|
49
|
-
// 4.5rem for ColorModeSwitch and NavbarSearch
|
|
50
|
-
// 1rem for gap
|
|
51
|
-
width: calc(100vw - 11rem);
|
|
52
|
-
overflow: hidden;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
text-overflow: ellipsis;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.can-hide {
|
|
58
|
-
display: none;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* navbar-items
|
|
65
|
-
*/
|
|
66
|
-
.navbar-items {
|
|
67
|
-
display: inline-block;
|
|
68
|
-
|
|
69
|
-
@media print {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
a {
|
|
74
|
-
display: inline-block;
|
|
75
|
-
line-height: 1.4rem;
|
|
76
|
-
color: inherit;
|
|
77
|
-
|
|
78
|
-
&:hover,
|
|
79
|
-
&.router-link-active {
|
|
80
|
-
color: var(--c-text);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.navbar-item {
|
|
85
|
-
position: relative;
|
|
86
|
-
display: inline-block;
|
|
87
|
-
margin-left: 1.5rem;
|
|
88
|
-
line-height: var(--navbar-line-height);
|
|
89
|
-
|
|
90
|
-
&:first-child {
|
|
91
|
-
margin-left: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
> a {
|
|
95
|
-
&:hover,
|
|
96
|
-
&.router-link-active {
|
|
97
|
-
margin-bottom: -2px;
|
|
98
|
-
border-bottom: 2px solid var(--c-text-accent);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@media (max-width: $MQMobile) {
|
|
105
|
-
.navbar-items {
|
|
106
|
-
.navbar-item {
|
|
107
|
-
margin-left: 0;
|
|
108
|
-
|
|
109
|
-
> a {
|
|
110
|
-
&:hover,
|
|
111
|
-
&.router-link-active {
|
|
112
|
-
margin-bottom: 0;
|
|
113
|
-
border-bottom: none;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
a {
|
|
119
|
-
&:hover,
|
|
120
|
-
&.router-link-active {
|
|
121
|
-
color: var(--c-text-accent);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* toggle sidebar button
|
|
129
|
-
*/
|
|
130
|
-
.toggle-sidebar-button {
|
|
131
|
-
position: absolute;
|
|
132
|
-
top: 0.6rem;
|
|
133
|
-
left: 1rem;
|
|
134
|
-
display: none;
|
|
135
|
-
padding: 0.6rem;
|
|
136
|
-
cursor: pointer;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.toggle-sidebar-button .icon {
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
justify-content: center;
|
|
143
|
-
align-items: center;
|
|
144
|
-
width: 1.25rem;
|
|
145
|
-
height: 1.25rem;
|
|
146
|
-
cursor: inherit;
|
|
147
|
-
|
|
148
|
-
span {
|
|
149
|
-
display: inline-block;
|
|
150
|
-
width: 100%;
|
|
151
|
-
height: 2px;
|
|
152
|
-
border-radius: 2px;
|
|
153
|
-
background-color: var(--c-text);
|
|
154
|
-
transition: transform var(--t-transform);
|
|
155
|
-
|
|
156
|
-
&:nth-child(2) {
|
|
157
|
-
margin: 6px 0;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@media screen and (max-width: $MQMobile) {
|
|
163
|
-
.toggle-sidebar-button {
|
|
164
|
-
display: block;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* toggle color mode button
|
|
170
|
-
*/
|
|
171
|
-
.toggle-color-mode-button {
|
|
172
|
-
display: flex;
|
|
173
|
-
margin: auto;
|
|
174
|
-
margin-left: 1rem;
|
|
175
|
-
border: 0;
|
|
176
|
-
background: none;
|
|
177
|
-
color: var(--c-text);
|
|
178
|
-
opacity: 0.8;
|
|
179
|
-
cursor: pointer;
|
|
180
|
-
|
|
181
|
-
@media print {
|
|
182
|
-
display: none;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&:hover {
|
|
186
|
-
opacity: 1;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.icon {
|
|
190
|
-
width: 1.25rem;
|
|
191
|
-
height: 1.25rem;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.DocSearch {
|
|
196
|
-
transition: background-color var(--t-color);
|
|
197
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
@import '_mixins';
|
|
2
|
-
@import '_variables';
|
|
3
|
-
|
|
4
|
-
.page {
|
|
5
|
-
padding-bottom: 2rem;
|
|
6
|
-
display: block;
|
|
7
|
-
|
|
8
|
-
.theme-default-content {
|
|
9
|
-
@include content_wrapper;
|
|
10
|
-
padding-top: 0;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.page-meta {
|
|
15
|
-
@include content_wrapper;
|
|
16
|
-
padding-top: 1rem;
|
|
17
|
-
padding-bottom: 1rem;
|
|
18
|
-
overflow: auto;
|
|
19
|
-
|
|
20
|
-
.meta-item {
|
|
21
|
-
cursor: default;
|
|
22
|
-
margin-top: 0.8rem;
|
|
23
|
-
|
|
24
|
-
.meta-item-label {
|
|
25
|
-
font-weight: 500;
|
|
26
|
-
color: var(--c-text-lighter);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.meta-item-info {
|
|
30
|
-
font-weight: 400;
|
|
31
|
-
color: var(--c-text-quote);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.edit-link {
|
|
36
|
-
display: inline-block;
|
|
37
|
-
margin-right: 0.25rem;
|
|
38
|
-
|
|
39
|
-
@media print {
|
|
40
|
-
display: none;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.last-updated {
|
|
45
|
-
float: right;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (max-width: $MQMobile) {
|
|
50
|
-
.page-meta {
|
|
51
|
-
.last-updated {
|
|
52
|
-
font-size: 0.8em;
|
|
53
|
-
float: none;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.contributors {
|
|
57
|
-
font-size: 0.8em;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.page-nav {
|
|
63
|
-
@include content_wrapper;
|
|
64
|
-
padding-top: 1rem;
|
|
65
|
-
padding-bottom: 0;
|
|
66
|
-
|
|
67
|
-
.inner {
|
|
68
|
-
min-height: 2rem;
|
|
69
|
-
margin-top: 0;
|
|
70
|
-
border-top: 1px solid var(--c-border);
|
|
71
|
-
transition: border-color var(--t-color);
|
|
72
|
-
padding-top: 1rem;
|
|
73
|
-
overflow: auto;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.prev {
|
|
77
|
-
a:before {
|
|
78
|
-
content: '←';
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.next {
|
|
82
|
-
float: right;
|
|
83
|
-
a:after {
|
|
84
|
-
content: '→';
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|