Skip to content

Commit

Permalink
improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Blargian committed Feb 4, 2025
1 parent b43e738 commit d9d80ae
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
22 changes: 17 additions & 5 deletions src/components/DocsCategoryDropdown/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,22 @@
&:hover,
&.hover {
background-color: var(--ch-nav-v2-link-hover-bg);
color: var(--ch-nav-v2-link-hover-color) !important;
text-decoration: none
text-decoration: none;
color: #FAFF69;
}
}

.docsNavDropdownContainer::after {
content: "";
position: absolute;
left: 0;
bottom: -30px; /* Adjust this for the hover area extension */
width: 100%;
height: 30px; /* Must match the bottom value */
pointer-events: auto;
}


.docsNavDropdownToolbarLink, .docsNavDropdownToolbarTopLevelLink {
font-weight: bold;
font-size: 0.875rem;
Expand All @@ -42,7 +53,7 @@
}

[data-theme="dark"] .docsNavDropdownToolbarLink:hover, [data-theme="dark"] .docsNavDropdownToolbarTopLevelLink:hover {
color: white;
color: #FAFF69;
}

.docsNavSelected {
Expand All @@ -52,14 +63,14 @@
}

[data-theme="dark"] .docsNavSelected {
color: white;
color: #FAFF69;
text-decoration: underline;
text-underline-offset: 4px;
}

.docsNavDropdownMenu {
position: absolute;
top: 100%;
top: calc(100% + 30px);
left: 0;
z-index: 9999 !important;
min-width: 300px;
Expand All @@ -71,6 +82,7 @@
border-radius: 10px;
opacity: 1;
transition: opacity 0.3s ease-in-out;
transform: translateY(30px);
}

@media (max-width: 768px) {
Expand Down
2 changes: 1 addition & 1 deletion src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ input::-ms-input-placeholder { /* Microsoft Edge */
}

/* Fixes for the long menu bar */
@media (max-width: 1103px) {
@media (max-width: 1180px) {

.docsNavDropdownContainer_cADf a[href="/docs/knowledgebase"]::before {
content: "KB";
Expand Down

0 comments on commit d9d80ae

Please sign in to comment.