@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.
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.js +1 -1
  35. package/lib/client/composables/useSidebarItems.d.ts +36 -0
  36. package/lib/client/composables/useSidebarItems.js +118 -0
  37. package/lib/{composables → client/composables}/useThemeData.d.ts +2 -2
  38. package/lib/{composables → client/composables}/useThemeData.js +1 -1
  39. package/lib/client/config.d.ts +3 -0
  40. package/lib/client/config.js +44 -0
  41. package/lib/client/index.d.ts +3 -0
  42. package/lib/client/index.js +3 -0
  43. package/lib/client/layouts/Layout.vue +134 -0
  44. package/lib/client/layouts/NotFound.vue +27 -0
  45. package/lib/{styles/_wrapper.scss → client/styles/_mixins.scss} +7 -2
  46. package/lib/client/styles/_variables.scss +6 -0
  47. package/lib/{styles → client/styles}/arrow.scss +4 -6
  48. package/lib/client/styles/badge.scss +34 -0
  49. package/lib/{styles → client/styles}/code-group.scss +9 -2
  50. package/lib/{styles → client/styles}/code.scss +35 -49
  51. package/lib/client/styles/custom-container.scss +140 -0
  52. package/lib/{styles → client/styles}/home.scss +32 -24
  53. package/lib/{styles → client/styles}/index.scss +4 -4
  54. package/lib/client/styles/layout.scss +199 -0
  55. package/lib/{styles/dropdown.scss → client/styles/navbar-dropdown.scss} +36 -50
  56. package/lib/client/styles/navbar.scss +197 -0
  57. package/lib/client/styles/normalize.scss +200 -0
  58. package/lib/{styles → client/styles}/page.scss +24 -8
  59. package/lib/client/styles/sidebar.scss +134 -0
  60. package/lib/client/styles/transitions.scss +22 -0
  61. package/lib/client/styles/vars-dark.scss +68 -0
  62. package/lib/client/styles/vars.scss +149 -0
  63. package/lib/client/utils/index.d.ts +3 -0
  64. package/lib/client/utils/index.js +3 -0
  65. package/lib/client/utils/isActiveSidebarItem.d.ts +3 -0
  66. package/lib/client/utils/isActiveSidebarItem.js +20 -0
  67. package/lib/{utils → client/utils}/resolveEditLink.d.ts +2 -2
  68. package/lib/{utils → client/utils}/resolveEditLink.js +15 -9
  69. package/lib/client/utils/resolveRepoType.d.ts +2 -0
  70. package/lib/{utils → client/utils}/resolveRepoType.js +3 -1
  71. package/lib/node/defaultTheme.d.ts +10 -0
  72. package/lib/node/defaultTheme.js +117 -0
  73. package/lib/node/index.d.ts +5 -5
  74. package/lib/node/index.js +5 -17
  75. package/lib/node/utils/assignDefaultLocaleOptions.d.ts +7 -0
  76. package/lib/node/{assignDefaultLocaleOptions.js → utils/assignDefaultLocaleOptions.js} +13 -13
  77. package/lib/node/utils/index.d.ts +2 -0
  78. package/lib/node/utils/index.js +2 -0
  79. package/lib/node/utils/resolveContainerPluginOptions.d.ts +8 -0
  80. package/lib/node/utils/resolveContainerPluginOptions.js +17 -0
  81. package/lib/shared/index.d.ts +3 -0
  82. package/lib/shared/index.js +3 -0
  83. package/lib/shared/nav.d.ts +42 -0
  84. package/lib/shared/nav.js +1 -0
  85. package/lib/{types → shared}/options.d.ts +51 -13
  86. package/lib/shared/options.js +1 -0
  87. package/lib/{types → shared}/page.d.ts +15 -6
  88. package/lib/shared/page.js +1 -0
  89. package/package.json +49 -29
  90. package/templates/build.html +33 -0
  91. package/CHANGELOG.md +0 -376
  92. package/lib/clientAppEnhance.d.ts +0 -3
  93. package/lib/clientAppEnhance.js +0 -30
  94. package/lib/clientAppSetup.d.ts +0 -2
  95. package/lib/clientAppSetup.js +0 -11
  96. package/lib/components/DropdownLink.vue +0 -141
  97. package/lib/components/DropdownTransition.vue +0 -34
  98. package/lib/components/Home.vue +0 -133
  99. package/lib/components/NavLink.vue +0 -115
  100. package/lib/components/Navbar.vue +0 -114
  101. package/lib/components/Sidebar.vue +0 -38
  102. package/lib/components/SidebarChild.d.ts +0 -6
  103. package/lib/components/SidebarChild.js +0 -91
  104. package/lib/components/ToggleSidebarButton.vue +0 -27
  105. package/lib/components/global/Badge.vue +0 -37
  106. package/lib/components/global/CodeGroup.d.ts +0 -5
  107. package/lib/components/global/CodeGroup.js +0 -52
  108. package/lib/components/global/CodeGroupItem.vue +0 -25
  109. package/lib/components/global/OutboundLink.vue +0 -30
  110. package/lib/composables/index.d.ts +0 -5
  111. package/lib/composables/index.js +0 -5
  112. package/lib/composables/useSidebarItems.d.ts +0 -31
  113. package/lib/composables/useSidebarItems.js +0 -114
  114. package/lib/index.d.ts +0 -6
  115. package/lib/index.js +0 -67
  116. package/lib/layouts/404.vue +0 -38
  117. package/lib/layouts/Layout.vue +0 -152
  118. package/lib/node/assignDefaultLocaleOptions.d.ts +0 -5
  119. package/lib/node/resolveActiveHeaderLinksPluginOptions.d.ts +0 -6
  120. package/lib/node/resolveActiveHeaderLinksPluginOptions.js +0 -16
  121. package/lib/node/resolveContainerPluginOptions.d.ts +0 -26
  122. package/lib/node/resolveContainerPluginOptions.js +0 -79
  123. package/lib/node/resolveGitPluginOptions.d.ts +0 -6
  124. package/lib/node/resolveGitPluginOptions.js +0 -22
  125. package/lib/node/resolveMediumZoomPluginOptions.d.ts +0 -6
  126. package/lib/node/resolveMediumZoomPluginOptions.js +0 -17
  127. package/lib/styles/_normalize.scss +0 -148
  128. package/lib/styles/_variables.scss +0 -34
  129. package/lib/styles/badge.scss +0 -33
  130. package/lib/styles/custom-container.scss +0 -78
  131. package/lib/styles/layout.scss +0 -194
  132. package/lib/styles/navbar.scss +0 -141
  133. package/lib/styles/plugins.scss +0 -18
  134. package/lib/styles/sidebar.scss +0 -152
  135. package/lib/styles/sr-only.scss +0 -12
  136. package/lib/styles/transitions.scss +0 -13
  137. package/lib/types/index.d.ts +0 -3
  138. package/lib/types/index.js +0 -15
  139. package/lib/types/nav.d.ts +0 -44
  140. package/lib/types/nav.js +0 -2
  141. package/lib/types/options.js +0 -2
  142. package/lib/types/page.js +0 -2
  143. package/lib/utils/index.d.ts +0 -2
  144. package/lib/utils/index.js +0 -2
  145. package/lib/utils/resolveRepoType.d.ts +0 -2
  146. /package/lib/{composables → client/composables}/useScrollPromise.d.ts +0 -0
  147. /package/lib/{shim.d.ts → client/shim.d.ts} +0 -0
  148. /package/lib/{styles → client/styles}/toc.scss +0 -0
