@vuepress/theme-default 2.0.0-beta.9 → 2.0.0-rc.0
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 +119 -0
- package/lib/client/components/DropdownTransition.vue +15 -24
- package/lib/client/components/Home.vue +12 -130
- 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 +60 -95
- package/lib/client/components/NavbarBrand.vue +55 -0
- package/lib/client/components/NavbarDropdown.vue +126 -0
- package/lib/client/components/{NavbarLinks.vue → NavbarItems.vue} +73 -58
- package/lib/client/components/Page.vue +16 -15
- package/lib/client/components/PageMeta.vue +51 -66
- package/lib/client/components/PageNav.vue +47 -60
- package/lib/client/components/Sidebar.vue +12 -32
- 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 +21 -24
- package/lib/client/components/global/Badge.vue +24 -26
- package/lib/client/components/global/CodeGroup.d.ts +5 -4
- package/lib/client/components/global/CodeGroup.js +85 -17
- package/lib/client/components/global/CodeGroupItem.vue +23 -17
- 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 +7 -5
- package/lib/client/composables/index.js +7 -5
- package/lib/client/composables/useDarkMode.d.ts +12 -0
- package/lib/client/composables/useDarkMode.js +57 -0
- package/lib/client/composables/useNavLink.d.ts +6 -1
- package/lib/client/composables/useNavLink.js +5 -2
- package/lib/client/composables/useResolveRouteWithRedirect.js +2 -2
- package/lib/client/composables/useScrollPromise.js +1 -1
- package/lib/client/composables/useSidebarItems.d.ts +13 -8
- package/lib/client/composables/useSidebarItems.js +42 -38
- package/lib/client/composables/useThemeData.d.ts +2 -2
- package/lib/client/composables/useThemeData.js +1 -1
- package/lib/client/composables/useUpdateDeviceStatus.d.ts +7 -0
- package/lib/client/composables/useUpdateDeviceStatus.js +25 -0
- package/lib/client/config.d.ts +3 -0
- package/lib/client/config.js +44 -0
- package/lib/client/index.d.ts +3 -4
- package/lib/client/index.js +3 -2
- package/lib/client/layouts/Layout.vue +133 -136
- package/lib/client/layouts/NotFound.vue +27 -0
- package/lib/client/shim.d.ts +5 -0
- package/lib/client/styles/{_wrapper.scss → _mixins.scss} +7 -2
- package/lib/client/styles/_variables.module.scss +5 -0
- package/lib/client/styles/_variables.scss +0 -34
- package/lib/client/styles/arrow.scss +4 -6
- package/lib/client/styles/badge.scss +14 -11
- package/lib/client/styles/code-group.scss +9 -2
- package/lib/client/styles/code.scss +33 -46
- package/lib/client/styles/custom-container.scss +82 -18
- package/lib/client/styles/home.scss +32 -24
- package/lib/client/styles/index.scss +4 -4
- package/lib/client/styles/layout.scss +82 -73
- package/lib/client/styles/{dropdown.scss → navbar-dropdown.scss} +36 -50
- package/lib/client/styles/navbar.scss +106 -50
- package/lib/client/styles/normalize.scss +200 -0
- package/lib/client/styles/page.scss +24 -8
- package/lib/client/styles/sidebar.scss +69 -87
- package/lib/client/styles/transitions.scss +13 -4
- 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 -2
- package/lib/client/utils/index.js +3 -2
- package/lib/client/utils/isActiveSidebarItem.d.ts +3 -0
- package/lib/client/utils/isActiveSidebarItem.js +20 -0
- package/lib/client/utils/resolveEditLink.d.ts +2 -2
- package/lib/client/utils/resolveEditLink.js +15 -9
- package/lib/client/utils/resolveRepoType.d.ts +1 -1
- package/lib/client/utils/resolveRepoType.js +3 -1
- package/lib/node/defaultTheme.d.ts +4 -4
- package/lib/node/defaultTheme.js +111 -48
- package/lib/node/index.d.ts +4 -4
- package/lib/node/index.js +5 -17
- package/lib/node/utils/assignDefaultLocaleOptions.d.ts +4 -2
- package/lib/node/utils/assignDefaultLocaleOptions.js +13 -13
- package/lib/node/utils/index.d.ts +2 -5
- package/lib/node/utils/index.js +2 -17
- package/lib/node/utils/resolveContainerPluginOptions.d.ts +2 -20
- package/lib/node/utils/resolveContainerPluginOptions.js +4 -66
- package/lib/shared/index.d.ts +3 -3
- package/lib/shared/index.js +3 -15
- package/lib/shared/nav.d.ts +16 -18
- package/lib/shared/nav.js +1 -2
- package/lib/shared/options.d.ts +51 -6
- package/lib/shared/options.js +1 -2
- package/lib/shared/page.d.ts +15 -6
- package/lib/shared/page.js +1 -2
- package/package.json +49 -29
- package/templates/build.html +34 -0
- package/CHANGELOG.md +0 -419
- package/lib/client/clientAppEnhance.d.ts +0 -3
- package/lib/client/clientAppEnhance.js +0 -28
- package/lib/client/clientAppSetup.d.ts +0 -2
- package/lib/client/clientAppSetup.js +0 -11
- package/lib/client/components/DropdownLink.vue +0 -141
- package/lib/client/components/NavLink.vue +0 -115
- package/lib/client/components/SidebarChild.d.ts +0 -6
- package/lib/client/components/SidebarChild.js +0 -91
- package/lib/client/components/global/OutboundLink.vue +0 -30
- package/lib/client/layouts/404.vue +0 -38
- package/lib/client/styles/_normalize.scss +0 -148
- package/lib/client/styles/plugins.scss +0 -18
- package/lib/client/styles/sr-only.scss +0 -12
- package/lib/node/utils/resolveActiveHeaderLinksPluginOptions.d.ts +0 -6
- package/lib/node/utils/resolveActiveHeaderLinksPluginOptions.js +0 -16
- package/lib/node/utils/resolveGitPluginOptions.d.ts +0 -6
- package/lib/node/utils/resolveGitPluginOptions.js +0 -22
- package/lib/node/utils/resolveMediumZoomPluginOptions.d.ts +0 -6
- package/lib/node/utils/resolveMediumZoomPluginOptions.js +0 -17
|
@@ -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
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import '_mixins';
|
|
1
2
|
@import '_variables';
|
|
2
3
|
|
|
3
4
|
.sidebar {
|
|
@@ -11,16 +12,17 @@
|
|
|
11
12
|
display: inline-block;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
.navbar-
|
|
15
|
+
.navbar-items {
|
|
15
16
|
display: none;
|
|
16
|
-
border-bottom: 1px solid
|
|
17
|
+
border-bottom: 1px solid var(--c-border);
|
|
18
|
+
transition: border-color var(--t-color);
|
|
17
19
|
padding: 0.5rem 0 0.75rem 0;
|
|
18
20
|
|
|
19
21
|
a {
|
|
20
22
|
font-weight: 600;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
.navbar-
|
|
25
|
+
.navbar-item {
|
|
24
26
|
display: block;
|
|
25
27
|
line-height: 1.25rem;
|
|
26
28
|
font-size: 1.1em;
|
|
@@ -28,125 +30,105 @@
|
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
.sidebar-items {
|
|
32
34
|
padding: 1.5rem 0;
|
|
33
|
-
|
|
34
|
-
& > li > a.sidebar-link {
|
|
35
|
-
font-size: 1.1em;
|
|
36
|
-
line-height: 1.7;
|
|
37
|
-
font-weight: bold;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
& > li:not(:first-child) {
|
|
41
|
-
margin-top: 0.75rem;
|
|
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
|
-
|
|
51
|
+
.sidebar-items {
|
|
60
52
|
padding: 1rem 0;
|
|
61
53
|
}
|
|
62
54
|
}
|
|
63
55
|
}
|
|
64
56
|
|
|
65
|
-
|
|
66
|
-
* sidebar child
|
|
67
|
-
*/
|
|
68
|
-
.sidebar-group {
|
|
69
|
-
.sidebar-links > &:not(:first-child) {
|
|
70
|
-
margin-top: 0.75rem;
|
|
71
|
-
}
|
|
72
|
-
.sidebar-group {
|
|
73
|
-
& > .sidebar-heading {
|
|
74
|
-
opacity: 0.5;
|
|
75
|
-
font-size: 0.95em;
|
|
76
|
-
line-height: 1.4;
|
|
77
|
-
font-weight: normal;
|
|
78
|
-
padding-left: 2rem;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.sidebar-heading {
|
|
84
|
-
color: $textColor;
|
|
85
|
-
transition: color 0.15s ease;
|
|
57
|
+
.sidebar-item {
|
|
86
58
|
cursor: default;
|
|
87
|
-
font-size: 1.1em;
|
|
88
|
-
font-weight: bold;
|
|
89
|
-
padding: 0.35rem 1.5rem 0.35rem 1.25rem;
|
|
90
|
-
width: 100%;
|
|
91
|
-
box-sizing: border-box;
|
|
92
|
-
margin: 0;
|
|
93
59
|
border-left: 0.25rem solid transparent;
|
|
60
|
+
color: var(--c-text);
|
|
94
61
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
62
|
+
&:focus-visible {
|
|
63
|
+
outline-width: 1px;
|
|
64
|
+
outline-offset: -1px;
|
|
98
65
|
}
|
|
99
66
|
|
|
100
|
-
.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
left:
|
|
67
|
+
&.active:not(p.sidebar-heading) {
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
color: var(--c-text-accent);
|
|
70
|
+
border-left-color: var(--c-text-accent);
|
|
104
71
|
}
|
|
105
|
-
}
|
|
106
72
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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;
|
|
111
81
|
|
|
112
|
-
.sidebar-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
color: $textColor;
|
|
117
|
-
border-left: 0.25rem solid transparent;
|
|
118
|
-
margin: 0;
|
|
119
|
-
padding: 0.35rem 1rem 0.35rem 1.25rem;
|
|
120
|
-
line-height: 1.4;
|
|
121
|
-
width: 100%;
|
|
122
|
-
box-sizing: border-box;
|
|
123
|
-
|
|
124
|
-
.sidebar-group & {
|
|
125
|
-
padding-left: 2rem;
|
|
82
|
+
+ .sidebar-item-children {
|
|
83
|
+
@include dropdown_wrapper;
|
|
84
|
+
margin-bottom: 0.75rem;
|
|
85
|
+
}
|
|
126
86
|
}
|
|
127
87
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
padding-bottom: 0.25rem;
|
|
131
|
-
border-left: none;
|
|
88
|
+
&.collapsible {
|
|
89
|
+
cursor: pointer;
|
|
132
90
|
|
|
133
|
-
|
|
134
|
-
|
|
91
|
+
.arrow {
|
|
92
|
+
position: relative;
|
|
93
|
+
top: -0.12em;
|
|
94
|
+
left: 0.5em;
|
|
135
95
|
}
|
|
136
96
|
}
|
|
137
|
-
}
|
|
138
97
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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;
|
|
142
107
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
+
}
|
|
147
125
|
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
a.sidebar-item {
|
|
129
|
+
cursor: pointer;
|
|
148
130
|
|
|
149
131
|
&:hover {
|
|
150
|
-
color:
|
|
132
|
+
color: var(--c-text-accent);
|
|
151
133
|
}
|
|
152
134
|
}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* dropdown
|
|
3
|
+
*/
|
|
4
|
+
.dropdown-enter-from,
|
|
5
|
+
.dropdown-leave-to {
|
|
6
|
+
height: 0 !important;
|
|
3
7
|
}
|
|
4
8
|
|
|
9
|
+
/**
|
|
10
|
+
* fade-slide-y
|
|
11
|
+
*/
|
|
12
|
+
.fade-slide-y-enter-active {
|
|
13
|
+
transition: all 0.2s ease;
|
|
14
|
+
}
|
|
5
15
|
.fade-slide-y-leave-active {
|
|
6
|
-
transition: all 0.
|
|
16
|
+
transition: all 0.2s 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);
|
|
@@ -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
|
+
}
|