Skip to content

Commit 9dad5a5

Browse files
added responsiveness
1 parent 3c2ee9e commit 9dad5a5

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

src/css/custom.css

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,16 +1173,36 @@ html {
11731173
text-decoration: none;
11741174
}
11751175
/* Move navbar right items to absolute right corner */
1176-
.navbar__items--right {
1177-
margin-right: 0 !important;
1178-
padding-right: 0 !important;
1176+
.navbar .navbar__inner {
1177+
display: flex !important;
1178+
justify-content: space-between !important;
1179+
align-items: center !important;
1180+
width: 100% !important;
1181+
max-width: none !important;
11791182
}
11801183

1181-
.navbar__inner {
1182-
padding-right: 0 !important;
1183-
margin-right: 0 !important;
1184+
.navbar .navbar__items {
1185+
display: flex !important;
1186+
align-items: center !important;
11841187
}
11851188

1189+
.navbar .navbar__items--right {
1190+
margin-left: auto !important;
1191+
display: flex !important;
1192+
align-items: center !important;
1193+
gap: 0.5rem !important;
1194+
flex-shrink: 0 !important;
1195+
}
1196+
1197+
/* Ensure the navbar container takes full width */
11861198
.navbar {
1187-
padding-right: 0 !important;
1199+
padding-left: var(--ifm-navbar-padding-horizontal) !important;
1200+
padding-right: var(--ifm-navbar-padding-horizontal) !important;
1201+
}
1202+
1203+
.navbar > .container,
1204+
.navbar > .container-fluid {
1205+
max-width: none !important;
1206+
width: 100% !important;
1207+
padding: 0 !important;
11881208
}

0 commit comments

Comments
 (0)