@@ -1,10 +1,8 @@
1
- @use 'sass:color';
2
-
3
1
  @import '_variables';
4
2
 
5
3
  .home {
6
- padding: $navbarHeight 2rem 0;
7
- max-width: $homePageWidth;
4
+ padding: var(--navbar-height) 2rem 0;
5
+ max-width: var(--homepage-width);
8
6
  margin: 0px auto;
9
7
  display: block;
10
8
 
@@ -28,11 +26,18 @@
28
26
  margin: 1.8rem auto;
29
27
  }
30
28
 
29
+ .actions {
30
+ display: flex;
31
+ flex-wrap: wrap;
32
+ gap: 1rem;
33
+ justify-content: center;
34
+ }
35
+
31
36
  .description {
32
37
  max-width: 35rem;
33
38
  font-size: 1.6rem;
34
39
  line-height: 1.3;
35
- color: color.scale($textColor, $lightness: 40%);
40
+ color: var(--c-text-lightest);
36
41
  }
37
42
 
38
43
  .action-button {
@@ -42,36 +47,33 @@
42
47
  border-width: 2px;
43
48
  border-style: solid;
44
49
  border-radius: 4px;
45
- transition: background-color 0.1s ease;
50
+ transition: background-color var(--t-color);
46
51
  box-sizing: border-box;
47
52
 
48
- &:not(:first-child) {
49
- margin-left: 1.5rem;
50
- }
51
-
52
53
  &.primary {
53
- color: #fff;
54
- background-color: $accentColor;
55
- border-color: $accentColor;
54
+ color: var(--c-bg);
55
+ background-color: var(--c-brand);
56
+ border-color: var(--c-brand);
56
57
  &:hover {
57
- background-color: color.scale($accentColor, $lightness: 10%);
58
+ background-color: var(--c-brand-light);
58
59
  }
59
60
  }
60
61
 
61
62
  &.secondary {
62
- color: $accentColor;
63
- background-color: #fff;
64
- border-color: $accentColor;
63
+ color: var(--c-brand);
64
+ background-color: var(--c-bg);
65
+ border-color: var(--c-brand);
65
66
  &:hover {
66
- color: #fff;
67
- background-color: color.scale($accentColor, $lightness: 10%);
67
+ color: var(--c-bg);
68
+ background-color: var(--c-brand-light);
68
69
  }
69
70
  }
70
71
  }
