Skip to content

Commit 626625b

Browse files
committed
Add support for dark mode
1 parent 3435a6f commit 626625b

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/css/SupportDropdownMenu.module.css

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
font-size: 14px;
1515
font-weight: 700;
1616
justify-content: space-between;
17-
min-width: 140px;
17+
min-width: 150px;
1818
padding: 6px 12px;
1919
text-align: left;
2020
z-index: 1;
@@ -30,7 +30,7 @@
3030
color: var(--ifm-color-emphasis-700);
3131
display: block;
3232
font-size: 14px;
33-
min-width: 230px;
33+
min-width: 265px;
3434
position: absolute;
3535
right: 0;
3636
z-index: 1;
@@ -58,3 +58,17 @@
5858
.supportDropdownContent a:hover {
5959
background-color: var(--ifm-dropdown-hover-background-color);
6060
}
61+
62+
html[data-theme="dark"] .supportDropBtn {
63+
background-color: #505050;
64+
border: #6B7280 1px solid;
65+
color: #f9f9f9;
66+
}
67+
68+
html[data-theme="dark"] .supportDropdownContent {
69+
background-color: #505050;
70+
71+
a {
72+
color: #f9f9f9;
73+
}
74+
}

0 commit comments

Comments
 (0)