Skip to content

Commit f19a403

Browse files
authored
Merge pull request creativecommons#365 from creativecommons/fix_padding
Fix padding for single post page.
2 parents 6432cad + 897ef5e commit f19a403

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

webpack/sass/main.scss

+18-5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ code {
1414
border-radius: 0.25rem;
1515
}
1616

17+
.content {
18+
@extend .body-big;
19+
20+
line-height: 1.6875;
21+
}
22+
1723
// Navbar
1824
.navbar-item {
1925
&.has-dropdown {
@@ -223,8 +229,18 @@ code {
223229

224230
// Single Post page
225231
.single-post {
226-
.container {
227-
@extend .padding-horizontal-xxl;
232+
@include from($desktop) {
233+
.container {
234+
padding-left: 6rem;
235+
padding-right: 6rem;
236+
}
237+
}
238+
239+
@include until($desktop) {
240+
.container {
241+
padding-left: 1.5rem;
242+
padding-right: 1.5rem;
243+
}
228244
}
229245

230246
.single-post-header {
@@ -453,11 +469,8 @@ code {
453469
}
454470

455471
.content {
456-
@extend .body-big;
457472
@extend .padding-bottom-xxl;
458473
@extend .padding-top-xl;
459-
460-
line-height: 1.6875;
461474
}
462475
}
463476
}

0 commit comments

Comments
 (0)