Skip to content

Commit 02fe290

Browse files
committed
chore: set max-width for large screens and fix margins
fixes: #624 Signed-off-by: Siddarth Kumar <[email protected]>
1 parent 6097e06 commit 02fe290

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

assets/scss/_footer_project.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
margin: -12px;
1212
font-family: $font-qanelas;
1313

14+
@media (min-width: $site-max-width) {
15+
> * {
16+
max-width: $site-max-width;
17+
width: 100%;
18+
}
19+
}
20+
1421
.d-header {
1522
height: 6rem;
1623
background-color: $white;

assets/scss/_styles_project.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,25 @@ html {
784784
scroll-behavior: smooth;
785785
}
786786

787+
// Max-width constraint for large screens to prevent layout stretch
788+
@media (min-width: $site-max-width) {
789+
.td-navbar {
790+
> .container-fluid {
791+
max-width: $site-max-width;
792+
margin-left: auto;
793+
margin-right: auto;
794+
}
795+
}
796+
797+
.container-fluid.td-outer {
798+
> .td-main {
799+
max-width: $site-max-width;
800+
margin-left: auto;
801+
margin-right: auto;
802+
}
803+
}
804+
}
805+
787806
h1, h2, h3, h4, h5, h6 {
788807
scroll-margin-top: 1rem;
789808
}

assets/scss/_variables_project.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ $pagination-disabled-color: $gray-300 !default;
114114
$navbar-dark-color: rgba($white, 0.75) !default;
115115
$navbar-dark-hover-color: rgba($white, 0.35) !default;
116116

117+
// Layout
118+
119+
$site-max-width: 1920px;
120+
117121
// Footer
118122

119123
$list-inline-padding: $spacer;

0 commit comments

Comments
 (0)