Skip to content

Commit a3d4349

Browse files
committed
remove unnecessary styles, add media query
1 parent d5f476e commit a3d4349

File tree

1 file changed

+10
-33
lines changed

1 file changed

+10
-33
lines changed

src/css/custom.css

+10-33
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,6 @@ a[docid="docs"] > svg {
9090
align-items: center;
9191
}
9292

93-
@media screen and (max-width: 480px) {
94-
a.navbar__item.navbar__link[docid="docs"] {
95-
display: none !important;
96-
}
97-
}
98-
99-
@media screen and (max-width: 480px) {
100-
a.navbar__item.navbar__link[href="https://coderabbit.ai/blog"]
101-
{
102-
display: none;
103-
}
104-
}
105-
10693
[data-theme="light"] img[src$="#gh-dark-mode-only"],
10794
[data-theme="dark"] img[src$="#gh-light-mode-only"] {
10895
display: none;
@@ -157,19 +144,6 @@ a[docid="docs"] > svg {
157144
align-items: center;
158145
}
159146

160-
@media screen and (max-width: 480px) {
161-
a.navbar__item.navbar__link[docid="docs"] {
162-
display: none !important;
163-
}
164-
}
165-
166-
@media screen and (max-width: 480px) {
167-
a.navbar__item.navbar__link[href="https://coderabbit.ai/blog"]
168-
{
169-
display: none;
170-
}
171-
}
172-
173147
/* Light mode Discord icon */
174148
/* .header-discord-link:before {
175149
-webkit-filter: invert(100%);
@@ -303,13 +277,16 @@ a[docid="docs"] > svg {
303277
.center-image {
304278
text-align: center;
305279
}
306-
/* Hide "docs" text that overlays the logo */
307-
.navbar__items a[href="/"] {
308-
font-size: 0;
309-
visibility: hidden;
280+
281+
@media screen and (max-width: 480px) {
282+
a.navbar__item.navbar__link[href="/"] {
283+
display: none;
284+
}
310285
}
311286

312-
/* Ensure the logo remains visible */
313-
.navbar__logo {
314-
visibility: visible;
287+
@media screen and (max-width: 480px) {
288+
a.navbar__item.navbar__link[href="https://coderabbit.ai/blog"]
289+
{
290+
display: none;
291+
}
315292
}

0 commit comments

Comments
 (0)