From 3873a49932b537db905f652c44b3782bc5783dde Mon Sep 17 00:00:00 2001 From: Aravind Putrevu Date: Mon, 20 Jan 2025 18:35:19 +0530 Subject: [PATCH 1/3] nav bar ui fix --- src/css/custom.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/css/custom.css b/src/css/custom.css index 30237809..10fbbe4d 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -303,3 +303,13 @@ 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; +} + +/* Ensure the logo remains visible */ +.navbar__logo { + visibility: visible; +} \ No newline at end of file From d5f476e48745f02534d4abdf0babbfac3abd8ed7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 13:06:08 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=8E=A8=20pnpm=20run=20lint:fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [dependabot skip] --- src/css/custom.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/custom.css b/src/css/custom.css index 10fbbe4d..d3339284 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -312,4 +312,4 @@ a[docid="docs"] > svg { /* Ensure the logo remains visible */ .navbar__logo { visibility: visible; -} \ No newline at end of file +} From a3d4349fd07ad3eea4d9ed5daccf73d6acffe15e Mon Sep 17 00:00:00 2001 From: ankitjena Date: Tue, 21 Jan 2025 12:44:29 +0530 Subject: [PATCH 3/3] remove unnecessary styles, add media query --- src/css/custom.css | 43 ++++++++++--------------------------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index d3339284..b94b469d 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -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; @@ -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%); @@ -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; + } }