@vuepress/theme-default 2.0.0-beta.6 → 2.0.0-beta.61
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/AutoLink.vue +114 -0
- package/lib/client/components/DropdownTransition.vue +21 -0
- package/lib/client/components/Home.vue +15 -0
- 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 +98 -0
- package/lib/client/components/Navbar.vue +75 -0
- package/lib/client/components/NavbarBrand.vue +55 -0
- package/lib/client/components/NavbarDropdown.vue +126 -0
- package/lib/{components/NavbarLinks.vue → client/components/NavbarItems.vue} +61 -50
- package/lib/{components → client/components}/Page.vue +9 -15
- package/lib/{components → client/components}/PageMeta.vue +51 -66
- package/lib/{components → client/components}/PageNav.vue +44 -57
- package/lib/client/components/Sidebar.vue +13 -0
- package/lib/client/components/SidebarItem.vue +87 -0
- package/lib/client/components/SidebarItems.vue +57 -0
- package/lib/client/components/ToggleColorModeButton.vue +57 -0
- package/lib/client/components/ToggleSidebarButton.vue +24 -0
- package/lib/client/components/global/Badge.vue +31 -0
- package/lib/client/components/global/CodeGroup.d.ts +4 -0
- package/lib/client/components/global/CodeGroup.js +106 -0
- package/lib/client/components/global/CodeGroupItem.vue +31 -0
- package/lib/client/components/global/index.d.ts +4 -0
- package/lib/client/components/global/index.js +4 -0
- package/lib/client/composables/index.d.ts +6 -0
- package/lib/client/composables/index.js +6 -0
- package/lib/client/composables/useDarkMode.d.ts +12 -0
- package/lib/client/composables/useDarkMode.js +57 -0
- package/lib/{composables → client/composables}/useNavLink.d.ts +6 -1
- package/lib/{composables → client/composables}/useNavLink.js +5 -2
- package/lib/{composables → client/composables}/useResolveRouteWithRedirect.d.ts +1 -1
- package/lib/{composables → client/composables}/useResolveRouteWithRedirect.js +2 -2
- package/lib/{composables → client/composables}/useScrollPromise.js +1 -1
- package/lib/client/composables/useSidebarItems.d.ts +36 -0
- package/lib/client/composables/useSidebarItems.js +118 -0
- package/lib/{composables → client/composables}/useThemeData.d.ts +2 -2
- package/lib/{composables → client/composables}/useThemeData.js +1 -1
- package/lib/client/config.d.ts +3 -0
- package/lib/client/config.js +44 -0
- package/lib/client/index.d.ts +3 -0
- package/lib/client/index.js +3 -0
- package/lib/client/layouts/Layout.vue +134 -0
- package/lib/client/layouts/NotFound.vue +27 -0
- package/lib/{styles/_wrapper.scss → client/styles/_mixins.scss} +7 -2
- package/lib/client/styles/_variables.scss +6 -0
- package/lib/{styles → client/styles}/arrow.scss +4 -6
- package/lib/client/styles/badge.scss +34 -0
- package/lib/{styles → client/styles}/code-group.scss +9 -2
- package/lib/{styles → client/styles}/code.scss +35 -49
- package/lib/client/styles/custom-container.scss +140 -0
- package/lib/{styles → client/styles}/home.scss +32 -24
- package/lib/{styles → client/styles}/index.scss +4 -4
- package/lib/client/styles/layout.scss +199 -0
- package/lib/{styles/dropdown.scss → client/styles/navbar-dropdown.scss} +36 -50
- package/lib/client/styles/navbar.scss +197 -0
- package/lib/client/styles/normalize.scss +200 -0
- package/lib/{styles → client/styles}/page.scss +24 -8
- package/lib/client/styles/sidebar.scss +134 -0
- package/lib/client/styles/transitions.scss +22 -0
- package/lib/client/styles/vars-dark.scss +68 -0
- package/lib/client/styles/vars.scss +149 -0
- package/lib/client/utils/index.d.ts +3 -0
- package/lib/client/utils/index.js +3 -0
- package/lib/client/utils/isActiveSidebarItem.d.ts +3 -0
- package/lib/client/utils/isActiveSidebarItem.js +20 -0
- package/lib/{utils → client/utils}/resolveEditLink.d.ts +2 -2
- package/lib/{utils → client/utils}/resolveEditLink.js +15 -9
- package/lib/client/utils/resolveRepoType.d.ts +2 -0
- package/lib/{utils → client/utils}/resolveRepoType.js +3 -1
- package/lib/node/defaultTheme.d.ts +10 -0
- package/lib/node/defaultTheme.js +117 -0
- package/lib/node/index.d.ts +5 -5
- package/lib/node/index.js +5 -17
- package/lib/node/utils/assignDefaultLocaleOptions.d.ts +7 -0
- package/lib/node/{assignDefaultLocaleOptions.js → utils/assignDefaultLocaleOptions.js} +13 -13
- package/lib/node/utils/index.d.ts +2 -0
- package/lib/node/utils/index.js +2 -0
- package/lib/node/utils/resolveContainerPluginOptions.d.ts +8 -0
- package/lib/node/utils/resolveContainerPluginOptions.js +17 -0
- package/lib/shared/index.d.ts +3 -0
- package/lib/shared/index.js +3 -0
- package/lib/shared/nav.d.ts +42 -0
- package/lib/shared/nav.js +1 -0
- package/lib/{types → shared}/options.d.ts +51 -13
- package/lib/shared/options.js +1 -0
- package/lib/{types → shared}/page.d.ts +15 -6
- package/lib/shared/page.js +1 -0
- package/package.json +49 -29
- package/templates/build.html +33 -0
- package/CHANGELOG.md +0 -376
- package/lib/clientAppEnhance.d.ts +0 -3
- package/lib/clientAppEnhance.js +0 -30
- package/lib/clientAppSetup.d.ts +0 -2
- package/lib/clientAppSetup.js +0 -11
- package/lib/components/DropdownLink.vue +0 -141
- package/lib/components/DropdownTransition.vue +0 -34
- package/lib/components/Home.vue +0 -133
- package/lib/components/NavLink.vue +0 -115
- package/lib/components/Navbar.vue +0 -114
- package/lib/components/Sidebar.vue +0 -38
- package/lib/components/SidebarChild.d.ts +0 -6
- package/lib/components/SidebarChild.js +0 -91
- package/lib/components/ToggleSidebarButton.vue +0 -27
- package/lib/components/global/Badge.vue +0 -37
- package/lib/components/global/CodeGroup.d.ts +0 -5
- package/lib/components/global/CodeGroup.js +0 -52
- package/lib/components/global/CodeGroupItem.vue +0 -25
- package/lib/components/global/OutboundLink.vue +0 -30
- package/lib/composables/index.d.ts +0 -5
- package/lib/composables/index.js +0 -5
- package/lib/composables/useSidebarItems.d.ts +0 -31
- package/lib/composables/useSidebarItems.js +0 -114
- package/lib/index.d.ts +0 -6
- package/lib/index.js +0 -67
- package/lib/layouts/404.vue +0 -38
- package/lib/layouts/Layout.vue +0 -152
- package/lib/node/assignDefaultLocaleOptions.d.ts +0 -5
- package/lib/node/resolveActiveHeaderLinksPluginOptions.d.ts +0 -6
- package/lib/node/resolveActiveHeaderLinksPluginOptions.js +0 -16
- package/lib/node/resolveContainerPluginOptions.d.ts +0 -26
- package/lib/node/resolveContainerPluginOptions.js +0 -79
- package/lib/node/resolveGitPluginOptions.d.ts +0 -6
- package/lib/node/resolveGitPluginOptions.js +0 -22
- package/lib/node/resolveMediumZoomPluginOptions.d.ts +0 -6
- package/lib/node/resolveMediumZoomPluginOptions.js +0 -17
- package/lib/styles/_normalize.scss +0 -148
- package/lib/styles/_variables.scss +0 -34
- package/lib/styles/badge.scss +0 -33
- package/lib/styles/custom-container.scss +0 -78
- package/lib/styles/layout.scss +0 -194
- package/lib/styles/navbar.scss +0 -141
- package/lib/styles/plugins.scss +0 -18
- package/lib/styles/sidebar.scss +0 -152
- package/lib/styles/sr-only.scss +0 -12
- package/lib/styles/transitions.scss +0 -13
- package/lib/types/index.d.ts +0 -3
- package/lib/types/index.js +0 -15
- package/lib/types/nav.d.ts +0 -44
- package/lib/types/nav.js +0 -2
- package/lib/types/options.js +0 -2
- package/lib/types/page.js +0 -2
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.js +0 -2
- package/lib/utils/resolveRepoType.d.ts +0 -2
- /package/lib/{composables → client/composables}/useScrollPromise.d.ts +0 -0
- /package/lib/{shim.d.ts → client/shim.d.ts} +0 -0
- /package/lib/{styles → client/styles}/toc.scss +0 -0
|
@@ -0,0 +1,197 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
html,
|
|
2
|
+
body {
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
5
|
+
background-color: var(--c-bg);
|
|
6
|
+
transition: background-color var(--t-color);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html.dark {
|
|
10
|
+
color-scheme: dark;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html {
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
body {
|
|
18
|
+
font-family: var(--font-family);
|
|
19
|
+
-webkit-font-smoothing: antialiased;
|
|
20
|
+
-moz-osx-font-smoothing: grayscale;
|
|
21
|
+
font-size: 1rem;
|
|
22
|
+
color: var(--c-text);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
a {
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
color: var(--c-text-accent);
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
overflow-wrap: break-word;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
p a code {
|
|
33
|
+
font-weight: 400;
|
|
34
|
+
color: var(--c-text-accent);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
kbd {
|
|
38
|
+
font-family: var(--font-family-code);
|
|
39
|
+
color: var(--c-text);
|
|
40
|
+
background: var(--c-bg-lighter);
|
|
41
|
+
border: solid 0.15rem var(--c-border-dark);
|
|
42
|
+
border-bottom: solid 0.25rem var(--c-border-dark);
|
|
43
|
+
border-radius: 0.15rem;
|
|
44
|
+
padding: 0 0.15em;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
code {
|
|
48
|
+
font-family: var(--font-family-code);
|
|
49
|
+
color: var(--c-text-lighter);
|
|
50
|
+
padding: 0.25rem 0.5rem;
|
|
51
|
+
margin: 0;
|
|
52
|
+
font-size: 0.85em;
|
|
53
|
+
background-color: var(--c-bg-light);
|
|
54
|
+
border-radius: 3px;
|
|
55
|
+
overflow-wrap: break-word;
|
|
56
|
+
transition: background-color var(--t-color);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
blockquote {
|
|
60
|
+
font-size: 1rem;
|
|
61
|
+
color: var(--c-text-quote);
|
|
62
|
+
border-left: 0.2rem solid var(--c-border-dark);
|
|
63
|
+
margin: 1rem 0;
|
|
64
|
+
padding: 0.25rem 0 0.25rem 1rem;
|
|
65
|
+
overflow-wrap: break-word;
|
|
66
|
+
|
|
67
|
+
& > p {
|
|
68
|
+
margin: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
ul,
|
|
73
|
+
ol {
|
|
74
|
+
padding-left: 1.2em;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
strong {
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
h1,
|
|
82
|
+
h2,
|
|
83
|
+
h3,
|
|
84
|
+
h4,
|
|
85
|
+
h5,
|
|
86
|
+
h6 {
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
line-height: 1.25;
|
|
89
|
+
overflow-wrap: break-word;
|
|
90
|
+
|
|
91
|
+
&:focus-visible {
|
|
92
|
+
outline: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:hover .header-anchor {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
h1 {
|
|
101
|
+
font-size: 2.2rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
h2 {
|
|
105
|
+
font-size: 1.65rem;
|
|
106
|
+
padding-bottom: 0.3rem;
|
|
107
|
+
border-bottom: 1px solid var(--c-border);
|
|
108
|
+
transition: border-color var(--t-color);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
h3 {
|
|
112
|
+
font-size: 1.35rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
h4 {
|
|
116
|
+
font-size: 1.15rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
h5 {
|
|
120
|
+
font-size: 1.05rem;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
h6 {
|
|
124
|
+
font-size: 1rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
a {
|
|
128
|
+
&.header-anchor {
|
|
129
|
+
font-size: 0.85em;
|
|
130
|
+
float: left;
|
|
131
|
+
margin-left: -0.87em;
|
|
132
|
+
padding-right: 0.23em;
|
|
133
|
+
margin-top: 0.125em;
|
|
134
|
+
opacity: 0;
|
|
135
|
+
user-select: none;
|
|
136
|
+
|
|
137
|
+
@media print {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&:hover {
|
|
142
|
+
text-decoration: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&:focus-visible {
|
|
146
|
+
opacity: 1;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@media print {
|
|
151
|
+
&[href^="http://"],
|
|
152
|
+
&[href^="https://"]
|
|
153
|
+
{
|
|
154
|
+
&::after {
|
|
155
|
+
content: ' (' attr(href) ') ';
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
p,
|
|
162
|
+
ul,
|
|
163
|
+
ol {
|
|
164
|
+
line-height: 1.7;
|
|
165
|
+
overflow-wrap: break-word;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
hr {
|
|
169
|
+
border: 0;
|
|
170
|
+
border-top: 1px solid var(--c-border);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
table {
|
|
174
|
+
border-collapse: collapse;
|
|
175
|
+
margin: 1rem 0;
|
|
176
|
+
display: block;
|
|
177
|
+
overflow-x: auto;
|
|
178
|
+
transition: border-color var(--t-color);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
tr {
|
|
182
|
+
border-top: 1px solid var(--c-border-dark);
|
|
183
|
+
transition: border-color var(--t-color);
|
|
184
|
+
|
|
185
|
+
&:nth-child(2n) {
|
|
186
|
+
background-color: var(--c-bg-light);
|
|
187
|
+
transition: background-color var(--t-color);
|
|
188
|
+
|
|
189
|
+
code {
|
|
190
|
+
background-color: var(--c-bg-dark);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
th,
|
|
196
|
+
td {
|
|
197
|
+
padding: 0.6em 1em;
|
|
198
|
+
border: 1px solid var(--c-border-dark);
|
|
199
|
+
transition: border-color var(--t-color);
|
|
200
|
+
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
1
|
+
@import '_mixins';
|
|
3
2
|
@import '_variables';
|
|
4
|
-
@import '_wrapper';
|
|
5
3
|
|
|
6
4
|
.page {
|
|
7
5
|
padding-bottom: 2rem;
|
|
8
6
|
display: block;
|
|
7
|
+
|
|
8
|
+
.theme-default-content {
|
|
9
|
+
@include content_wrapper;
|
|
10
|
+
padding-top: 0;
|
|
11
|
+
}
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
.page-meta {
|
|
12
|
-
@
|
|
15
|
+
@include content_wrapper;
|
|
13
16
|
padding-top: 1rem;
|
|
14
17
|
padding-bottom: 1rem;
|
|
15
18
|
overflow: auto;
|
|
@@ -20,18 +23,22 @@
|
|
|
20
23
|
|
|
21
24
|
.meta-item-label {
|
|
22
25
|
font-weight: 500;
|
|
23
|
-
color:
|
|
26
|
+
color: var(--c-text-lighter);
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
.meta-item-info {
|
|
27
30
|
font-weight: 400;
|
|
28
|
-
color:
|
|
31
|
+
color: var(--c-text-quote);
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
.edit-link {
|
|
33
36
|
display: inline-block;
|
|
34
37
|
margin-right: 0.25rem;
|
|
38
|
+
|
|
39
|
+
@media print {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
.last-updated {
|
|
@@ -53,19 +60,28 @@
|
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
.page-nav {
|
|
56
|
-
@
|
|
63
|
+
@include content_wrapper;
|
|
57
64
|
padding-top: 1rem;
|
|
58
65
|
padding-bottom: 0;
|
|
59
66
|
|
|
60
67
|
.inner {
|
|
61
68
|
min-height: 2rem;
|
|
62
69
|
margin-top: 0;
|
|
63
|
-
border-top: 1px solid
|
|
70
|
+
border-top: 1px solid var(--c-border);
|
|
71
|
+
transition: border-color var(--t-color);
|
|
64
72
|
padding-top: 1rem;
|
|
65
73
|
overflow: auto;
|
|
66
74
|
}
|
|
67
75
|
|
|
76
|
+
.prev {
|
|
77
|
+
a:before {
|
|
78
|
+
content: '←';
|
|
79
|
+
}
|
|
80
|
+
}
|
|
68
81
|
.next {
|
|
69
82
|
float: right;
|
|
83
|
+
a:after {
|
|
84
|
+
content: '→';
|
|
85
|
+
}
|
|
70
86
|
}
|
|
71
87
|
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
@import '_mixins';
|
|
2
|
+
@import '_variables';
|
|
3
|
+
|
|
4
|
+
.sidebar {
|
|
5
|
+
ul {
|
|
6
|
+
padding: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
list-style-type: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
a {
|
|
12
|
+
display: inline-block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.navbar-items {
|
|
16
|
+
display: none;
|
|
17
|
+
border-bottom: 1px solid var(--c-border);
|
|
18
|
+
transition: border-color var(--t-color);
|
|
19
|
+
padding: 0.5rem 0 0.75rem 0;
|
|
20
|
+
|
|
21
|
+
a {
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.navbar-item {
|
|
26
|
+
display: block;
|
|
27
|
+
line-height: 1.25rem;
|
|
28
|
+
font-size: 1.1em;
|
|
29
|
+
padding: 0.5rem 0 0.5rem 1.5rem;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sidebar-items {
|
|
34
|
+
padding: 1.5rem 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (max-width: $MQMobile) {
|
|
39
|
+
.sidebar {
|
|
40
|
+
.navbar-items {
|
|
41
|
+
display: block;
|
|
42
|
+
|
|
43
|
+
.navbar-dropdown-wrapper
|
|
44
|
+
.navbar-dropdown
|
|
45
|
+
.navbar-dropdown-item
|
|
46
|
+
a.router-link-active::after {
|
|
47
|
+
top: calc(1rem - 2px);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.sidebar-items {
|
|
52
|
+
padding: 1rem 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.sidebar-item {
|
|
58
|
+
cursor: default;
|
|
59
|
+
border-left: 0.25rem solid transparent;
|
|
60
|
+
color: var(--c-text);
|
|
61
|
+
|
|
62
|
+
&:focus-visible {
|
|
63
|
+
outline-width: 1px;
|
|
64
|
+
outline-offset: -1px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.active:not(p.sidebar-heading) {
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
color: var(--c-text-accent);
|
|
70
|
+
border-left-color: var(--c-text-accent);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.sidebar-heading {
|
|
74
|
+
transition: color 0.15s ease;
|
|
75
|
+
font-size: 1.1em;
|
|
76
|
+
font-weight: bold;
|
|
77
|
+
padding: 0.35rem 1.5rem 0.35rem 1.25rem;
|
|
78
|
+
width: 100%;
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
margin: 0;
|
|
81
|
+
|
|
82
|
+
+ .sidebar-item-children {
|
|
83
|
+
@include dropdown_wrapper;
|
|
84
|
+
margin-bottom: 0.75rem;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.collapsible {
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
|
|
91
|
+
.arrow {
|
|
92
|
+
position: relative;
|
|
93
|
+
top: -0.12em;
|
|
94
|
+
left: 0.5em;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:not(.sidebar-heading) {
|
|
99
|
+
font-size: 1em;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
display: inline-block;
|
|
102
|
+
margin: 0;
|
|
103
|
+
padding: 0.35rem 1rem 0.35rem 2rem;
|
|
104
|
+
line-height: 1.4;
|
|
105
|
+
width: 100%;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
|
|
108
|
+
& + .sidebar-item-children {
|
|
109
|
+
padding-left: 1rem;
|
|
110
|
+
font-size: 0.95em;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.sidebar-item-children .sidebar-item-children & {
|
|
114
|
+
padding: 0.25rem 1rem 0.25rem 1.75rem;
|
|
115
|
+
|
|
116
|
+
&.active {
|
|
117
|
+
font-weight: 500;
|
|
118
|
+
border-left-color: transparent;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
a.sidebar-heading + .sidebar-item-children &.active {
|
|
123
|
+
border-left-color: transparent;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
a.sidebar-item {
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
|
|
131
|
+
&:hover {
|
|
132
|
+
color: var(--c-text-accent);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dropdown
|
|
3
|
+
*/
|
|
4
|
+
.dropdown-enter-from,
|
|
5
|
+
.dropdown-leave-to {
|
|
6
|
+
height: 0 !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* fade-slide-y
|
|
11
|
+
*/
|
|
12
|
+
.fade-slide-y-enter-active {
|
|
13
|
+
transition: all 0.2s ease;
|
|
14
|
+
}
|
|
15
|
+
.fade-slide-y-leave-active {
|
|
16
|
+
transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1);
|
|
17
|
+
}
|
|
18
|
+
.fade-slide-y-enter-from,
|
|
19
|
+
.fade-slide-y-leave-to {
|
|
20
|
+
transform: translateY(10px);
|
|
21
|
+
opacity: 0;
|
|
22
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
html.dark {
|
|
2
|
+
// brand colors
|
|
3
|
+
--c-brand: #3aa675;
|
|
4
|
+
--c-brand-light: #349469;
|
|
5
|
+
|
|
6
|
+
// background colors
|
|
7
|
+
--c-bg: #22272e;
|
|
8
|
+
--c-bg-light: #2b313a;
|
|
9
|
+
--c-bg-lighter: #262c34;
|
|
10
|
+
--c-bg-dark: #343b44;
|
|
11
|
+
--c-bg-darker: #37404c;
|
|
12
|
+
|
|
13
|
+
// text colors
|
|
14
|
+
--c-text: #adbac7;
|
|
15
|
+
--c-text-light: #96a7b7;
|
|
16
|
+
--c-text-lighter: #8b9eb0;
|
|
17
|
+
--c-text-lightest: #8094a8;
|
|
18
|
+
|
|
19
|
+
// border colors
|
|
20
|
+
--c-border: #3e4c5a;
|
|
21
|
+
--c-border-dark: #34404c;
|
|
22
|
+
|
|
23
|
+
// custom container colors
|
|
24
|
+
--c-tip: #318a62;
|
|
25
|
+
--c-warning: #e0ad15;
|
|
26
|
+
--c-warning-bg: #2d2f2d;
|
|
27
|
+
--c-warning-bg-light: #423e2a;
|
|
28
|
+
--c-warning-bg-lighter: #44442f;
|
|
29
|
+
--c-warning-border-dark: #957c35;
|
|
30
|
+
--c-warning-details-bg: #39392d;
|
|
31
|
+
--c-warning-title: #fdca31;
|
|
32
|
+
--c-warning-text: #d8d96d;
|
|
33
|
+
--c-warning-text-accent: #ffbf00;
|
|
34
|
+
--c-warning-text-light: #ddb84b;
|
|
35
|
+
--c-warning-text-quote: #ccab49;
|
|
36
|
+
--c-danger: #fc1e38;
|
|
37
|
+
--c-danger-bg: #39232c;
|
|
38
|
+
--c-danger-bg-light: #4b2b35;
|
|
39
|
+
--c-danger-bg-lighter: #553040;
|
|
40
|
+
--c-danger-border-dark: #a25151;
|
|
41
|
+
--c-danger-details-bg: #482936;
|
|
42
|
+
--c-danger-title: #fc2d3b;
|
|
43
|
+
--c-danger-text: #ea9ca0;
|
|
44
|
+
--c-danger-text-accent: #fd3636;
|
|
45
|
+
--c-danger-text-light: #d9777c;
|
|
46
|
+
--c-danger-text-quote: #d56b6b;
|
|
47
|
+
--c-details-bg: #323843;
|
|
48
|
+
|
|
49
|
+
// badge component colors
|
|
50
|
+
--c-badge-warning: var(--c-warning);
|
|
51
|
+
--c-badge-warning-text: #3c2e05;
|
|
52
|
+
--c-badge-danger: var(--c-danger);
|
|
53
|
+
--c-badge-danger-text: #401416;
|
|
54
|
+
|
|
55
|
+
// code blocks vars
|
|
56
|
+
--code-hl-bg-color: #363b46;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// plugin-docsearch
|
|
60
|
+
html.dark .DocSearch {
|
|
61
|
+
--docsearch-logo-color: var(--c-text);
|
|
62
|
+
--docsearch-modal-shadow: inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309;
|
|
63
|
+
--docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d,
|
|
64
|
+
0 2px 2px 0 rgba(3, 4, 9, 0.3);
|
|
65
|
+
--docsearch-key-gradient: linear-gradient(-225deg, #444950, #1c1e21);
|
|
66
|
+
--docsearch-footer-shadow: inset 0 1px 0 0 rgba(73, 76, 106, 0.5),
|
|
67
|
+
0 -4px 8px 0 rgba(0, 0, 0, 0.2);
|
|
68
|
+
}
|