@vuepress/theme-default 2.0.0-beta.8 → 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 -28
- 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 +35 -49
- 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 -403
- package/lib/client/clientAppEnhance.d.ts +0 -3
- package/lib/client/clientAppEnhance.js +0 -30
- 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
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
@import '_mixins';
|
|
1
2
|
@import '_variables';
|
|
2
|
-
@import '_wrapper';
|
|
3
|
-
|
|
4
|
-
$mobileSidebarWidth: $sidebarWidth * 0.82;
|
|
5
3
|
|
|
6
4
|
.page {
|
|
7
|
-
padding-
|
|
5
|
+
padding-top: var(--navbar-height);
|
|
6
|
+
padding-left: var(--sidebar-width);
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
.navbar {
|
|
@@ -13,35 +12,42 @@ $mobileSidebarWidth: $sidebarWidth * 0.82;
|
|
|
13
12
|
top: 0;
|
|
14
13
|
left: 0;
|
|
15
14
|
right: 0;
|
|
16
|
-
height:
|
|
17
|
-
background-color: #fff;
|
|
15
|
+
height: var(--navbar-height);
|
|
18
16
|
box-sizing: border-box;
|
|
19
|
-
border-bottom: 1px solid
|
|
17
|
+
border-bottom: 1px solid var(--c-border);
|
|
18
|
+
background-color: var(--c-bg-navbar);
|
|
19
|
+
transition:
|
|
20
|
+
background-color var(--t-color),
|
|
21
|
+
border-color var(--t-color);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
.sidebar {
|
|
23
25
|
font-size: 16px;
|
|
24
|
-
|
|
25
|
-
width: $sidebarWidth;
|
|
26
|
+
width: var(--sidebar-width);
|
|
26
27
|
position: fixed;
|
|
27
28
|
z-index: 10;
|
|
28
29
|
margin: 0;
|
|
29
|
-
top:
|
|
30
|
+
top: var(--navbar-height);
|
|
30
31
|
left: 0;
|
|
31
32
|
bottom: 0;
|
|
32
33
|
box-sizing: border-box;
|
|
33
|
-
border-right: 1px solid
|
|
34
|
+
border-right: 1px solid var(--c-border);
|
|
34
35
|
overflow-y: auto;
|
|
35
36
|
scrollbar-width: thin;
|
|
36
|
-
scrollbar-color:
|
|
37
|
+
scrollbar-color: var(--c-brand) var(--c-border);
|
|
38
|
+
background-color: var(--c-bg-sidebar);
|
|
39
|
+
transition:
|
|
40
|
+
transform var(--t-transform),
|
|
41
|
+
background-color var(--t-color),
|
|
42
|
+
border-color var(--t-color);
|
|
37
43
|
&::-webkit-scrollbar {
|
|
38
44
|
width: 7px;
|
|
39
45
|
}
|
|
40
46
|
&::-webkit-scrollbar-track {
|
|
41
|
-
background-color:
|
|
47
|
+
background-color: var(--c-border);
|
|
42
48
|
}
|
|
43
49
|
&::-webkit-scrollbar-thumb {
|
|
44
|
-
background-color:
|
|
50
|
+
background-color: var(--c-brand);
|
|
45
51
|
}
|
|
46
52
|
}
|
|
47
53
|
|
|
@@ -60,16 +66,43 @@ $mobileSidebarWidth: $sidebarWidth * 0.82;
|
|
|
60
66
|
.sidebar-mask {
|
|
61
67
|
display: block;
|
|
62
68
|
}
|
|
69
|
+
|
|
70
|
+
.navbar > .toggle-sidebar-button .icon {
|
|
71
|
+
span {
|
|
72
|
+
&:nth-child(1) {
|
|
73
|
+
transform: rotate(45deg) translate3d(5.5px, 5.5px, 0);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:nth-child(2) {
|
|
77
|
+
transform: scale3d(0, 1, 1);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:nth-child(3) {
|
|
81
|
+
transform: rotate(-45deg) translate3d(6px, -6px, 0);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:nth-child(1),
|
|
85
|
+
&:nth-child(3) {
|
|
86
|
+
transform-origin: center;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
63
90
|
}
|
|
64
91
|
|
|
65
92
|
&.no-navbar {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
93
|
+
.theme-default-content {
|
|
94
|
+
h1,
|
|
95
|
+
h2,
|
|
96
|
+
h3,
|
|
97
|
+
h4,
|
|
98
|
+
h5,
|
|
99
|
+
h6 {
|
|
100
|
+
margin-top: 1.5rem;
|
|
101
|
+
padding-top: 0;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.page {
|
|
73
106
|
padding-top: 0;
|
|
74
107
|
}
|
|
75
108
|
|
|
@@ -78,32 +111,40 @@ $mobileSidebarWidth: $sidebarWidth * 0.82;
|
|
|
78
111
|
}
|
|
79
112
|
}
|
|
80
113
|
}
|
|
114
|
+
.theme-container.no-sidebar {
|
|
115
|
+
.sidebar {
|
|
116
|
+
display: none;
|
|
81
117
|
|
|
82
|
-
@media (
|
|
83
|
-
|
|
84
|
-
.sidebar {
|
|
85
|
-
display: none;
|
|
118
|
+
@media (max-width: $MQMobile) {
|
|
119
|
+
display: block;
|
|
86
120
|
}
|
|
121
|
+
}
|
|
87
122
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
123
|
+
.page {
|
|
124
|
+
padding-left: 0;
|
|
91
125
|
}
|
|
92
126
|
}
|
|
93
127
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
128
|
+
.theme-default-content {
|
|
129
|
+
a:hover {
|
|
130
|
+
text-decoration: underline;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
img {
|
|
134
|
+
max-width: 100%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
h1,
|
|
138
|
+
h2,
|
|
139
|
+
h3,
|
|
140
|
+
h4,
|
|
141
|
+
h5,
|
|
142
|
+
h6 {
|
|
143
|
+
margin-top: calc(0.5rem - var(--navbar-height));
|
|
144
|
+
padding-top: calc(1rem + var(--navbar-height));
|
|
103
145
|
margin-bottom: 0;
|
|
104
146
|
|
|
105
147
|
&:first-child {
|
|
106
|
-
margin-top: -1.5rem;
|
|
107
148
|
margin-bottom: 1rem;
|
|
108
149
|
|
|
109
150
|
+ p,
|
|
@@ -115,46 +156,15 @@ h6 {
|
|
|
115
156
|
}
|
|
116
157
|
}
|
|
117
158
|
|
|
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
159
|
// narrow desktop / iPad
|
|
150
160
|
@media (max-width: $MQNarrow) {
|
|
151
161
|
.sidebar {
|
|
152
162
|
font-size: 15px;
|
|
153
|
-
width:
|
|
163
|
+
width: var(--sidebar-width-mobile);
|
|
154
164
|
}
|
|
155
165
|
|
|
156
166
|
.page {
|
|
157
|
-
padding-left:
|
|
167
|
+
padding-left: var(--sidebar-width-mobile);
|
|
158
168
|
}
|
|
159
169
|
}
|
|
160
170
|
|
|
@@ -162,9 +172,8 @@ h6 {
|
|
|
162
172
|
@media (max-width: $MQMobile) {
|
|
163
173
|
.sidebar {
|
|
164
174
|
top: 0;
|
|
165
|
-
padding-top:
|
|
175
|
+
padding-top: var(--navbar-height);
|
|
166
176
|
transform: translateX(-100%);
|
|
167
|
-
transition: transform 0.2s ease;
|
|
168
177
|
}
|
|
169
178
|
|
|
170
179
|
.page {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
@import '_mixins';
|
|
1
2
|
@import '_variables';
|
|
2
3
|
|
|
3
|
-
.dropdown-wrapper {
|
|
4
|
+
.navbar-dropdown-wrapper {
|
|
4
5
|
cursor: pointer;
|
|
5
6
|
|
|
6
|
-
.dropdown-title {
|
|
7
|
+
.navbar-dropdown-title {
|
|
7
8
|
display: block;
|
|
8
9
|
font-size: 0.9rem;
|
|
9
10
|
font-family: inherit;
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
background: transparent;
|
|
14
15
|
border: none;
|
|
15
16
|
font-weight: 500;
|
|
16
|
-
color:
|
|
17
|
+
color: var(--c-text);
|
|
17
18
|
|
|
18
19
|
&:hover {
|
|
19
20
|
border-color: transparent;
|
|
@@ -26,26 +27,24 @@
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
.
|
|
30
|
-
@extend .dropdown-title;
|
|
30
|
+
.navbar-dropdown-title-mobile {
|
|
31
|
+
@extend .navbar-dropdown-title;
|
|
31
32
|
display: none;
|
|
32
33
|
font-weight: 600;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
color: $accentColor;
|
|
37
|
-
}
|
|
34
|
+
font-size: inherit;
|
|
35
|
+
&:hover {
|
|
36
|
+
color: var(--c-text-accent);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
.
|
|
42
|
-
.dropdown-item {
|
|
40
|
+
.navbar-dropdown {
|
|
41
|
+
.navbar-dropdown-item {
|
|
43
42
|
color: inherit;
|
|
44
43
|
line-height: 1.7rem;
|
|
45
44
|
|
|
46
|
-
.dropdown-subtitle {
|
|
45
|
+
.navbar-dropdown-subtitle {
|
|
47
46
|
margin: 0.45rem 0 0;
|
|
48
|
-
border-top: 1px solid
|
|
47
|
+
border-top: 1px solid var(--c-border);
|
|
49
48
|
padding: 1rem 0 0.45rem 0;
|
|
50
49
|
font-size: 0.9rem;
|
|
51
50
|
|
|
@@ -63,11 +62,11 @@
|
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
|
|
66
|
-
.dropdown-subitem-wrapper {
|
|
65
|
+
.navbar-dropdown-subitem-wrapper {
|
|
67
66
|
padding: 0;
|
|
68
67
|
list-style: none;
|
|
69
68
|
|
|
70
|
-
.dropdown-subitem {
|
|
69
|
+
.navbar-dropdown-subitem {
|
|
71
70
|
font-size: 0.9em;
|
|
72
71
|
}
|
|
73
72
|
}
|
|
@@ -82,17 +81,17 @@
|
|
|
82
81
|
padding: 0 1.5rem 0 1.25rem;
|
|
83
82
|
|
|
84
83
|
&:hover {
|
|
85
|
-
color:
|
|
84
|
+
color: var(--c-text-accent);
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
&.router-link-active {
|
|
89
|
-
color:
|
|
88
|
+
color: var(--c-text-accent);
|
|
90
89
|
|
|
91
90
|
&::after {
|
|
92
91
|
content: '';
|
|
93
92
|
width: 0;
|
|
94
93
|
height: 0;
|
|
95
|
-
border-left: 5px solid
|
|
94
|
+
border-left: 5px solid var(--c-text-accent);
|
|
96
95
|
border-top: 3px solid transparent;
|
|
97
96
|
border-bottom: 3px solid transparent;
|
|
98
97
|
position: absolute;
|
|
@@ -102,62 +101,57 @@
|
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
&:first-child .dropdown-subtitle {
|
|
104
|
+
&:first-child .navbar-dropdown-subtitle {
|
|
106
105
|
margin-top: 0;
|
|
107
106
|
padding-top: 0;
|
|
108
107
|
border-top: 0;
|
|
109
108
|
}
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
}
|
|
113
111
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
&.open .dropdown-title {
|
|
112
|
+
&.mobile {
|
|
113
|
+
&.open .navbar-dropdown-title {
|
|
117
114
|
margin-bottom: 0.5rem;
|
|
118
115
|
}
|
|
119
116
|
|
|
120
|
-
.dropdown-title {
|
|
117
|
+
.navbar-dropdown-title {
|
|
121
118
|
display: none;
|
|
122
119
|
}
|
|
123
120
|
|
|
124
|
-
.
|
|
121
|
+
.navbar-dropdown-title-mobile {
|
|
125
122
|
display: block;
|
|
126
123
|
}
|
|
127
124
|
|
|
128
|
-
.
|
|
129
|
-
|
|
130
|
-
overflow: hidden;
|
|
125
|
+
.navbar-dropdown {
|
|
126
|
+
@include dropdown_wrapper;
|
|
131
127
|
|
|
132
|
-
.dropdown-item {
|
|
133
|
-
.dropdown-subtitle {
|
|
128
|
+
.navbar-dropdown-item {
|
|
129
|
+
.navbar-dropdown-subtitle {
|
|
134
130
|
border-top: 0;
|
|
135
131
|
margin-top: 0;
|
|
136
132
|
padding-top: 0;
|
|
137
133
|
padding-bottom: 0;
|
|
138
134
|
}
|
|
139
135
|
|
|
140
|
-
.dropdown-subtitle,
|
|
136
|
+
.navbar-dropdown-subtitle,
|
|
141
137
|
& > a {
|
|
142
138
|
font-size: 15px;
|
|
143
139
|
line-height: 2rem;
|
|
144
140
|
}
|
|
145
141
|
|
|
146
|
-
.dropdown-subitem {
|
|
142
|
+
.navbar-dropdown-subitem {
|
|
147
143
|
font-size: 14px;
|
|
148
144
|
padding-left: 1rem;
|
|
149
145
|
}
|
|
150
146
|
}
|
|
151
147
|
}
|
|
152
148
|
}
|
|
153
|
-
}
|
|
154
149
|
|
|
155
|
-
|
|
156
|
-
.dropdown-wrapper {
|
|
150
|
+
&:not(.mobile) {
|
|
157
151
|
height: 1.8rem;
|
|
158
152
|
|
|
159
|
-
&:hover .
|
|
160
|
-
&.open .
|
|
153
|
+
&:hover .navbar-dropdown,
|
|
154
|
+
&.open .navbar-dropdown {
|
|
161
155
|
// override the inline style.
|
|
162
156
|
display: block !important;
|
|
163
157
|
}
|
|
@@ -166,7 +160,7 @@
|
|
|
166
160
|
display: none;
|
|
167
161
|
}
|
|
168
162
|
|
|
169
|
-
.
|
|
163
|
+
.navbar-dropdown {
|
|
170
164
|
display: none;
|
|
171
165
|
// Avoid height shaked by clicking
|
|
172
166
|
height: auto !important;
|
|
@@ -176,10 +170,10 @@
|
|
|
176
170
|
position: absolute;
|
|
177
171
|
top: 100%;
|
|
178
172
|
right: 0;
|
|
179
|
-
background-color:
|
|
173
|
+
background-color: var(--c-bg-navbar);
|
|
180
174
|
padding: 0.6rem 0;
|
|
181
|
-
border: 1px solid
|
|
182
|
-
border-bottom-color:
|
|
175
|
+
border: 1px solid var(--c-border);
|
|
176
|
+
border-bottom-color: var(--c-border-dark);
|
|
183
177
|
text-align: left;
|
|
184
178
|
border-radius: 0.25rem;
|
|
185
179
|
white-space: nowrap;
|
|
@@ -187,11 +181,3 @@
|
|
|
187
181
|
}
|
|
188
182
|
}
|
|
189
183
|
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* transition
|
|
193
|
-
*/
|
|
194
|
-
.dropdown-enter-from,
|
|
195
|
-
.dropdown-leave-to {
|
|
196
|
-
height: 0 !important;
|
|
197
|
-
}
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
@use 'sass:color';
|
|
2
|
-
|
|
3
1
|
@import '_variables';
|
|
4
2
|
|
|
5
|
-
$navbar-vertical-padding: 0.7rem;
|
|
6
|
-
$navbar-horizontal-padding: 1.5rem;
|
|
7
|
-
|
|
8
3
|
.navbar {
|
|
9
|
-
|
|
10
|
-
|
|
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);
|
|
11
10
|
|
|
12
11
|
.logo {
|
|
13
|
-
height:
|
|
14
|
-
|
|
15
|
-
margin-right: 0.8rem;
|
|
12
|
+
height: var(--navbar-line-height);
|
|
13
|
+
margin-right: var(--navbar-padding-v);
|
|
16
14
|
vertical-align: top;
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
.site-name {
|
|
20
18
|
font-size: 1.3rem;
|
|
21
19
|
font-weight: 600;
|
|
22
|
-
color:
|
|
20
|
+
color: var(--c-text);
|
|
23
21
|
position: relative;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
.navbar-
|
|
27
|
-
|
|
24
|
+
.navbar-items-wrapper {
|
|
25
|
+
display: flex;
|
|
26
|
+
position: absolute;
|
|
28
27
|
box-sizing: border-box;
|
|
29
|
-
|
|
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);
|
|
30
32
|
white-space: nowrap;
|
|
31
33
|
font-size: 0.9rem;
|
|
32
|
-
position: absolute;
|
|
33
|
-
right: $navbar-horizontal-padding;
|
|
34
|
-
top: $navbar-vertical-padding;
|
|
35
|
-
display: flex;
|
|
36
34
|
|
|
37
35
|
.search-box {
|
|
38
36
|
flex: 0 0 auto;
|
|
@@ -41,33 +39,37 @@ $navbar-horizontal-padding: 1.5rem;
|
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
41
|
|
|
44
|
-
@media (max-width: $MQMobile) {
|
|
42
|
+
@media screen and (max-width: $MQMobile) {
|
|
45
43
|
.navbar {
|
|
46
44
|
padding-left: 4rem;
|
|
47
45
|
|
|
48
|
-
.can-hide {
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.navbar-links-wrapper {
|
|
53
|
-
padding-left: 1.5rem;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
46
|
.site-name {
|
|
57
|
-
|
|
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);
|
|
58
52
|
overflow: hidden;
|
|
59
53
|
white-space: nowrap;
|
|
60
54
|
text-overflow: ellipsis;
|
|
61
55
|
}
|
|
56
|
+
|
|
57
|
+
.can-hide {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
62
60
|
}
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
/**
|
|
66
|
-
* navbar-
|
|
64
|
+
* navbar-items
|
|
67
65
|
*/
|
|
68
|
-
.navbar-
|
|
66
|
+
.navbar-items {
|
|
69
67
|
display: inline-block;
|
|
70
68
|
|
|
69
|
+
@media print {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
71
73
|
a {
|
|
72
74
|
display: inline-block;
|
|
73
75
|
line-height: 1.4rem;
|
|
@@ -75,43 +77,49 @@ $navbar-horizontal-padding: 1.5rem;
|
|
|
75
77
|
|
|
76
78
|
&:hover,
|
|
77
79
|
&.router-link-active {
|
|
78
|
-
color:
|
|
80
|
+
color: var(--c-text);
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
|
|
82
|
-
.navbar-
|
|
84
|
+
.navbar-item {
|
|
83
85
|
position: relative;
|
|
84
86
|
display: inline-block;
|
|
85
87
|
margin-left: 1.5rem;
|
|
86
|
-
line-height:
|
|
88
|
+
line-height: var(--navbar-line-height);
|
|
87
89
|
|
|
88
90
|
&:first-child {
|
|
89
91
|
margin-left: 0;
|
|
90
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
|
+
}
|
|
91
101
|
}
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
@media (max-width: $MQMobile) {
|
|
95
|
-
.navbar-
|
|
96
|
-
.navbar-
|
|
105
|
+
.navbar-items {
|
|
106
|
+
.navbar-item {
|
|
97
107
|
margin-left: 0;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
108
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
109
|
+
> a {
|
|
110
|
+
&:hover,
|
|
111
|
+
&.router-link-active {
|
|
112
|
+
margin-bottom: 0;
|
|
113
|
+
border-bottom: none;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
107
116
|
}
|
|
108
|
-
}
|
|
109
117
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
a {
|
|
119
|
+
&:hover,
|
|
120
|
+
&.router-link-active {
|
|
121
|
+
color: var(--c-text-accent);
|
|
122
|
+
}
|
|
115
123
|
}
|
|
116
124
|
}
|
|
117
125
|
}
|
|
@@ -129,9 +137,26 @@ $navbar-horizontal-padding: 1.5rem;
|
|
|
129
137
|
}
|
|
130
138
|
|
|
131
139
|
.toggle-sidebar-button .icon {
|
|
132
|
-
display:
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
align-items: center;
|
|
133
144
|
width: 1.25rem;
|
|
134
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
|
+
}
|
|
135
160
|
}
|
|
136
161
|
|
|
137
162
|
@media screen and (max-width: $MQMobile) {
|
|
@@ -139,3 +164,34 @@ $navbar-horizontal-padding: 1.5rem;
|
|
|
139
164
|
display: block;
|
|
140
165
|
}
|
|
141
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
|
+
}
|