@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
package/lib/styles/layout.scss
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
@import '_variables';
|
|
2
|
-
@import '_wrapper';
|
|
3
|
-
|
|
4
|
-
$mobileSidebarWidth: $sidebarWidth * 0.82;
|
|
5
|
-
|
|
6
|
-
.page {
|
|
7
|
-
padding-left: $sidebarWidth;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.navbar {
|
|
11
|
-
position: fixed;
|
|
12
|
-
z-index: 20;
|
|
13
|
-
top: 0;
|
|
14
|
-
left: 0;
|
|
15
|
-
right: 0;
|
|
16
|
-
height: $navbarHeight;
|
|
17
|
-
background-color: #fff;
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
border-bottom: 1px solid $borderColor;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.sidebar {
|
|
23
|
-
font-size: 16px;
|
|
24
|
-
background-color: #fff;
|
|
25
|
-
width: $sidebarWidth;
|
|
26
|
-
position: fixed;
|
|
27
|
-
z-index: 10;
|
|
28
|
-
margin: 0;
|
|
29
|
-
top: $navbarHeight;
|
|
30
|
-
left: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
box-sizing: border-box;
|
|
33
|
-
border-right: 1px solid $borderColor;
|
|
34
|
-
overflow-y: auto;
|
|
35
|
-
scrollbar-width: thin;
|
|
36
|
-
scrollbar-color: $accentColor $borderColor;
|
|
37
|
-
&::-webkit-scrollbar {
|
|
38
|
-
width: 7px;
|
|
39
|
-
}
|
|
40
|
-
&::-webkit-scrollbar-track {
|
|
41
|
-
background-color: $borderColor;
|
|
42
|
-
}
|
|
43
|
-
&::-webkit-scrollbar-thumb {
|
|
44
|
-
background-color: $accentColor;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.sidebar-mask {
|
|
49
|
-
position: fixed;
|
|
50
|
-
z-index: 9;
|
|
51
|
-
top: 0;
|
|
52
|
-
left: 0;
|
|
53
|
-
width: 100vw;
|
|
54
|
-
height: 100vh;
|
|
55
|
-
display: none;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.theme-container {
|
|
59
|
-
&.sidebar-open {
|
|
60
|
-
.sidebar-mask {
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&.no-navbar {
|
|
66
|
-
#{$contentClass}:not(.custom) > h1,
|
|
67
|
-
h2,
|
|
68
|
-
h3,
|
|
69
|
-
h4,
|
|
70
|
-
h5,
|
|
71
|
-
h6 {
|
|
72
|
-
margin-top: 1.5rem;
|
|
73
|
-
padding-top: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.sidebar {
|
|
77
|
-
top: 0;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@media (min-width: ($MQMobile + 1px)) {
|
|
83
|
-
.theme-container.no-sidebar {
|
|
84
|
-
.sidebar {
|
|
85
|
-
display: none;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.page {
|
|
89
|
-
padding-left: 0;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
h1,
|
|
95
|
-
h2,
|
|
96
|
-
h3,
|
|
97
|
-
h4,
|
|
98
|
-
h5,
|
|
99
|
-
h6 {
|
|
100
|
-
#{$contentClass}:not(.custom) > & {
|
|
101
|
-
margin-top: 0.5rem - $navbarHeight;
|
|
102
|
-
padding-top: ($navbarHeight + 1rem);
|
|
103
|
-
margin-bottom: 0;
|
|
104
|
-
|
|
105
|
-
&:first-child {
|
|
106
|
-
margin-top: -1.5rem;
|
|
107
|
-
margin-bottom: 1rem;
|
|
108
|
-
|
|
109
|
-
+ p,
|
|
110
|
-
+ pre,
|
|
111
|
-
+ .custom-container {
|
|
112
|
-
margin-top: 2rem;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
#{$contentClass}:not(.custom) {
|
|
119
|
-
@extend %wrapper;
|
|
120
|
-
|
|
121
|
-
> *:first-child {
|
|
122
|
-
margin-top: $navbarHeight;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
a:hover {
|
|
126
|
-
text-decoration: underline;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
p.demo {
|
|
130
|
-
padding: 1rem 1.5rem;
|
|
131
|
-
border: 1px solid #ddd;
|
|
132
|
-
border-radius: 4px;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
img {
|
|
136
|
-
max-width: 100%;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
#{$contentClass}.custom {
|
|
141
|
-
padding: 0;
|
|
142
|
-
margin: 0;
|
|
143
|
-
|
|
144
|
-
img {
|
|
145
|
-
max-width: 100%;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// narrow desktop / iPad
|
|
150
|
-
@media (max-width: $MQNarrow) {
|
|
151
|
-
.sidebar {
|
|
152
|
-
font-size: 15px;
|
|
153
|
-
width: $mobileSidebarWidth;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.page {
|
|
157
|
-
padding-left: $mobileSidebarWidth;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// wide mobile
|
|
162
|
-
@media (max-width: $MQMobile) {
|
|
163
|
-
.sidebar {
|
|
164
|
-
top: 0;
|
|
165
|
-
padding-top: $navbarHeight;
|
|
166
|
-
transform: translateX(-100%);
|
|
167
|
-
transition: transform 0.2s ease;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.page {
|
|
171
|
-
padding-left: 0;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.theme-container {
|
|
175
|
-
&.sidebar-open {
|
|
176
|
-
.sidebar {
|
|
177
|
-
transform: translateX(0);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
&.no-navbar {
|
|
182
|
-
.sidebar {
|
|
183
|
-
padding-top: 0;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// narrow mobile
|
|
190
|
-
@media (max-width: $MQMobileNarrow) {
|
|
191
|
-
h1 {
|
|
192
|
-
font-size: 1.9rem;
|
|
193
|
-
}
|
|
194
|
-
}
|
package/lib/styles/navbar.scss
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
@use 'sass:color';
|
|
2
|
-
|
|
3
|
-
@import '_variables';
|
|
4
|
-
|
|
5
|
-
$navbar-vertical-padding: 0.7rem;
|
|
6
|
-
$navbar-horizontal-padding: 1.5rem;
|
|
7
|
-
|
|
8
|
-
.navbar {
|
|
9
|
-
padding: $navbar-vertical-padding $navbar-horizontal-padding;
|
|
10
|
-
line-height: $navbarHeight - 1.4rem;
|
|
11
|
-
|
|
12
|
-
.logo {
|
|
13
|
-
height: $navbarHeight - 1.4rem;
|
|
14
|
-
min-width: $navbarHeight - 1.4rem;
|
|
15
|
-
margin-right: 0.8rem;
|
|
16
|
-
vertical-align: top;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.site-name {
|
|
20
|
-
font-size: 1.3rem;
|
|
21
|
-
font-weight: 600;
|
|
22
|
-
color: $textColor;
|
|
23
|
-
position: relative;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.navbar-links-wrapper {
|
|
27
|
-
padding-left: 1.5rem;
|
|
28
|
-
box-sizing: border-box;
|
|
29
|
-
background-color: white;
|
|
30
|
-
white-space: nowrap;
|
|
31
|
-
font-size: 0.9rem;
|
|
32
|
-
position: absolute;
|
|
33
|
-
right: $navbar-horizontal-padding;
|
|
34
|
-
top: $navbar-vertical-padding;
|
|
35
|
-
display: flex;
|
|
36
|
-
|
|
37
|
-
.search-box {
|
|
38
|
-
flex: 0 0 auto;
|
|
39
|
-
vertical-align: top;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media (max-width: $MQMobile) {
|
|
45
|
-
.navbar {
|
|
46
|
-
padding-left: 4rem;
|
|
47
|
-
|
|
48
|
-
.can-hide {
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.navbar-links-wrapper {
|
|
53
|
-
padding-left: 1.5rem;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.site-name {
|
|
57
|
-
width: calc(100vw - 9.4rem);
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
white-space: nowrap;
|
|
60
|
-
text-overflow: ellipsis;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* navbar-links
|
|
67
|
-
*/
|
|
68
|
-
.navbar-links {
|
|
69
|
-
display: inline-block;
|
|
70
|
-
|
|
71
|
-
a {
|
|
72
|
-
display: inline-block;
|
|
73
|
-
line-height: 1.4rem;
|
|
74
|
-
color: inherit;
|
|
75
|
-
|
|
76
|
-
&:hover,
|
|
77
|
-
&.router-link-active {
|
|
78
|
-
color: $accentColor;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.navbar-links-item {
|
|
83
|
-
position: relative;
|
|
84
|
-
display: inline-block;
|
|
85
|
-
margin-left: 1.5rem;
|
|
86
|
-
line-height: 2rem;
|
|
87
|
-
|
|
88
|
-
&:first-child {
|
|
89
|
-
margin-left: 0;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@media (max-width: $MQMobile) {
|
|
95
|
-
.navbar-links {
|
|
96
|
-
.navbar-links-item {
|
|
97
|
-
margin-left: 0;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@media (min-width: $MQMobile) {
|
|
103
|
-
.navbar-links a {
|
|
104
|
-
&:hover,
|
|
105
|
-
&.router-link-active {
|
|
106
|
-
color: $textColor;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.navbar-links-item > a:not(.external) {
|
|
111
|
-
&:hover,
|
|
112
|
-
&.router-link-active {
|
|
113
|
-
margin-bottom: -2px;
|
|
114
|
-
border-bottom: 2px solid color.scale($accentColor, $lightness: 8%);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* toggle sidebar button
|
|
121
|
-
*/
|
|
122
|
-
.toggle-sidebar-button {
|
|
123
|
-
position: absolute;
|
|
124
|
-
top: 0.6rem;
|
|
125
|
-
left: 1rem;
|
|
126
|
-
display: none;
|
|
127
|
-
padding: 0.6rem;
|
|
128
|
-
cursor: pointer;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.toggle-sidebar-button .icon {
|
|
132
|
-
display: block;
|
|
133
|
-
width: 1.25rem;
|
|
134
|
-
height: 1.25rem;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@media screen and (max-width: $MQMobile) {
|
|
138
|
-
.toggle-sidebar-button {
|
|
139
|
-
display: block;
|
|
140
|
-
}
|
|
141
|
-
}
|
package/lib/styles/plugins.scss
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@use 'sass:color';
|
|
2
|
-
|
|
3
|
-
@import '_variables';
|
|
4
|
-
|
|
5
|
-
.back-to-top {
|
|
6
|
-
--back-to-top-color: #{$accentColor};
|
|
7
|
-
--back-to-top-color-hover: #{color.scale($accentColor, $lightness: 30%)};
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
#nprogress {
|
|
11
|
-
--nprogress-color: #{$accentColor};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.DocSearch {
|
|
15
|
-
--docsearch-primary-color: #{$accentColor};
|
|
16
|
-
--docsearch-highlight-color: var(--docsearch-primary-color);
|
|
17
|
-
--docsearch-searchbox-shadow: inset 0 0 0 2px var(--docsearch-primary-color);
|
|
18
|
-
}
|
package/lib/styles/sidebar.scss
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
@import '_variables';
|
|
2
|
-
|
|
3
|
-
.sidebar {
|
|
4
|
-
ul {
|
|
5
|
-
padding: 0;
|
|
6
|
-
margin: 0;
|
|
7
|
-
list-style-type: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
a {
|
|
11
|
-
display: inline-block;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.navbar-links {
|
|
15
|
-
display: none;
|
|
16
|
-
border-bottom: 1px solid $borderColor;
|
|
17
|
-
padding: 0.5rem 0 0.75rem 0;
|
|
18
|
-
|
|
19
|
-
a {
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.navbar-links-item {
|
|
24
|
-
display: block;
|
|
25
|
-
line-height: 1.25rem;
|
|
26
|
-
font-size: 1.1em;
|
|
27
|
-
padding: 0.5rem 0 0.5rem 1.5rem;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
& > .sidebar-links {
|
|
32
|
-
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
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media (max-width: $MQMobile) {
|
|
47
|
-
.sidebar {
|
|
48
|
-
.navbar-links {
|
|
49
|
-
display: block;
|
|
50
|
-
|
|
51
|
-
.dropdown-wrapper
|
|
52
|
-
.nav-dropdown
|
|
53
|
-
.dropdown-item
|
|
54
|
-
a.router-link-active::after {
|
|
55
|
-
top: calc(1rem - 2px);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
& > .sidebar-links {
|
|
60
|
-
padding: 1rem 0;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
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;
|
|
86
|
-
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
|
-
border-left: 0.25rem solid transparent;
|
|
94
|
-
|
|
95
|
-
&.open,
|
|
96
|
-
&:hover {
|
|
97
|
-
color: inherit;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.arrow {
|
|
101
|
-
position: relative;
|
|
102
|
-
top: -0.12em;
|
|
103
|
-
left: 0.5em;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.sidebar .sidebar-sub-headers {
|
|
108
|
-
padding-left: 1rem;
|
|
109
|
-
font-size: 0.95em;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.sidebar-link {
|
|
113
|
-
font-size: 1em;
|
|
114
|
-
font-weight: 400;
|
|
115
|
-
display: inline-block;
|
|
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;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.sidebar-sub-headers & {
|
|
129
|
-
padding-top: 0.25rem;
|
|
130
|
-
padding-bottom: 0.25rem;
|
|
131
|
-
border-left: none;
|
|
132
|
-
|
|
133
|
-
&.active {
|
|
134
|
-
font-weight: 500;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
a.sidebar-heading,
|
|
140
|
-
a.sidebar-link {
|
|
141
|
-
cursor: pointer;
|
|
142
|
-
|
|
143
|
-
&.active {
|
|
144
|
-
font-weight: 600;
|
|
145
|
-
color: $accentColor;
|
|
146
|
-
border-left-color: $accentColor;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&:hover {
|
|
150
|
-
color: $accentColor;
|
|
151
|
-
}
|
|
152
|
-
}
|
package/lib/styles/sr-only.scss
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
.fade-slide-y-enter-active {
|
|
2
|
-
transition: all 0.3s ease;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.fade-slide-y-leave-active {
|
|
6
|
-
transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.fade-slide-y-enter-from,
|
|
10
|
-
.fade-slide-y-leave-to {
|
|
11
|
-
transform: translateY(10px);
|
|
12
|
-
opacity: 0;
|
|
13
|
-
}
|
package/lib/types/index.d.ts
DELETED
package/lib/types/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./nav"), exports);
|
|
14
|
-
__exportStar(require("./options"), exports);
|
|
15
|
-
__exportStar(require("./page"), exports);
|
package/lib/types/nav.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base nav item, displayed as text
|
|
3
|
-
*/
|
|
4
|
-
export interface NavItem {
|
|
5
|
-
text: string;
|
|
6
|
-
ariaLabel?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Base nav group, has nav items children
|
|
10
|
-
*/
|
|
11
|
-
export interface NavGroup<T> extends NavItem {
|
|
12
|
-
children: T[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Props for `<NavLink>`
|
|
16
|
-
*/
|
|
17
|
-
export interface NavLink extends NavItem {
|
|
18
|
-
link: string;
|
|
19
|
-
rel?: string;
|
|
20
|
-
target?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Navbar types
|
|
24
|
-
*/
|
|
25
|
-
export declare type NavbarItem = NavLink;
|
|
26
|
-
export declare type NavbarGroup = NavGroup<NavbarGroup | NavbarItem | string>;
|
|
27
|
-
export declare type NavbarConfig = (NavbarItem | NavbarGroup | string)[];
|
|
28
|
-
export declare type ResolvedNavbarItem = NavbarItem | NavGroup<ResolvedNavbarItem>;
|
|
29
|
-
/**
|
|
30
|
-
* Sidebar types
|
|
31
|
-
*/
|
|
32
|
-
export interface SidebarItem extends NavLink, NavGroup<NavLink | SidebarItem | string> {
|
|
33
|
-
isGroup?: false;
|
|
34
|
-
}
|
|
35
|
-
export interface SidebarGroup extends NavGroup<SidebarGroup | NavLink | SidebarItem | string> {
|
|
36
|
-
isGroup: true;
|
|
37
|
-
}
|
|
38
|
-
export declare type SidebarConfigArray = (SidebarGroup | SidebarItem | string)[];
|
|
39
|
-
export declare type SidebarConfigObject = Record<string, SidebarConfigArray>;
|
|
40
|
-
export declare type SidebarConfig = SidebarConfigArray | SidebarConfigObject;
|
|
41
|
-
export interface ResolvedSidebarItem extends Partial<NavLink> {
|
|
42
|
-
isGroup?: boolean;
|
|
43
|
-
children?: ResolvedSidebarItem[];
|
|
44
|
-
}
|
package/lib/types/nav.js
DELETED
package/lib/types/options.js
DELETED
package/lib/types/page.js
DELETED
package/lib/utils/index.d.ts
DELETED
package/lib/utils/index.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|