Skip to content

Update CSS for navbar item visibility and font size #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove unnecessary styles, add media query
  • Loading branch information
ankitjena committed Jan 21, 2025
commit a3d4349fd07ad3eea4d9ed5daccf73d6acffe15e
43 changes: 10 additions & 33 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,6 @@ a[docid="docs"] > svg {
align-items: center;
}

@media screen and (max-width: 480px) {
a.navbar__item.navbar__link[docid="docs"] {
display: none !important;
}
}

@media screen and (max-width: 480px) {
a.navbar__item.navbar__link[href="https://coderabbit.ai/blog"]
{
display: none;
}
}

[data-theme="light"] img[src$="#gh-dark-mode-only"],
[data-theme="dark"] img[src$="#gh-light-mode-only"] {
display: none;
Expand Down Expand Up @@ -157,19 +144,6 @@ a[docid="docs"] > svg {
align-items: center;
}

@media screen and (max-width: 480px) {
a.navbar__item.navbar__link[docid="docs"] {
display: none !important;
}
}

@media screen and (max-width: 480px) {
a.navbar__item.navbar__link[href="https://coderabbit.ai/blog"]
{
display: none;
}
}

/* Light mode Discord icon */
/* .header-discord-link:before {
-webkit-filter: invert(100%);
Expand Down Expand Up @@ -303,13 +277,16 @@ a[docid="docs"] > svg {
.center-image {
text-align: center;
}
/* Hide "docs" text that overlays the logo */
.navbar__items a[href="/"] {
font-size: 0;
visibility: hidden;

@media screen and (max-width: 480px) {
a.navbar__item.navbar__link[href="/"] {
display: none;
}
}

/* Ensure the logo remains visible */
.navbar__logo {
visibility: visible;
@media screen and (max-width: 480px) {
a.navbar__item.navbar__link[href="https://coderabbit.ai/blog"]
{
display: none;
}
}
Loading