Skip to content

Commit 11b5a6b

Browse files
authored
Merge pull request #3219 from Blargian/fix_menu_styling
Improve menu styling
2 parents 6c128bd + 6e2f043 commit 11b5a6b

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

src/components/DocsCategoryDropdown/styles.module.css

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@
134134
color: var(--ifm-toc-link-color);
135135
}
136136

137-
[data-theme="dark"] .docsNavMenuDescription {
138-
color: #C0C0C0;
139-
}
140-
141137
.docsNavMenuDivider {
142138
border-top: 1px solid var(--click-color-stroke);
143139
width: 100%;
@@ -156,22 +152,32 @@
156152
}
157153

158154
.docsNavMenuItem {
159-
padding: 8px;
155+
margin: 3px;
156+
padding: 5px;
160157
max-width: 100%;
161158
word-wrap: break-word;
162159
word-break: break-word;
163160
white-space: normal;
164161
overflow-wrap: break-word;
165-
border-radius: 4px;
162+
border-radius: 10px;
163+
}
164+
165+
[data-theme="dark"] .docsNavMenuItem:hover {
166+
background-color: #272725;
166167
}
167168

168169
.docsNavHovered {
169-
background-color: rgb(245, 245, 245);
170170
cursor: pointer;
171171
}
172172

173173
[data-theme="dark"] .docsNavHovered {
174174
background-color: #1F1F1C;
175+
color: yellow;
176+
}
177+
178+
[data-theme="light"] .docsNavHovered {
179+
background-color: #f5f5f5;
180+
color: yellow;
175181
}
176182

177183
.docsNavItemTitle {
@@ -182,22 +188,19 @@
182188

183189
[data-theme="dark"] .docsNavItemTitle {
184190
font-size: 0.875rem;
185-
color: #FCFF74;
191+
color: white;
192+
}
193+
194+
[data-theme="dark"] .docsNavItemTitle:hover {
195+
font-size: 0.875rem;
196+
color: yellow;
186197
}
187198

188199
.docsNavItemDescription {
189200
color: var(--ifm-toc-link-color);
190201
font-size: 0.75rem;
191202
}
192203

193-
[data-theme="dark"] .docsNavItemDescription {
194-
color: #C0C0C0;
195-
}
196-
197-
[data-theme="dark"] .docsNavMenuItem:hover .docsNavItemDescription {
198-
color: white;
199-
}
200-
201204
@media screen and (max-width: 1100px) {
202205
.docsNavDropdownContainer {
203206
padding: 0px;

0 commit comments

Comments
 (0)