@vuepress/theme-default 2.0.0-rc.4 → 2.0.0-rc.41
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 +24 -4
- 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 +34 -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 +72 -34
- 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,263 +0,0 @@
|
|
|
1
|
-
@import '_variables';
|
|
2
|
-
|
|
3
|
-
// Safari only support integer pixel value for line-height
|
|
4
|
-
// the original font-size is 16px, 1.375 will make line-height be 22px
|
|
5
|
-
$line-height: 1.375;
|
|
6
|
-
|
|
7
|
-
// ===============================
|
|
8
|
-
// Forked and modified from prismjs/themes/prism-tomorrow.css
|
|
9
|
-
|
|
10
|
-
code[class*='language-'],
|
|
11
|
-
pre[class*='language-'] {
|
|
12
|
-
color: #ccc;
|
|
13
|
-
background: none;
|
|
14
|
-
font-family: var(--font-family-code);
|
|
15
|
-
font-size: 1em;
|
|
16
|
-
text-align: left;
|
|
17
|
-
white-space: pre;
|
|
18
|
-
word-spacing: normal;
|
|
19
|
-
word-break: normal;
|
|
20
|
-
word-wrap: normal;
|
|
21
|
-
line-height: 1.5;
|
|
22
|
-
|
|
23
|
-
-moz-tab-size: 4;
|
|
24
|
-
-o-tab-size: 4;
|
|
25
|
-
tab-size: 4;
|
|
26
|
-
|
|
27
|
-
-webkit-hyphens: none;
|
|
28
|
-
-moz-hyphens: none;
|
|
29
|
-
-ms-hyphens: none;
|
|
30
|
-
hyphens: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* Code blocks */
|
|
34
|
-
pre[class*='language-'] {
|
|
35
|
-
padding: 1em;
|
|
36
|
-
margin: 0.5em 0;
|
|
37
|
-
overflow: auto;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:not(pre) > code[class*='language-'],
|
|
41
|
-
pre[class*='language-'] {
|
|
42
|
-
background: #2d2d2d;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Inline code */
|
|
46
|
-
:not(pre) > code[class*='language-'] {
|
|
47
|
-
padding: 0.1em;
|
|
48
|
-
border-radius: 0.3em;
|
|
49
|
-
white-space: normal;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.token.comment,
|
|
53
|
-
.token.block-comment,
|
|
54
|
-
.token.prolog,
|
|
55
|
-
.token.doctype,
|
|
56
|
-
.token.cdata {
|
|
57
|
-
color: #999;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.token.punctuation {
|
|
61
|
-
color: #ccc;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.token.tag,
|
|
65
|
-
.token.attr-name,
|
|
66
|
-
.token.namespace,
|
|
67
|
-
.token.deleted {
|
|
68
|
-
color: #ec5975;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.token.function-name {
|
|
72
|
-
color: #6196cc;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.token.boolean,
|
|
76
|
-
.token.number,
|
|
77
|
-
.token.function {
|
|
78
|
-
color: #f08d49;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.token.property,
|
|
82
|
-
.token.class-name,
|
|
83
|
-
.token.constant,
|
|
84
|
-
.token.symbol {
|
|
85
|
-
color: #f8c555;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.token.selector,
|
|
89
|
-
.token.important,
|
|
90
|
-
.token.atrule,
|
|
91
|
-
.token.keyword,
|
|
92
|
-
.token.builtin {
|
|
93
|
-
color: #cc99cd;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.token.string,
|
|
97
|
-
.token.char,
|
|
98
|
-
.token.attr-value,
|
|
99
|
-
.token.regex,
|
|
100
|
-
.token.variable {
|
|
101
|
-
color: #7ec699;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.token.operator,
|
|
105
|
-
.token.entity,
|
|
106
|
-
.token.url {
|
|
107
|
-
color: #67cdcc;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.token.important,
|
|
111
|
-
.token.bold {
|
|
112
|
-
font-weight: bold;
|
|
113
|
-
}
|
|
114
|
-
.token.italic {
|
|
115
|
-
font-style: italic;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.token.entity {
|
|
119
|
-
cursor: help;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.token.inserted {
|
|
123
|
-
color: #3eaf7c;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// ===============================
|
|
127
|
-
|
|
128
|
-
.theme-default-content {
|
|
129
|
-
pre,
|
|
130
|
-
pre[class*='language-'] {
|
|
131
|
-
line-height: $line-height;
|
|
132
|
-
padding: 1.3rem 1.5rem;
|
|
133
|
-
margin: 0.85rem 0;
|
|
134
|
-
border-radius: 6px;
|
|
135
|
-
overflow: auto;
|
|
136
|
-
|
|
137
|
-
code {
|
|
138
|
-
color: #fff;
|
|
139
|
-
padding: 0;
|
|
140
|
-
background-color: transparent !important;
|
|
141
|
-
border-radius: 0;
|
|
142
|
-
overflow-wrap: unset;
|
|
143
|
-
-webkit-font-smoothing: auto;
|
|
144
|
-
-moz-osx-font-smoothing: auto;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.line-number {
|
|
149
|
-
font-family: var(--font-family-code);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
div[class*='language-'] {
|
|
154
|
-
position: relative;
|
|
155
|
-
background-color: var(--code-bg-color);
|
|
156
|
-
border-radius: 6px;
|
|
157
|
-
|
|
158
|
-
&::before {
|
|
159
|
-
content: attr(data-title);
|
|
160
|
-
position: absolute;
|
|
161
|
-
z-index: 3;
|
|
162
|
-
top: 0.8em;
|
|
163
|
-
right: 1em;
|
|
164
|
-
font-size: 0.75rem;
|
|
165
|
-
color: var(--code-ln-color);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
pre,
|
|
169
|
-
pre[class*='language-'] {
|
|
170
|
-
// force override the background color to be compatible with shiki
|
|
171
|
-
background: transparent !important;
|
|
172
|
-
position: relative;
|
|
173
|
-
z-index: 1;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.highlight-lines {
|
|
177
|
-
user-select: none;
|
|
178
|
-
padding-top: 1.3rem;
|
|
179
|
-
position: absolute;
|
|
180
|
-
top: 0;
|
|
181
|
-
left: 0;
|
|
182
|
-
width: 100%;
|
|
183
|
-
line-height: $line-height;
|
|
184
|
-
|
|
185
|
-
.highlight-line {
|
|
186
|
-
background-color: var(--code-hl-bg-color);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&:not(.line-numbers-mode) {
|
|
191
|
-
.line-numbers {
|
|
192
|
-
display: none;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
&.line-numbers-mode {
|
|
197
|
-
.highlight-lines .highlight-line {
|
|
198
|
-
position: relative;
|
|
199
|
-
|
|
200
|
-
&::before {
|
|
201
|
-
content: ' ';
|
|
202
|
-
position: absolute;
|
|
203
|
-
z-index: 2;
|
|
204
|
-
left: 0;
|
|
205
|
-
top: 0;
|
|
206
|
-
display: block;
|
|
207
|
-
width: var(--code-ln-wrapper-width);
|
|
208
|
-
height: 100%;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
pre {
|
|
213
|
-
margin-left: var(--code-ln-wrapper-width);
|
|
214
|
-
padding-left: 1rem;
|
|
215
|
-
vertical-align: middle;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.line-numbers {
|
|
219
|
-
position: absolute;
|
|
220
|
-
top: 0;
|
|
221
|
-
width: var(--code-ln-wrapper-width);
|
|
222
|
-
text-align: center;
|
|
223
|
-
color: var(--code-ln-color);
|
|
224
|
-
padding-top: 1.25rem;
|
|
225
|
-
line-height: $line-height;
|
|
226
|
-
counter-reset: line-number;
|
|
227
|
-
|
|
228
|
-
.line-number {
|
|
229
|
-
position: relative;
|
|
230
|
-
z-index: 3;
|
|
231
|
-
user-select: none;
|
|
232
|
-
height: #{$line-height}em;
|
|
233
|
-
|
|
234
|
-
&::before {
|
|
235
|
-
counter-increment: line-number;
|
|
236
|
-
content: counter(line-number);
|
|
237
|
-
font-size: 0.85em;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&::after {
|
|
243
|
-
content: '';
|
|
244
|
-
position: absolute;
|
|
245
|
-
top: 0;
|
|
246
|
-
left: 0;
|
|
247
|
-
width: var(--code-ln-wrapper-width);
|
|
248
|
-
height: 100%;
|
|
249
|
-
border-radius: 6px 0 0 6px;
|
|
250
|
-
border-right: 1px solid var(--code-hl-bg-color);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// narrow mobile
|
|
256
|
-
@media (max-width: $MQMobileNarrow) {
|
|
257
|
-
.theme-default-content {
|
|
258
|
-
div[class*='language-'] {
|
|
259
|
-
margin: 0.85rem -1.5rem;
|
|
260
|
-
border-radius: 0;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
@@ -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
|
-
}
|