Skip to content

Commit 810b8f8

Browse files
committed
chore: set max-width for large screens and fix margins
fixes: #624 Signed-off-by: Siddarth Kumar <siddarthkay@gmail.com>
1 parent 645445c commit 810b8f8

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-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: 1920px) {
15+
> * {
16+
max-width: 1920px;
17+
width: 100%;
18+
}
19+
}
20+
1421
.d-header {
1522
height: 6rem;
1623
background-color: $white;

assets/scss/_styles_project.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,27 @@ html {
768768
scroll-behavior: smooth;
769769
}
770770

771+
// Max-width constraint for large screens to prevent layout stretch
772+
$site-max-width: 1920px;
773+
774+
@media (min-width: 1920px) {
775+
.td-navbar {
776+
> .container-fluid {
777+
max-width: $site-max-width;
778+
margin-left: auto;
779+
margin-right: auto;
780+
}
781+
}
782+
783+
.container-fluid.td-outer {
784+
> .td-main {
785+
max-width: $site-max-width;
786+
margin-left: auto;
787+
margin-right: auto;
788+
}
789+
}
790+
}
791+
771792
h1, h2, h3, h4, h5, h6 {
772793
scroll-margin-top: 1rem;
773794
}

0 commit comments

Comments
 (0)