Skip to content

Commit b1134b0

Browse files
authored
Merge pull request #911 from siddarthkay/fix-max-width-on-large-screens
chore: set max-width for large screens and fix margins
2 parents 4c4e976 + b057c36 commit b1134b0

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

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
@@ -790,6 +790,25 @@ html {
790790
scroll-behavior: smooth;
791791
}
792792

793+
// Max-width constraint for large screens to prevent layout stretch
794+
@media (min-width: $site-max-width) {
795+
.td-navbar {
796+
> .container-fluid {
797+
max-width: $site-max-width;
798+
margin-left: auto;
799+
margin-right: auto;
800+
}
801+
}
802+
803+
.container-fluid.td-outer {
804+
> .td-main {
805+
max-width: $site-max-width;
806+
margin-left: auto;
807+
margin-right: auto;
808+
}
809+
}
810+
}
811+
793812
h1, h2, h3, h4, h5, h6 {
794813
scroll-margin-top: 1rem;
795814
}

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)