@vuepress/theme-default 2.0.0-rc.4 → 2.0.0-rc.40
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/{DropdownTransition.vue → VPDropdownTransition.vue} +10 -1
- package/lib/client/components/VPEditIcon.vue +12 -0
- package/lib/client/components/VPHome.vue +38 -0
- package/lib/client/components/VPHomeFeatures.vue +68 -0
- package/lib/client/components/{HomeFooter.vue → VPHomeFooter.vue} +16 -2
- package/lib/client/components/{HomeHero.vue → VPHomeHero.vue} +108 -7
- package/lib/client/components/VPLightIcon.vue +28 -0
- package/lib/client/components/VPNavbar.vue +125 -0
- package/lib/client/components/{NavbarBrand.vue → VPNavbarBrand.vue} +39 -6
- package/lib/client/components/VPNavbarDropdown.vue +320 -0
- package/lib/client/components/VPNavbarItems.vue +110 -0
- package/lib/client/components/VPPage.vue +69 -0
- package/lib/client/components/VPPageMeta.vue +132 -0
- package/lib/client/components/VPPageNav.vue +118 -0
- package/lib/client/components/VPSidebar.vue +112 -0
- package/lib/client/components/VPSidebarItem.vue +167 -0
- package/lib/client/components/{SidebarItems.vue → VPSidebarItems.vue} +31 -7
- package/lib/client/components/VPToggleColorModeButton.vue +54 -0
- package/lib/client/components/VPToggleSidebarButton.vue +92 -0
- package/lib/client/components/global/Badge.vue +60 -18
- package/lib/client/components/global/CodeGroup.d.ts +1 -0
- package/lib/client/components/global/CodeGroup.js +4 -3
- package/lib/client/components/global/CodeGroupItem.vue +5 -16
- 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 +14 -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 +25 -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 +58 -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/useSidebarItems.d.ts +17 -12
- package/lib/client/composables/useSidebarItems.js +87 -52
- package/lib/client/composables/useUpdateDeviceStatus.js +5 -4
- package/lib/client/config.d.ts +2 -2
- package/lib/client/config.js +12 -13
- package/lib/client/index.d.ts +2 -1
- package/lib/client/index.js +1 -1
- package/lib/client/layouts/Layout.vue +121 -20
- package/lib/client/layouts/NotFound.vue +18 -4
- package/lib/client/shim.d.ts +3 -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 +32 -29
- package/lib/client/styles/content/code.scss +23 -0
- package/lib/client/styles/{custom-container.scss → content/custom-container.scss} +13 -13
- package/lib/client/styles/content/index.scss +4 -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 +20 -148
- package/lib/client/styles/plugins.scss +20 -0
- package/lib/client/styles/vars-dark.scss +17 -12
- package/lib/client/styles/vars.scss +71 -33
- 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/node/defaultTheme.js +83 -24
- package/lib/node/index.d.ts +2 -1
- package/lib/node/index.js +1 -1
- package/lib/node/utils/assignDefaultLocaleOptions.js +1 -1
- package/lib/node/utils/resolveContainerPluginOptions.d.ts +3 -3
- package/lib/node/utils/resolveContainerPluginOptions.js +2 -2
- package/lib/shared/index.d.ts +2 -0
- package/lib/shared/index.js +2 -0
- 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 +31 -8
- package/lib/shared/page.d.ts +6 -4
- package/lib/shared/sidebar.d.ts +26 -0
- package/lib/shared/sidebar.js +1 -0
- package/package.json +22 -26
- package/templates/build.html +19 -10
- package/lib/client/components/AutoLink.vue +0 -113
- 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/styles/badge.scss +0 -36
- package/lib/client/styles/code.scss +0 -263
- 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
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import 'variables';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* code-group
|
|
5
5
|
*/
|
|
6
|
-
.code-
|
|
6
|
+
.code-group-nav {
|
|
7
7
|
margin-top: 0.85rem;
|
|
8
|
+
|
|
8
9
|
// 2 * margin + border-radius of <pre> tag
|
|
9
10
|
margin-bottom: calc(-1.7rem - 6px);
|
|
11
|
+
padding-top: 10px;
|
|
10
12
|
padding-bottom: calc(1.7rem - 6px);
|
|
11
13
|
padding-left: 10px;
|
|
12
|
-
padding-top: 10px;
|
|
13
14
|
border-top-left-radius: 6px;
|
|
14
15
|
border-top-right-radius: 6px;
|
|
16
|
+
|
|
15
17
|
background-color: var(--c-code-group-tab-bg);
|
|
18
|
+
|
|
19
|
+
@media (max-width: $MQMobileNarrow) {
|
|
20
|
+
margin-right: -1.5rem;
|
|
21
|
+
margin-left: -1.5rem;
|
|
22
|
+
border-radius: 0;
|
|
23
|
+
}
|
|
16
24
|
}
|
|
17
25
|
|
|
18
|
-
.code-
|
|
19
|
-
border: 0;
|
|
26
|
+
.code-group-nav-tab {
|
|
20
27
|
padding: 5px;
|
|
21
|
-
|
|
28
|
+
border: 0;
|
|
29
|
+
|
|
22
30
|
background-color: transparent;
|
|
23
|
-
font-size: 0.85em;
|
|
24
|
-
line-height: 1.4;
|
|
25
31
|
color: var(--c-code-group-tab-title);
|
|
32
|
+
|
|
26
33
|
font-weight: 600;
|
|
27
|
-
|
|
34
|
+
font-size: 0.85em;
|
|
35
|
+
line-height: 1.4;
|
|
28
36
|
|
|
29
|
-
|
|
30
|
-
outline: none;
|
|
31
|
-
}
|
|
37
|
+
cursor: pointer;
|
|
32
38
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
39
|
+
&:focus {
|
|
40
|
+
outline: none;
|
|
41
|
+
}
|
|
36
42
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
43
|
+
&:focus-visible {
|
|
44
|
+
outline: 1px solid var(--c-code-group-tab-outline);
|
|
45
|
+
}
|
|
40
46
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
margin-left: -1.5rem;
|
|
44
|
-
margin-right: -1.5rem;
|
|
45
|
-
border-radius: 0;
|
|
47
|
+
&.active {
|
|
48
|
+
border-bottom: var(--c-code-group-tab-active-border) 1px solid;
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
|
|
@@ -51,12 +54,12 @@
|
|
|
51
54
|
*/
|
|
52
55
|
.code-group-item {
|
|
53
56
|
display: none;
|
|
54
|
-
}
|
|
55
57
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
58
|
+
&.active {
|
|
59
|
+
display: block;
|
|
60
|
+
}
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
> pre {
|
|
63
|
+
background-color: #ffa500;
|
|
64
|
+
}
|
|
62
65
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
// code block additional styles
|
|
4
|
+
div[class*='language-'] {
|
|
5
|
+
margin: 0.75rem 0;
|
|
6
|
+
transition:
|
|
7
|
+
background-color var(--t-color),
|
|
8
|
+
color var(--t-color);
|
|
9
|
+
|
|
10
|
+
@media (max-width: $MQMobileNarrow) {
|
|
11
|
+
--code-border-radius: 0;
|
|
12
|
+
|
|
13
|
+
margin: 0.75rem -1.5rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// transitions for code notation highlighting
|
|
17
|
+
.line {
|
|
18
|
+
&.diff,
|
|
19
|
+
&.highlighted {
|
|
20
|
+
transition: background-color var(--t-color);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.custom-container-title {
|
|
8
8
|
font-weight: 600;
|
|
9
|
+
|
|
9
10
|
&:not(:only-child) {
|
|
10
11
|
margin-bottom: -0.4rem;
|
|
11
12
|
}
|
|
@@ -14,10 +15,10 @@
|
|
|
14
15
|
&.tip,
|
|
15
16
|
&.warning,
|
|
16
17
|
&.danger {
|
|
18
|
+
margin: 1rem 0;
|
|
17
19
|
padding: 0.1rem 1.5rem;
|
|
18
20
|
border-left-width: 0.5rem;
|
|
19
21
|
border-left-style: solid;
|
|
20
|
-
margin: 1rem 0;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&.tip {
|
|
@@ -39,6 +40,8 @@
|
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
&.warning {
|
|
43
|
+
--external-link-icon-color: var(--c-warning-text-quote);
|
|
44
|
+
|
|
42
45
|
border-color: var(--c-warning);
|
|
43
46
|
background-color: var(--c-warning-bg);
|
|
44
47
|
color: var(--c-warning-text);
|
|
@@ -57,8 +60,8 @@
|
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
code {
|
|
60
|
-
color: var(--c-warning-text-light);
|
|
61
63
|
background-color: var(--c-warning-bg-light);
|
|
64
|
+
color: var(--c-warning-text-light);
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
details {
|
|
@@ -68,13 +71,11 @@
|
|
|
68
71
|
background-color: var(--c-warning-bg-lighter);
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
|
-
|
|
72
|
-
.external-link-icon {
|
|
73
|
-
--external-link-icon-color: var(--c-warning-text-quote);
|
|
74
|
-
}
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
&.danger {
|
|
77
|
+
--external-link-icon-color: var(--c-danger-text-quote);
|
|
78
|
+
|
|
78
79
|
border-color: var(--c-danger);
|
|
79
80
|
background-color: var(--c-danger-bg);
|
|
80
81
|
color: var(--c-danger-text);
|
|
@@ -93,8 +94,8 @@
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
code {
|
|
96
|
-
color: var(--c-danger-text-light);
|
|
97
97
|
background-color: var(--c-danger-bg-light);
|
|
98
|
+
color: var(--c-danger-text-light);
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
details {
|
|
@@ -104,18 +105,17 @@
|
|
|
104
105
|
background-color: var(--c-danger-bg-lighter);
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
|
-
|
|
108
|
-
.external-link-icon {
|
|
109
|
-
--external-link-icon-color: var(--c-danger-text-quote);
|
|
110
|
-
}
|
|
111
108
|
}
|
|
112
109
|
|
|
113
110
|
&.details {
|
|
114
|
-
display: block;
|
|
115
111
|
position: relative;
|
|
116
|
-
|
|
112
|
+
|
|
113
|
+
display: block;
|
|
114
|
+
|
|
117
115
|
margin: 1.6em 0;
|
|
118
116
|
padding: 1.6em;
|
|
117
|
+
border-radius: 2px;
|
|
118
|
+
|
|
119
119
|
background-color: var(--c-details-bg);
|
|
120
120
|
|
|
121
121
|
code {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
.theme-default-content {
|
|
4
|
+
h1,
|
|
5
|
+
h2,
|
|
6
|
+
h3,
|
|
7
|
+
h4,
|
|
8
|
+
h5,
|
|
9
|
+
h6 {
|
|
10
|
+
margin-top: calc(0.5rem - var(--navbar-height));
|
|
11
|
+
margin-bottom: 0;
|
|
12
|
+
padding-top: calc(1rem + var(--navbar-height));
|
|
13
|
+
|
|
14
|
+
&:first-child {
|
|
15
|
+
margin-bottom: 1rem;
|
|
16
|
+
|
|
17
|
+
+ p,
|
|
18
|
+
+ pre,
|
|
19
|
+
+ .custom-container {
|
|
20
|
+
margin-top: 2rem;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
h1 {
|
|
26
|
+
// narrow mobile
|
|
27
|
+
@media (max-width: $MQMobileNarrow) {
|
|
28
|
+
font-size: 1.9rem;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
a:not(.header-anchor) {
|
|
33
|
+
text-decoration: underline;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
img {
|
|
37
|
+
max-width: 100%;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@mixin external-link-icon {
|
|
2
|
+
&::after {
|
|
3
|
+
content: '';
|
|
4
|
+
|
|
5
|
+
display: inline-block;
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
|
|
8
|
+
width: 11px;
|
|
9
|
+
height: 11px;
|
|
10
|
+
margin-top: -1px;
|
|
11
|
+
margin-left: 4px;
|
|
12
|
+
|
|
13
|
+
background: var(--external-link-icon-color);
|
|
14
|
+
|
|
15
|
+
-webkit-mask-image: var(--external-link-icon);
|
|
16
|
+
mask-image: var(--external-link-icon);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.vp-external-link-icon {
|
|
21
|
+
@include external-link-icon;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.external-link-icon {
|
|
25
|
+
.external-link {
|
|
26
|
+
@include external-link-icon;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.theme-default-content {
|
|
30
|
+
a[href*="://"],
|
|
31
|
+
a[target=_blank] {
|
|
32
|
+
&:not(.no-external-link-icon) {
|
|
33
|
+
@include external-link-icon;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
@use 'vars';
|
|
2
2
|
@use 'vars-dark';
|
|
3
3
|
@use 'normalize';
|
|
4
|
-
|
|
4
|
+
@use 'content';
|
|
5
5
|
@use 'arrow';
|
|
6
|
-
@use '
|
|
7
|
-
@use 'code';
|
|
8
|
-
@use 'code-group';
|
|
9
|
-
@use 'custom-container';
|
|
10
|
-
@use 'home';
|
|
6
|
+
@use 'external-link-icon';
|
|
11
7
|
@use 'layout';
|
|
12
|
-
@use '
|
|
13
|
-
@use 'navbar-dropdown';
|
|
14
|
-
@use 'page';
|
|
15
|
-
@use 'sidebar';
|
|
16
|
-
@use 'toc';
|
|
17
|
-
@use 'transitions';
|
|
18
|
-
|
|
8
|
+
@use 'plugins';
|
|
19
9
|
@use '@vuepress/plugin-palette/style';
|
|
@@ -1,203 +1,7 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '_variables';
|
|
1
|
+
@import 'variables';
|
|
3
2
|
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
padding-left: var(--sidebar-width);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.navbar {
|
|
10
|
-
position: fixed;
|
|
11
|
-
z-index: 20;
|
|
12
|
-
top: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
right: 0;
|
|
15
|
-
height: var(--navbar-height);
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
border-bottom: 1px solid var(--c-border);
|
|
18
|
-
background-color: var(--c-bg-navbar);
|
|
19
|
-
transition:
|
|
20
|
-
background-color var(--t-color),
|
|
21
|
-
border-color var(--t-color);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.sidebar {
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
width: var(--sidebar-width);
|
|
27
|
-
position: fixed;
|
|
28
|
-
z-index: 10;
|
|
29
|
-
margin: 0;
|
|
30
|
-
top: var(--navbar-height);
|
|
31
|
-
left: 0;
|
|
32
|
-
bottom: 0;
|
|
33
|
-
box-sizing: border-box;
|
|
34
|
-
border-right: 1px solid var(--c-border);
|
|
35
|
-
overflow-y: auto;
|
|
36
|
-
scrollbar-width: thin;
|
|
37
|
-
scrollbar-color: var(--c-brand) var(--c-border);
|
|
38
|
-
background-color: var(--c-bg-sidebar);
|
|
39
|
-
transition:
|
|
40
|
-
transform var(--t-transform),
|
|
41
|
-
background-color var(--t-color),
|
|
42
|
-
border-color var(--t-color);
|
|
43
|
-
&::-webkit-scrollbar {
|
|
44
|
-
width: 7px;
|
|
45
|
-
}
|
|
46
|
-
&::-webkit-scrollbar-track {
|
|
47
|
-
background-color: var(--c-border);
|
|
48
|
-
}
|
|
49
|
-
&::-webkit-scrollbar-thumb {
|
|
50
|
-
background-color: var(--c-brand);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.sidebar-mask {
|
|
55
|
-
position: fixed;
|
|
56
|
-
z-index: 9;
|
|
57
|
-
top: 0;
|
|
58
|
-
left: 0;
|
|
59
|
-
width: 100vw;
|
|
60
|
-
height: 100vh;
|
|
61
|
-
display: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.theme-container {
|
|
65
|
-
&.sidebar-open {
|
|
66
|
-
.sidebar-mask {
|
|
67
|
-
display: block;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.navbar > .toggle-sidebar-button .icon {
|
|
71
|
-
span {
|
|
72
|
-
&:nth-child(1) {
|
|
73
|
-
transform: rotate(45deg) translate3d(5.5px, 5.5px, 0);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&:nth-child(2) {
|
|
77
|
-
transform: scale3d(0, 1, 1);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&:nth-child(3) {
|
|
81
|
-
transform: rotate(-45deg) translate3d(6px, -6px, 0);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:nth-child(1),
|
|
85
|
-
&:nth-child(3) {
|
|
86
|
-
transform-origin: center;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&.no-navbar {
|
|
93
|
-
.theme-default-content {
|
|
94
|
-
h1,
|
|
95
|
-
h2,
|
|
96
|
-
h3,
|
|
97
|
-
h4,
|
|
98
|
-
h5,
|
|
99
|
-
h6 {
|
|
100
|
-
margin-top: 1.5rem;
|
|
101
|
-
padding-top: 0;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.page {
|
|
106
|
-
padding-top: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.sidebar {
|
|
110
|
-
top: 0;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
.theme-container.no-sidebar {
|
|
115
|
-
.sidebar {
|
|
3
|
+
.vp-hide-mobile {
|
|
4
|
+
@media screen and (max-width: $MQMobile) {
|
|
116
5
|
display: none;
|
|
117
|
-
|
|
118
|
-
@media (max-width: $MQMobile) {
|
|
119
|
-
display: block;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.page {
|
|
124
|
-
padding-left: 0;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.theme-default-content {
|
|
129
|
-
a:not(.header-anchor):hover {
|
|
130
|
-
text-decoration: underline;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
img {
|
|
134
|
-
max-width: 100%;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
h1,
|
|
138
|
-
h2,
|
|
139
|
-
h3,
|
|
140
|
-
h4,
|
|
141
|
-
h5,
|
|
142
|
-
h6 {
|
|
143
|
-
margin-top: calc(0.5rem - var(--navbar-height));
|
|
144
|
-
padding-top: calc(1rem + var(--navbar-height));
|
|
145
|
-
margin-bottom: 0;
|
|
146
|
-
|
|
147
|
-
&:first-child {
|
|
148
|
-
margin-bottom: 1rem;
|
|
149
|
-
|
|
150
|
-
+ p,
|
|
151
|
-
+ pre,
|
|
152
|
-
+ .custom-container {
|
|
153
|
-
margin-top: 2rem;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// narrow desktop / iPad
|
|
160
|
-
@media (max-width: $MQNarrow) {
|
|
161
|
-
.sidebar {
|
|
162
|
-
font-size: 15px;
|
|
163
|
-
width: var(--sidebar-width-mobile);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.page {
|
|
167
|
-
padding-left: var(--sidebar-width-mobile);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// wide mobile
|
|
172
|
-
@media (max-width: $MQMobile) {
|
|
173
|
-
.sidebar {
|
|
174
|
-
top: 0;
|
|
175
|
-
padding-top: var(--navbar-height);
|
|
176
|
-
transform: translateX(-100%);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.page {
|
|
180
|
-
padding-left: 0;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.theme-container {
|
|
184
|
-
&.sidebar-open {
|
|
185
|
-
.sidebar {
|
|
186
|
-
transform: translateX(0);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&.no-navbar {
|
|
191
|
-
.sidebar {
|
|
192
|
-
padding-top: 0;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// narrow mobile
|
|
199
|
-
@media (max-width: $MQMobileNarrow) {
|
|
200
|
-
h1 {
|
|
201
|
-
font-size: 1.9rem;
|
|
202
6
|
}
|
|
203
7
|
}
|