@vuepress/theme-default 2.0.0-beta.6 → 2.0.0-beta.60

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.
Files changed (148) hide show
  1. package/lib/client/components/AutoLink.vue +114 -0
  2. package/lib/client/components/DropdownTransition.vue +21 -0
  3. package/lib/client/components/Home.vue +15 -0
  4. package/lib/client/components/HomeContent.vue +5 -0
  5. package/lib/client/components/HomeFeatures.vue +23 -0
  6. package/lib/client/components/HomeFooter.vue +17 -0
  7. package/lib/client/components/HomeHero.vue +98 -0
  8. package/lib/client/components/Navbar.vue +75 -0
  9. package/lib/client/components/NavbarBrand.vue +55 -0
  10. package/lib/client/components/NavbarDropdown.vue +126 -0
  11. package/lib/{components/NavbarLinks.vue → client/components/NavbarItems.vue} +61 -50
  12. package/lib/{components → client/components}/Page.vue +9 -15
  13. package/lib/{components → client/components}/PageMeta.vue +51 -66
  14. package/lib/{components → client/components}/PageNav.vue +44 -57
  15. package/lib/client/components/Sidebar.vue +13 -0
  16. package/lib/client/components/SidebarItem.vue +87 -0
  17. package/lib/client/components/SidebarItems.vue +57 -0
  18. package/lib/client/components/ToggleColorModeButton.vue +57 -0
  19. package/lib/client/components/ToggleSidebarButton.vue +24 -0
  20. package/lib/client/components/global/Badge.vue +31 -0
  21. package/lib/client/components/global/CodeGroup.d.ts +4 -0
  22. package/lib/client/components/global/CodeGroup.js +106 -0
  23. package/lib/client/components/global/CodeGroupItem.vue +31 -0
  24. package/lib/client/components/global/index.d.ts +4 -0
  25. package/lib/client/components/global/index.js +4 -0
  26. package/lib/client/composables/index.d.ts +6 -0
  27. package/lib/client/composables/index.js +6 -0
  28. package/lib/client/composables/useDarkMode.d.ts +12 -0
  29. package/lib/client/composables/useDarkMode.js +57 -0
  30. package/lib/{composables → client/composables}/useNavLink.d.ts +6 -1
  31. package/lib/{composables → client/composables}/useNavLink.js +5 -2
  32. package/lib/{composables → client/composables}/useResolveRouteWithRedirect.d.ts +1 -1
  33. package/lib/{composables → client/composables}/useResolveRouteWithRedirect.js +2 -2
  34. package/lib/{composables → client/composables}/useScrollPromise.d.ts +0 -0
  35. package/lib/{composables → client/composables}/useScrollPromise.js +1 -1
  36. package/lib/client/composables/useSidebarItems.d.ts +36 -0
  37. package/lib/client/composables/useSidebarItems.js +118 -0
  38. package/lib/{composables → client/composables}/useThemeData.d.ts +2 -2
  39. package/lib/{composables → client/composables}/useThemeData.js +1 -1
  40. package/lib/client/config.d.ts +3 -0
  41. package/lib/client/config.js +44 -0
  42. package/lib/client/index.d.ts +3 -0
  43. package/lib/client/index.js +3 -0
  44. package/lib/client/layouts/Layout.vue +134 -0
  45. package/lib/client/layouts/NotFound.vue +27 -0
  46. package/lib/{shim.d.ts → client/shim.d.ts} +0 -0
  47. package/lib/{styles/_wrapper.scss → client/styles/_mixins.scss} +7 -2
  48. package/lib/client/styles/_variables.scss +6 -0
  49. package/lib/{styles → client/styles}/arrow.scss +4 -6
  50. package/lib/client/styles/badge.scss +34 -0
  51. package/lib/{styles → client/styles}/code-group.scss +9 -2
  52. package/lib/{styles → client/styles}/code.scss +35 -49
  53. package/lib/client/styles/custom-container.scss +140 -0
  54. package/lib/{styles → client/styles}/home.scss +32 -24
  55. package/lib/{styles → client/styles}/index.scss +4 -4
  56. package/lib/client/styles/layout.scss +199 -0
  57. package/lib/{styles/dropdown.scss → client/styles/navbar-dropdown.scss} +36 -50
  58. package/lib/client/styles/navbar.scss +193 -0
  59. package/lib/client/styles/normalize.scss +200 -0
  60. package/lib/{styles → client/styles}/page.scss +24 -8
  61. package/lib/client/styles/sidebar.scss +134 -0
  62. package/lib/{styles → client/styles}/toc.scss +0 -0
  63. package/lib/client/styles/transitions.scss +22 -0
  64. package/lib/client/styles/vars-dark.scss +68 -0
  65. package/lib/client/styles/vars.scss +149 -0
  66. package/lib/client/utils/index.d.ts +3 -0
  67. package/lib/client/utils/index.js +3 -0
  68. package/lib/client/utils/isActiveSidebarItem.d.ts +3 -0
  69. package/lib/client/utils/isActiveSidebarItem.js +20 -0
  70. package/lib/{utils → client/utils}/resolveEditLink.d.ts +2 -2
  71. package/lib/{utils → client/utils}/resolveEditLink.js +15 -9
  72. package/lib/client/utils/resolveRepoType.d.ts +2 -0
  73. package/lib/{utils → client/utils}/resolveRepoType.js +3 -1
  74. package/lib/node/defaultTheme.d.ts +10 -0
  75. package/lib/node/defaultTheme.js +117 -0
  76. package/lib/node/index.d.ts +5 -5
  77. package/lib/node/index.js +5 -17
  78. package/lib/node/utils/assignDefaultLocaleOptions.d.ts +7 -0
  79. package/lib/node/{assignDefaultLocaleOptions.js → utils/assignDefaultLocaleOptions.js} +13 -13
  80. package/lib/node/utils/index.d.ts +2 -0
  81. package/lib/node/utils/index.js +2 -0
  82. package/lib/node/utils/resolveContainerPluginOptions.d.ts +8 -0
  83. package/lib/node/utils/resolveContainerPluginOptions.js +17 -0
  84. package/lib/shared/index.d.ts +3 -0
  85. package/lib/shared/index.js +3 -0
  86. package/lib/shared/nav.d.ts +42 -0
  87. package/lib/shared/nav.js +1 -0
  88. package/lib/{types → shared}/options.d.ts +51 -13
  89. package/lib/shared/options.js +1 -0
  90. package/lib/{types → shared}/page.d.ts +15 -6
  91. package/lib/shared/page.js +1 -0
  92. package/package.json +49 -29
  93. package/templates/build.html +33 -0
  94. package/CHANGELOG.md +0 -376
  95. package/lib/clientAppEnhance.d.ts +0 -3
  96. package/lib/clientAppEnhance.js +0 -30
  97. package/lib/clientAppSetup.d.ts +0 -2
  98. package/lib/clientAppSetup.js +0 -11
  99. package/lib/components/DropdownLink.vue +0 -141
  100. package/lib/components/DropdownTransition.vue +0 -34
  101. package/lib/components/Home.vue +0 -133
  102. package/lib/components/NavLink.vue +0 -115
  103. package/lib/components/Navbar.vue +0 -114
  104. package/lib/components/Sidebar.vue +0 -38
  105. package/lib/components/SidebarChild.d.ts +0 -6
  106. package/lib/components/SidebarChild.js +0 -91
  107. package/lib/components/ToggleSidebarButton.vue +0 -27
  108. package/lib/components/global/Badge.vue +0 -37
  109. package/lib/components/global/CodeGroup.d.ts +0 -5
  110. package/lib/components/global/CodeGroup.js +0 -52
  111. package/lib/components/global/CodeGroupItem.vue +0 -25
  112. package/lib/components/global/OutboundLink.vue +0 -30
  113. package/lib/composables/index.d.ts +0 -5
  114. package/lib/composables/index.js +0 -5
  115. package/lib/composables/useSidebarItems.d.ts +0 -31
  116. package/lib/composables/useSidebarItems.js +0 -114
  117. package/lib/index.d.ts +0 -6
  118. package/lib/index.js +0 -67
  119. package/lib/layouts/404.vue +0 -38
  120. package/lib/layouts/Layout.vue +0 -152
  121. package/lib/node/assignDefaultLocaleOptions.d.ts +0 -5
  122. package/lib/node/resolveActiveHeaderLinksPluginOptions.d.ts +0 -6
  123. package/lib/node/resolveActiveHeaderLinksPluginOptions.js +0 -16
  124. package/lib/node/resolveContainerPluginOptions.d.ts +0 -26
  125. package/lib/node/resolveContainerPluginOptions.js +0 -79
  126. package/lib/node/resolveGitPluginOptions.d.ts +0 -6
  127. package/lib/node/resolveGitPluginOptions.js +0 -22
  128. package/lib/node/resolveMediumZoomPluginOptions.d.ts +0 -6
  129. package/lib/node/resolveMediumZoomPluginOptions.js +0 -17
  130. package/lib/styles/_normalize.scss +0 -148
  131. package/lib/styles/_variables.scss +0 -34
  132. package/lib/styles/badge.scss +0 -33
  133. package/lib/styles/custom-container.scss +0 -78
  134. package/lib/styles/layout.scss +0 -194
  135. package/lib/styles/navbar.scss +0 -141
  136. package/lib/styles/plugins.scss +0 -18
  137. package/lib/styles/sidebar.scss +0 -152
  138. package/lib/styles/sr-only.scss +0 -12
  139. package/lib/styles/transitions.scss +0 -13
  140. package/lib/types/index.d.ts +0 -3
  141. package/lib/types/index.js +0 -15
  142. package/lib/types/nav.d.ts +0 -44
  143. package/lib/types/nav.js +0 -2
  144. package/lib/types/options.js +0 -2
  145. package/lib/types/page.js +0 -2
  146. package/lib/utils/index.d.ts +0 -2
  147. package/lib/utils/index.js +0 -2
  148. package/lib/utils/resolveRepoType.d.ts +0 -2
