Skip to content

Commit 360659f

Browse files
committed
feat: refactor block margins
1 parent ddd237b commit 360659f

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎sass/_body.scss‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,13 @@ body {
6262
flex-direction: column;
6363
justify-content: space-between;
6464

65+
section.main {
66+
margin-block: 2
67+
}
68+
6569
div.content {
6670
max-width: $page-width;
6771
margin-inline: auto;
68-
padding: 0.75em 2em;
72+
padding-inline: 2em;
6973
}
7074
}

‎sass/_footer.scss‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020

2121
footer {
2222
clear: bottom;
23+
margin-top: 36px;
24+
padding-block: 12px 24px;
2325

2426
div#footer-box {
2527
display: flex;
2628
justify-content: space-between;
2729
flex-wrap: wrap;
28-
margin-bottom: 24px;
2930
gap: 18px;
3031

3132
h1 {
@@ -34,7 +35,7 @@ footer {
3435

3536
div#copyright {
3637
width: auto;
37-
38+
3839
img.apollo-logo {
3940
max-height: 40px;
4041
margin-top: 20px;

‎sass/_header.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525

2626
header {
27+
margin-block: 0.5em;
2728
nav, div.links {
2829
justify-content: space-between;
2930
display: flex;

‎templates/base.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</div>
4343
</header>
4444

45-
<section class="section">
45+
<section class="main">
4646
<div class="content">
4747
{% block content %} {% endblock content %}
4848
</div>

0 commit comments

Comments
 (0)