Skip to content

Commit 8e26d21

Browse files
committed
Add Support button styles
These styles were originally in src/css/SupportDropdownMenu.module.css.
1 parent b792742 commit 8e26d21

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

src/css/custom.css

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,85 @@ html[data-theme="dark"] .tooltip-glossary {
251251
width: 333px !important;
252252
}
253253
}
254+
255+
/* Support button and dropdown */
256+
.supportDropdown {
257+
display: inline-block;
258+
position: relative;
259+
}
260+
261+
.supportDropBtn {
262+
align-items: center;
263+
background-color: var(--ifm-color-secondary);
264+
border: #afafaf 1px solid;
265+
border-radius: var(--ifm-badge-border-radius);
266+
color: #505050;
267+
cursor: pointer;
268+
display: flex;
269+
font-size: 14px;
270+
font-weight: 700;
271+
justify-content: space-between;
272+
min-width: 150px;
273+
padding: 6px 12px;
274+
text-align: left;
275+
z-index: 1;
276+
}
277+
278+
.supportDropdown:hover .supportDropBtn {
279+
border-radius: var(--ifm-badge-border-radius);
280+
}
281+
282+
.supportDropdownContent {
283+
background-color: #f9f9f9;
284+
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
285+
color: var(--ifm-color-emphasis-700);
286+
display: block;
287+
font-size: 14px;
288+
min-width: 265px;
289+
position: absolute;
290+
right: 0;
291+
z-index: 1;
292+
}
293+
294+
/* Support dropdown button for mobile screens. */
295+
@media (max-width: 996px) { /* Adjust breakpoint if needed. */
296+
.supportDropBtn {
297+
font-size: 15px;
298+
}
299+
.supportDropdownContent {
300+
font-size: 15px;
301+
left: 0;
302+
min-width: 320px;
303+
}
304+
}
305+
306+
.supportDropdownContent a {
307+
color: black;
308+
display: block;
309+
padding: 6px 12px;
310+
text-decoration: none;
311+
}
312+
313+
.supportDropdownContent a:hover {
314+
background-color: var(--ifm-dropdown-hover-background-color);
315+
}
316+
317+
html[data-theme="dark"] .supportDropBtn {
318+
background-color: #505050;
319+
border: #6B7280 1px solid;
320+
color: #f9f9f9;
321+
}
322+
323+
html[data-theme="dark"] .supportDropdownContent {
324+
background-color: #505050;
325+
326+
a {
327+
color: #f9f9f9;
328+
}
329+
}
330+
331+
hr {
332+
text-align: center;
333+
margin: auto;
334+
max-width: 91%;
335+
}

0 commit comments

Comments
 (0)