@vuepress/theme-default 2.0.0-beta.50-pre → 2.0.0-beta.50-pre.1
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 +97 -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/client/components/NavbarItems.vue +163 -0
- package/lib/client/components/Page.vue +24 -0
- package/lib/client/components/PageMeta.vue +124 -0
- package/lib/client/components/PageNav.vue +103 -0
- 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/client/composables/useNavLink.d.ts +14 -0
- package/lib/client/composables/useNavLink.js +18 -0
- package/lib/client/composables/useResolveRouteWithRedirect.d.ts +5 -0
- package/lib/client/composables/useResolveRouteWithRedirect.js +24 -0
- package/lib/client/composables/useScrollPromise.d.ts +6 -0
- package/lib/client/composables/useScrollPromise.js +14 -0
- package/lib/client/composables/useSidebarItems.d.ts +36 -0
- package/lib/client/composables/useSidebarItems.js +118 -0
- package/lib/client/composables/useThemeData.d.ts +4 -0
- package/lib/client/composables/useThemeData.js +3 -0
- package/lib/client/config.d.ts +3 -0
- package/lib/client/config.js +38 -0
- package/lib/client/index.d.ts +3 -0
- package/lib/client/index.js +3 -0
- package/lib/client/layouts/404.vue +27 -0
- package/lib/client/layouts/Layout.vue +134 -0
- package/lib/client/shim.d.ts +5 -0
- package/lib/client/styles/_mixins.scss +20 -0
- package/lib/client/styles/_variables.scss +11 -0
- package/lib/client/styles/arrow.scss +37 -0
- package/lib/client/styles/badge.scss +31 -0
- package/lib/client/styles/code-group.scss +69 -0
- package/lib/client/styles/code.scss +266 -0
- package/lib/client/styles/custom-container.scss +88 -0
- package/lib/client/styles/home.scss +168 -0
- package/lib/client/styles/index.scss +19 -0
- package/lib/client/styles/layout.scss +198 -0
- package/lib/client/styles/navbar-dropdown.scss +187 -0
- package/lib/client/styles/navbar.scss +177 -0
- package/lib/client/styles/normalize.scss +177 -0
- package/lib/client/styles/page.scss +83 -0
- package/lib/client/styles/sidebar.scss +134 -0
- package/lib/client/styles/toc.scss +5 -0
- package/lib/client/styles/transitions.scss +22 -0
- package/lib/client/styles/vars-dark.scss +46 -0
- package/lib/client/styles/vars.scss +133 -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/client/utils/resolveEditLink.d.ts +9 -0
- package/lib/client/utils/resolveEditLink.js +29 -0
- package/lib/client/utils/resolveRepoType.d.ts +2 -0
- package/lib/client/utils/resolveRepoType.js +12 -0
- package/lib/node/defaultTheme.d.ts +10 -0
- package/lib/node/defaultTheme.js +116 -0
- package/lib/node/index.d.ts +5 -0
- package/lib/node/index.js +5 -0
- package/lib/node/utils/assignDefaultLocaleOptions.d.ts +7 -0
- package/lib/node/utils/assignDefaultLocaleOptions.js +56 -0
- 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 +43 -0
- package/lib/shared/nav.js +1 -0
- package/lib/shared/options.d.ts +243 -0
- package/lib/shared/options.js +1 -0
- package/lib/shared/page.d.ts +40 -0
- package/lib/shared/page.js +1 -0
- package/package.json +17 -17
- package/templates/build.html +33 -0
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use 'vars';
|
|
2
|
+
@use 'vars-dark';
|
|
3
|
+
@use 'normalize';
|
|
4
|
+
|
|
5
|
+
@use 'arrow';
|
|
6
|
+
@use 'badge';
|
|
7
|
+
@use 'code';
|
|
8
|
+
@use 'code-group';
|
|
9
|
+
@use 'custom-container';
|
|
10
|
+
@use 'home';
|
|
11
|
+
@use 'layout';
|
|
12
|
+
@use 'navbar';
|
|
13
|
+
@use 'navbar-dropdown';
|
|
14
|
+
@use 'page';
|
|
15
|
+
@use 'sidebar';
|
|
16
|
+
@use 'toc';
|
|
17
|
+
@use 'transitions';
|
|
18
|
+
|
|
19
|
+
@use '@vuepress/plugin-palette/style';
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
@import '_mixins';
|
|
2
|
+
@import '_variables';
|
|
3
|
+
|
|
4
|
+
.page {
|
|
5
|
+
padding-top: var(--navbar-height);
|
|
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: background-color var(--t-color), border-color var(--t-color);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sidebar {
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
width: var(--sidebar-width);
|
|
25
|
+
position: fixed;
|
|
26
|
+
z-index: 10;
|
|
27
|
+
margin: 0;
|
|
28
|
+
top: var(--navbar-height);
|
|
29
|
+
left: 0;
|
|
30
|
+
bottom: 0;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
border-right: 1px solid var(--c-border);
|
|
33
|
+
overflow-y: auto;
|
|
34
|
+
scrollbar-width: thin;
|
|
35
|
+
scrollbar-color: var(--c-brand) var(--c-border);
|
|
36
|
+
background-color: var(--c-bg-sidebar);
|
|
37
|
+
transition: transform var(--t-transform), background-color var(--t-color),
|
|
38
|
+
border-color var(--t-color);
|
|
39
|
+
&::-webkit-scrollbar {
|
|
40
|
+
width: 7px;
|
|
41
|
+
}
|
|
42
|
+
&::-webkit-scrollbar-track {
|
|
43
|
+
background-color: var(--c-border);
|
|
44
|
+
}
|
|
45
|
+
&::-webkit-scrollbar-thumb {
|
|
46
|
+
background-color: var(--c-brand);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sidebar-mask {
|
|
51
|
+
position: fixed;
|
|
52
|
+
z-index: 9;
|
|
53
|
+
top: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
width: 100vw;
|
|
56
|
+
height: 100vh;
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.theme-container {
|
|
61
|
+
&.sidebar-open {
|
|
62
|
+
.sidebar-mask {
|
|
63
|
+
display: block;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.navbar > .toggle-sidebar-button .icon {
|
|
67
|
+
span {
|
|
68
|
+
&:nth-child(1) {
|
|
69
|
+
transform: rotate(45deg) translate3d(5.5px, 5.5px, 0);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:nth-child(2) {
|
|
73
|
+
transform: scale3d(0, 1, 1);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:nth-child(3) {
|
|
77
|
+
transform: rotate(-45deg) translate3d(6px, -6px, 0);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:nth-child(1),
|
|
81
|
+
&:nth-child(3) {
|
|
82
|
+
transform-origin: center;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.no-navbar {
|
|
89
|
+
.theme-default-content {
|
|
90
|
+
h1,
|
|
91
|
+
h2,
|
|
92
|
+
h3,
|
|
93
|
+
h4,
|
|
94
|
+
h5,
|
|
95
|
+
h6 {
|
|
96
|
+
margin-top: 1.5rem;
|
|
97
|
+
padding-top: 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.page {
|
|
102
|
+
padding-top: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sidebar {
|
|
106
|
+
top: 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (min-width: ($MQMobile + 1px)) {
|
|
112
|
+
.theme-container.no-sidebar {
|
|
113
|
+
.sidebar {
|
|
114
|
+
display: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.page {
|
|
118
|
+
padding-left: 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.theme-default-content {
|
|
124
|
+
a:hover {
|
|
125
|
+
text-decoration: underline;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
img {
|
|
129
|
+
max-width: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
h1,
|
|
133
|
+
h2,
|
|
134
|
+
h3,
|
|
135
|
+
h4,
|
|
136
|
+
h5,
|
|
137
|
+
h6 {
|
|
138
|
+
margin-top: calc(0.5rem - var(--navbar-height));
|
|
139
|
+
padding-top: calc(1rem + var(--navbar-height));
|
|
140
|
+
margin-bottom: 0;
|
|
141
|
+
|
|
142
|
+
&:first-child {
|
|
143
|
+
margin-bottom: 1rem;
|
|
144
|
+
|
|
145
|
+
+ p,
|
|
146
|
+
+ pre,
|
|
147
|
+
+ .custom-container {
|
|
148
|
+
margin-top: 2rem;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// narrow desktop / iPad
|
|
155
|
+
@media (max-width: $MQNarrow) {
|
|
156
|
+
.sidebar {
|
|
157
|
+
font-size: 15px;
|
|
158
|
+
width: var(--sidebar-width-mobile);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.page {
|
|
162
|
+
padding-left: var(--sidebar-width-mobile);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// wide mobile
|
|
167
|
+
@media (max-width: $MQMobile) {
|
|
168
|
+
.sidebar {
|
|
169
|
+
top: 0;
|
|
170
|
+
padding-top: var(--navbar-height);
|
|
171
|
+
transform: translateX(-100%);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.page {
|
|
175
|
+
padding-left: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.theme-container {
|
|
179
|
+
&.sidebar-open {
|
|
180
|
+
.sidebar {
|
|
181
|
+
transform: translateX(0);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.no-navbar {
|
|
186
|
+
.sidebar {
|
|
187
|
+
padding-top: 0;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// narrow mobile
|
|
194
|
+
@media (max-width: $MQMobileNarrow) {
|
|
195
|
+
h1 {
|
|
196
|
+
font-size: 1.9rem;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
|
|
113
|
+
@media (max-width: $MQMobile) {
|
|
114
|
+
.navbar-dropdown-wrapper {
|
|
115
|
+
&.open .navbar-dropdown-title {
|
|
116
|
+
margin-bottom: 0.5rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.navbar-dropdown-title {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.navbar-dropdown-title-mobile {
|
|
124
|
+
display: block;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.navbar-dropdown {
|
|
128
|
+
@include dropdown_wrapper;
|
|
129
|
+
|
|
130
|
+
.navbar-dropdown-item {
|
|
131
|
+
.navbar-dropdown-subtitle {
|
|
132
|
+
border-top: 0;
|
|
133
|
+
margin-top: 0;
|
|
134
|
+
padding-top: 0;
|
|
135
|
+
padding-bottom: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.navbar-dropdown-subtitle,
|
|
139
|
+
& > a {
|
|
140
|
+
font-size: 15px;
|
|
141
|
+
line-height: 2rem;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.navbar-dropdown-subitem {
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
padding-left: 1rem;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@media (min-width: ($MQMobile + 1)) {
|
|
154
|
+
.navbar-dropdown-wrapper {
|
|
155
|
+
height: 1.8rem;
|
|
156
|
+
|
|
157
|
+
&:hover .navbar-dropdown,
|
|
158
|
+
&.open .navbar-dropdown {
|
|
159
|
+
// override the inline style.
|
|
160
|
+
display: block !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.open:blur {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.navbar-dropdown {
|
|
168
|
+
display: none;
|
|
169
|
+
// Avoid height shaked by clicking
|
|
170
|
+
height: auto !important;
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
max-height: calc(100vh - 2.7rem);
|
|
173
|
+
overflow-y: auto;
|
|
174
|
+
position: absolute;
|
|
175
|
+
top: 100%;
|
|
176
|
+
right: 0;
|
|
177
|
+
background-color: var(--c-bg-navbar);
|
|
178
|
+
padding: 0.6rem 0;
|
|
179
|
+
border: 1px solid var(--c-border);
|
|
180
|
+
border-bottom-color: var(--c-border-dark);
|
|
181
|
+
text-align: left;
|
|
182
|
+
border-radius: 0.25rem;
|
|
183
|
+
white-space: nowrap;
|
|
184
|
+
margin: 0;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|