71
72
  }
72
73
 
73
74
  .features {
74
- border-top: 1px solid $borderColor;
75
+ border-top: 1px solid var(--c-border);
76
+ transition: border-color var(--t-color);
75
77
  padding: 1.2rem 0;
76
78
  margin-top: 2.5rem;
77
79
  display: flex;
@@ -91,19 +93,25 @@
91
93
  font-weight: 500;
92
94
  border-bottom: none;
93
95
  padding-bottom: 0;
94
- color: color.scale($textColor, $lightness: 10%);
96
+ color: var(--c-text-light);
95
97
  }
96
98
 
97
99
  p {
98
- color: color.scale($textColor, $lightness: 25%);
100
+ color: var(--c-text-lighter);
99
101
  }
100
102
  }
101
103
 
104
+ .theme-default-content {
105
+ padding: 0;
106
+ margin: 0;
107
+ }
108
+
102
109
  .footer {
103
110
  padding: 2.5rem;
104
- border-top: 1px solid $borderColor;
111
+ border-top: 1px solid var(--c-border);
105
112
  text-align: center;
106
- color: color.scale($textColor, $lightness: 25%);
113
+ color: var(--c-text-lighter);
114
+ transition: border-color var(--t-color);
107
115
  }
108
116
  }
109
117
 
@@ -1,18 +1,18 @@
1
- @use '_normalize';
1
+ @use 'vars';
2
+ @use 'vars-dark';
3
+ @use 'normalize';
2
4
 
3
5
  @use 'arrow';
4
6
  @use 'badge';
5
7
  @use 'code';
6
8
  @use 'code-group';
7
9
  @use 'custom-container';
8
- @use 'dropdown';
9
10
  @use 'home';
10
11
  @use 'layout';
11
12
  @use 'navbar';
