Skip to content

Commit 6413002

Browse files
committed
Fix layout on md screen sizes
1 parent 4bd4c90 commit 6413002

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

src/components/main.scss

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ a {
2525
display: flex;
2626
background: #fff;
2727
padding: 10px 0;
28-
max-width: 960px;
28+
max-width: map-get($breakpoints, md);
2929
margin-left: auto;
3030
margin-right: auto;
3131

@@ -158,7 +158,11 @@ a {
158158
padding: 20px;
159159

160160
@include break-at(sm) {
161-
max-width: 1000px;
161+
max-width: map-get($breakpoints, md);
162+
padding: 50px 20px 20px;
163+
}
164+
165+
@include break-at(md) {
162166
padding: 50px 0 0;
163167
}
164168
}
@@ -355,7 +359,7 @@ a {
355359
@include break-at(sm) {
356360
margin: 3% auto;
357361
flex-direction: row;
358-
max-width: 1000px;
362+
max-width: map-get($breakpoints, md);
359363
width: 100%;
360364
}
361365
}
@@ -378,7 +382,7 @@ a {
378382
left: 5px;
379383
}
380384

381-
@include break-at(sm) {
385+
@include break-at(md) {
382386
.secondary-content-header {
383387
top: -10px;
384388
left: -35px;
@@ -398,6 +402,13 @@ a {
398402
transform: rotate(1deg);
399403
}
400404

405+
@include break-at(md) {
406+
.secondary-content-header {
407+
top: -10px;
408+
right: -35px;
409+
}
410+
}
411+
401412
@include break-at(sm) {
402413
.secondary-content-blurb {
403414
margin-top: 25px;
@@ -406,11 +417,6 @@ a {
406417
.info-column {
407418
padding-left: 20px;
408419
}
409-
410-
.secondary-content-header {
411-
top: -10px;
412-
right: -35px;
413-
}
414420
}
415421
}
416422

@@ -459,7 +465,7 @@ address {
459465
display: flex;
460466
justify-content: center;
461467
width: 100%;
462-
max-width: 1000px;
468+
max-width: map-get($breakpoints, md);
463469
margin: 0 auto;
464470
flex-direction: row;
465471
}
@@ -498,7 +504,7 @@ address {
498504

499505
@include break-at(sm) {
500506
margin: 2% auto;
501-
max-width: 960px;
507+
max-width: map-get($breakpoints, md);
502508
padding: 75px 25px 25px;
503509
}
504510
}
@@ -569,6 +575,8 @@ address {
569575
font-style: oblique;
570576
font-size: 0.9rem;
571577
font-weight: normal;
578+
padding-left: 15px;
579+
padding-right: 15px;
572580
}
573581

574582
.footer h6 {

0 commit comments

Comments
 (0)