Skip to content

Commit 587a280

Browse files
authored
Fix/change width related css for md content (#209)
* fix: adjust max-width for responsive design in CSS files * fix: update max-width for responsive design in navbar and CSS
1 parent f665b48 commit 587a280

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/stylesheets/extra.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,6 +1501,6 @@ nav.md-grid {
15011501
/* 2xl (≥1536px) */
15021502
@media (min-width: 1536px) {
15031503
.md-main__inner.md-grid {
1504-
max-width: 1736px;
1504+
max-width: 70rem;
15051505
}
15061506
}

overrides/css/output.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ legend {
457457
padding: 0;
458458
}
459459

460+
ol,
460461
ul,
461462
menu {
462463
list-style: none;
@@ -837,6 +838,10 @@ video {
837838
width: 100%;
838839
}
839840

841+
.tw-max-w-\[70rem\] {
842+
max-width: 70rem;
843+
}
844+
840845
.tw-flex-1 {
841846
flex: 1 1 0%;
842847
}

overrides/partials/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<!-- Header -->
3030
<header class="{{ class }}" data-md-component="header">
3131
<nav
32-
class="tw-container tw-mx-auto tw-px-4 sm:tw-px-6 lg:tw-px-8 xl:tw-px-10 md-header__inner tw-items-center lg:tw-justify-between"
32+
class="tw-container tw-mx-auto tw-px-4 sm:tw-px-6 lg:tw-px-8 xl:tw-px-10 md-header__inner tw-items-center lg:tw-justify-between tw-max-w-[70rem]"
3333
aria-label="{{ lang.t('header') }}"
3434
>
3535
<!-- Left section (Logo + Docs Title) -->

0 commit comments

Comments
 (0)