Skip to content

Commit cf473ef

Browse files
committed
Increase width of main content to better fill large screens sizes
1 parent 266f87d commit cf473ef

File tree

8 files changed

+45
-33
lines changed

8 files changed

+45
-33
lines changed

assets/css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/scss/_archive.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
@include breakpoint($large) {
1111
@include suffix(3 of 12);
1212
}
13+
@include breakpoint($x-large) {
14+
@include prefix(0.5 of 12);
15+
}
1316
}
1417

1518
.archive__subtitle {

assets/scss/_footer.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
padding-left: 1em;
1212
padding-right: 1em;
1313
}
14+
@include breakpoint($x-large) {
15+
max-width: $x-large;
16+
}
1417
a {
1518
text-decoration: none;
1619
&:hover {
@@ -21,16 +24,20 @@
2124

2225
.page__footer-copyright {
2326
@include breakpoint($medium) {
24-
@include span(10 of 12);
25-
@include pre(2);
27+
@include prefix(2 of 12);
28+
}
29+
@include breakpoint($x-large) {
30+
@include prefix(2.5 of 12);
2631
}
2732
font-size: 14px;
2833
}
2934

3035
.page__footer-follow {
3136
@include breakpoint($medium) {
32-
@include span(10 of 12);
33-
@include pre(2);
37+
@include prefix(2 of 12);
38+
}
39+
@include breakpoint($x-large) {
40+
@include prefix(2.5 of 12);
3441
}
3542
ul {
3643
margin: 0;

assets/scss/_masthead.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
padding-left: 1em;
1414
padding-right: 1em;
1515
}
16+
@include breakpoint($x-large) {
17+
max-width: $x-large;
18+
}
1619
a {
1720
text-decoration: none;
1821
}
@@ -21,16 +24,20 @@
2124
/* Site name */
2225
.site-name {
2326
@include breakpoint($medium) {
24-
@include span(10 of 12);
25-
@include pre(2);
27+
@include prefix(2 of 12);
28+
}
29+
@include breakpoint($x-large) {
30+
@include prefix(2.5 of 12);
2631
}
2732
font-size: 24px;
2833
}
2934

3035
.masthead__menu {
3136
@include breakpoint($medium) {
32-
@include span(10 of 12);
33-
@include pre(2);
37+
@include prefix(2 of 12);
38+
}
39+
@include breakpoint($x-large) {
40+
@include prefix(2.5 of 12);
3441
}
3542
margin-bottom: 1em;
3643
ul {

assets/scss/_page.scss

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
padding-left: 1em;
1414
padding-right: 1em;
1515
}
16+
@include breakpoint($x-large) {
17+
max-width: $x-large;
18+
}
1619
}
1720

1821
.page {
@@ -22,6 +25,9 @@
2225
@include breakpoint($large) {
2326
padding-right: $right-sidebar-width;
2427
}
28+
@include breakpoint($x-large) {
29+
@include prefix(0.5 of 12);
30+
}
2531
}
2632

2733
.page__title {
@@ -39,26 +45,6 @@
3945
position: relative;
4046
margin-bottom: 2em;
4147
@include clearfix;
42-
&:after {
43-
content: "";
44-
display: block;
45-
position: absolute;
46-
bottom: 0;
47-
left: 8%;
48-
width: 0;
49-
height: 0;
50-
border: 10px solid transparent;
51-
border-bottom-color: $body-color;
52-
@include breakpoint($small) {
53-
left: 25%;
54-
}
55-
@include breakpoint($large) {
56-
border-width: 20px;
57-
}
58-
@include breakpoint($x-large) {
59-
left: 33.333333333%;
60-
}
61-
}
6248
}
6349

6450
.page__hero-image {
@@ -156,8 +142,11 @@
156142
padding-top: 1em;
157143
border-top: 1px solid $border-color;
158144
@include breakpoint($medium) {
159-
@include span(10);
160-
@include pre(2);
145+
@include span(10 of 12);
146+
@include pre(2 of 12);
147+
}
148+
@include breakpoint($x-large) {
149+
@include pre(2.5 of 12);
161150
}
162151
li {
163152
margin-bottom: 0;

assets/scss/_sidebar.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
@include span(2 of 12);
1010
@include suffix(0.25 of 12);
1111
}
12+
@include breakpoint($x-large) {
13+
padding-right: 0;
14+
}
1215
h2, h3, h4, h5, h6 {
1316
font-family: $sans-serif-narrow;
1417
}

assets/scss/_toc.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
@include breakpoint($large) {
1313
position: absolute;
1414
top: 0;
15-
right: calc(50% - 512px + 1em); // 50% - 1/2 of wrapper's max-width + wrapper padding
15+
right: calc(50% - (0.5 * #{$large}) + 1em); // 50% - 1/2 of wrapper's max-width + wrapper padding
1616
width: $right-sidebar-width;
1717
padding-left: 2em;
1818
}
19+
@include breakpoint($x-large) {
20+
right: calc(50% - (0.5 * #{$x-large}) + 1em); // 50% - 1/2 of wrapper's max-width + wrapper padding
21+
}
1922
}
2023

2124
.toc__title {

assets/scss/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ $small : 600px;
7474
$medium : 768px;
7575
$medium-wide : 900px;
7676
$large : 1024px;
77-
$x-large : 1440px;
77+
$x-large : 1280px;
7878

7979

8080
/*

0 commit comments

Comments
 (0)