13
+ @use 'navbar-dropdown';
12
14
  @use 'page';
13
- @use 'plugins';
14
15
  @use 'sidebar';
15
- @use 'sr-only';
16
16
  @use 'toc';
17
17
  @use 'transitions';
18
18
 
@@ -0,0 +1,199 @@
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
+ .theme-container.no-sidebar {
111
+ .sidebar {
112
+ display: none;
113
+
114
+ @media (max-width: $MQMobile) {
115
+ display: block;
116
+ }
117
+ }
118
+
119
+ .page {
120
+ padding-left: 0;
121
+ }
122
+ }
123
+
124
+ .theme-default-content {
125
+ a:hover {
126
+ text-decoration: underline;
127
+ }
128
+
129
+ img {
130
+ max-width: 100%;
131
+ }
132
+
133
+ h1,
134
+ h2,
135
+ h3,
136
+ h4,
137
+ h5,
138
+ h6 {
139
+ margin-top: calc(0.5rem - var(--navbar-height));
140
+ padding-top: calc(1rem + var(--navbar-height));
141
+ margin-bottom: 0;
142
+
143
+ &:first-child {
144
+ margin-bottom: 1rem;
145
+
146
+ + p,
147
+ + pre,
148
+ + .custom-container {
149
+ margin-top: 2rem;
150
+ }
151
+ }
152
+ }
153
+ }
154
+
155
+ // narrow desktop / iPad
156
+ @media (max-width: $MQNarrow) {
157
+ .sidebar {
158
+ font-size: 15px;
159
+ width: var(--sidebar-width-mobile);
160
+ }
161
+
162
+ .page {
163
+ padding-left: var(--sidebar-width-mobile);
164
+ }
165
+ }
166
+
167
+ // wide mobile
168
+ @media (max-width: $MQMobile) {
169
+ .sidebar {
170
+ top: 0;
171
+ padding-top: var(--navbar-height);
172
+ transform: translateX(-100%);
173
+ }
174
+
175
+ .page {
176
+ padding-left: 0;
177
+ }
178
+
179
+ .theme-container {
180
+ &.sidebar-open {
181
+ .sidebar {
182
+ transform: translateX(0);
183
+ }
184
+ }
185
+
186
+ &.no-navbar {
187
+ .sidebar {
188
+ padding-top: 0;
189
+ }
190
+ }
191
+ }
192
+ }
193
+
194
+ // narrow mobile
195
+ @media (max-width: $MQMobileNarrow) {
196
+ h1 {
197
+ font-size: 1.9rem;
198
+ }
199
+ }
@@ -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: $textColor;
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
- .mobile-dropdown-title {
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
- font-size inherit {
35
- &:hover {
36
- color: $accentColor;
37
- }
34
+ font-size: inherit;
35
+ &:hover {
36
+ color: var(--c-text-accent);
38
37
  }
39
38
  }
40
39
 
41
- .nav-dropdown {
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 #eee;
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: $accentColor;
84
+ color: var(--c-text-accent);
86
85
  }
87
86
 
88
87
  &.router-link-active {
89
- color: $accentColor;
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 $accentColor;
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
- @media (max-width: $MQMobile) {
115
- .dropdown-wrapper {
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
- .mobile-dropdown-title {
121
+ .navbar-dropdown-title-mobile {
125
122
  display: block;
126
123
  }
127
124
 
128
- .nav-dropdown {
129
- transition: height 0.1s ease-out;
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
- @media (min-width: $MQMobile) {
156
- .dropdown-wrapper {
150
+ &:not(.mobile) {
157
151
  height: 1.8rem;
158
152
 
159
- &:hover .nav-dropdown,
160
- &.open .nav-dropdown {
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
- .nav-dropdown {
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: #fff;
173
+ background-color: var(--c-bg-navbar);
180
174
  padding: 0.6rem 0;
181
- border: 1px solid #ddd;
182
- border-bottom-color: #ccc;
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
- }