Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f912e24

Browse files
karan925tyaga001
authored andcommittedOct 16, 2024
Update logo size and padding for smaller screens, center Discord link, and hide certain navbar links on mobile
1 parent 97213cc commit f912e24

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed
 

‎src/css/custom.css

+23-2
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,33 @@ a[docid="docs"] > svg {
115115
@media (max-width: 768px) {
116116
/* Reduce the logo size for smaller screens */
117117
.navbar__logo img {
118-
height: 16px; /* Adjust the height for smaller screens */
118+
height: 32px;
119+
align-items: center;
119120
}
120121

121122
/* Reduce the padding around the logo for smaller screens */
122123
.navbar__logo {
123-
padding: 6px; /* Adjust the padding for smaller screens */
124+
padding: 2px; /* Adjust the padding for smaller screens */
125+
}
126+
}
127+
128+
/* Center the Discord link within its parent */
129+
.navbar__items.navbar__items--right {
130+
display: flex;
131+
justify-content: center;
132+
align-items: center;
133+
}
134+
135+
@media screen and (max-width: 480px) {
136+
a.navbar__item.navbar__link[docid="docs"] {
137+
display: none !important;
138+
}
139+
}
140+
141+
@media screen and (max-width: 480px) {
142+
a.navbar__item.navbar__link[href="https://blog.coderabbit.ai/blog"]
143+
{
144+
display: none;
124145
}
125146
}
126147

0 commit comments

Comments
 (0)
Please sign in to comment.