@@ -1,148 +0,0 @@
1
- @import '_variables';
2
-
3
- html,
4
- body {
5
- padding: 0;
6
- margin: 0;
7
- background-color: #fff;
8
- }
9
-
10
- body {
11
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
12
- Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
13
- -webkit-font-smoothing: antialiased;
14
- -moz-osx-font-smoothing: grayscale;
15
- font-size: 16px;
16
- color: $textColor;
17
- }
18
-
19
- a {
20
- font-weight: 500;
21
- color: $accentColor;
22
- text-decoration: none;
23
- }
24
-
25
- p a code {
26
- font-weight: 400;
27
- color: $accentColor;
28
- }
29
-
30
- kbd {
31
- background: #eee;
32
- border: solid 0.15rem #ddd;
33
- border-bottom: solid 0.25rem #ddd;
34
- border-radius: 0.15rem;
35
- padding: 0 0.15em;
36
- }
37
-
38
- blockquote {
39
- font-size: 1rem;
40
- color: #999;
41
- border-left: 0.2rem solid #dfe2e5;
42
- margin: 1rem 0;
43
- padding: 0.25rem 0 0.25rem 1rem;
44
-
45
- & > p {
46
- margin: 0;
47
- }
48
- }
49
-
50
- ul,
51
- ol {
52
- padding-left: 1.2em;
53
- }
54
-
55
- strong {
56
- font-weight: 600;
57
- }
58
-
59
- h1,
60
- h2,
61
- h3,
62
- h4,
63
- h5,
64
- h6 {
65
- font-weight: 600;
66
- line-height: 1.25;
67
-
68
- &:hover .header-anchor {
69
- opacity: 1;
70
- }
71
- }
72
-
73
- h1 {
74
- font-size: 2.2rem;
75
- }
76
-
77
- h2 {
78
- font-size: 1.65rem;
79
- padding-bottom: 0.3rem;
80
- border-bottom: 1px solid $borderColor;
81
- }
82
-
83
- h3 {
84
- font-size: 1.35rem;
85
- }
86
-
87
- h4 {
88
- font-size: 1.15rem;
89
- }
90
-
91
- h5 {
92
- font-size: 1.05rem;
93
- }
94
-
95
- h6 {
96
- font-size: 1rem;
97
- }
98
-
99
- a.header-anchor {
100
- font-size: 0.85em;
101
- float: left;
102
- margin-left: -0.87em;
103
- padding-right: 0.23em;
104
- margin-top: 0.125em;
105
- opacity: 0;
106
-
107
- &:hover {
108
- text-decoration: none;
109
- }
110
- }
111
-
112
- code,
113
- kbd {
114
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
115
- monospace;
116
- }
117
-
118
- p,
119
- ul,
120
- ol {
121
- line-height: 1.7;
122
- }
123
-
124
- hr {
125
- border: 0;
126
- border-top: 1px solid $borderColor;
127
- }
128
-
129
- table {
130
- border-collapse: collapse;
131
- margin: 1rem 0;
132
- display: block;
133
- overflow-x: auto;
134
- }
135
-
136
- tr {
137
- border-top: 1px solid #dfe2e5;
138
-
139
- &:nth-child(2n) {
140
- background-color: #f6f8fa;
141
- }
142
- }
143
-
144
- th,
145
- td {
146
- border: 1px solid #dfe2e5;
147
- padding: 0.6em 1em;
148
- }
@@ -1,34 +0,0 @@
1
- @import '@vuepress/plugin-palette/palette';
2
-
3
- // colors
4
- $accentColor: #3eaf7c !default;
5
- $textColor: #2c3e50 !default;
6
- $borderColor: #eaecef !default;
7
- $codeBgColor: #282c34 !default;
8
- $arrowBgColor: #ccc !default;
9
- $tipColor: #42b983 !default;
10
- $warningColor: #e7c000 !default;
11
- $dangerColor: #cc0000 !default;
12
- $badgeTipColor: $tipColor !default;
13
- $badgeWarningColor: $warningColor !default;
14
- $badgeDangerColor: $dangerColor !default;
15
-
16
- // layout
17
- $navbarHeight: 3.6rem !default;
18
- $sidebarWidth: 20rem !default;
19
- $contentWidth: 740px !default;
20
- $homePageWidth: 960px !default;
21
-
22
- // responsive breakpoints
23
- $MQNarrow: 959px !default;
24
- $MQMobile: 719px !default;
25
- $MQMobileNarrow: 419px !default;
26
-
27
- // code
28
- $lineNumbersWrapperWidth: 3.5rem !default;
29
- $codeLang: 'c' 'cpp' 'cs' 'css' 'dart' 'docker' 'fs' 'go' 'html' 'java' 'js'
30
- 'json' 'kt' 'less' 'makefile' 'md' 'php' 'py' 'rb' 'rs' 'sass' 'scss' 'sh'
31
- 'styl' 'ts' 'toml' 'vue' 'yml' !default;
32
-
33
- // other
34
- $contentClass: '.theme-default-content' !default;
@@ -1,33 +0,0 @@
1
- @import '_variables';
2
-
3
- .badge {
4
- display: inline-block;
5
- font-size: 14px;
6
- height: 18px;
7
- line-height: 18px;
8
- border-radius: 3px;
9
- padding: 0 6px;
10
- color: white;
11
- background-color: #42b983;
12
- vertical-align: top;
13
-
14
- .table-of-contents & {
15
- vertical-align: middle;
16
- }
17
-
18
- &.tip {
19
- background-color: $badgeTipColor;
20
- }
21
-
22
- &.warning {
23
- background-color: $badgeWarningColor;
24
- }
25
-
26
- &.danger {
27
- background-color: $badgeDangerColor;
28
- }
29
-
30
- & + & {
31
- margin-left: 5px;
32
- }
33
- }
@@ -1,78 +0,0 @@
1
- @use 'sass:color';
2
-
3
- @import '_variables';
4
-
5
- .custom-container {
6
- .custom-container-title {
7
- font-weight: 600;
8
- margin-bottom: -0.4rem;
9
- }
10
-
11
- &.tip,
12
- &.warning,
13
- &.danger {
14
- padding: 0.1rem 1.5rem;
15
- border-left-width: 0.5rem;
16
- border-left-style: solid;
17
- margin: 1rem 0;
18
- }
19
-
20
- &.tip {
21
- background-color: #f3f5f7;
22
- border-color: $tipColor;
23
- }
24
-
25
- &.warning {
26
- background-color: color.scale($warningColor, $lightness: 90%);
27
- border-color: $warningColor;
28
- color: color.scale($warningColor, $lightness: -50%);
29
-
30
- .custom-container-title {
31
- color: color.scale($warningColor, $lightness: -25%);
32
- }
33
-
34
- a {
35
- color: $textColor;
36
- }
37
- }
38
-
39
- &.danger {
40
- background-color: color.scale($dangerColor, $lightness: 90%);
41
- border-color: $dangerColor;
42
- color: color.scale($dangerColor, $lightness: -50%);
43
-
44
- .custom-container-title {
45
- color: color.scale($dangerColor, $lightness: -25%);
46
- }
47
-
48
- a {
49
- color: $textColor;
50
- }
51
- }
52
-
53
- &.details {
54
- display: block;
55
- position: relative;
56
- border-radius: 2px;
57
- margin: 1.6em 0;
58
- padding: 1.6em;
59
- background-color: #eee;
60
-
61
- h4 {
62
- margin-top: 0;
63
- }
64
-
65
- figure,
66
- p {
67
- &:last-child {
68
- margin-bottom: 0;
69
- padding-bottom: 0;
70
- }
71
- }
72
-
73
- summary {
74
- outline: none;
75
- cursor: pointer;
76
- }
77
- }
78
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }