Increase width of main content to better fill large screens sizes

This commit is contained in:
Michael Rose 2016-03-17 22:56:01 -04:00
parent 266f87d5ab
commit cf473ef12f
8 changed files with 45 additions and 33 deletions

File diff suppressed because one or more lines are too long

View file

@ -10,6 +10,9 @@
@include breakpoint($large) { @include breakpoint($large) {
@include suffix(3 of 12); @include suffix(3 of 12);
} }
@include breakpoint($x-large) {
@include prefix(0.5 of 12);
}
} }
.archive__subtitle { .archive__subtitle {

View file

@ -11,6 +11,9 @@
padding-left: 1em; padding-left: 1em;
padding-right: 1em; padding-right: 1em;
} }
@include breakpoint($x-large) {
max-width: $x-large;
}
a { a {
text-decoration: none; text-decoration: none;
&:hover { &:hover {
@ -21,16 +24,20 @@
.page__footer-copyright { .page__footer-copyright {
@include breakpoint($medium) { @include breakpoint($medium) {
@include span(10 of 12); @include prefix(2 of 12);
@include pre(2); }
@include breakpoint($x-large) {
@include prefix(2.5 of 12);
} }
font-size: 14px; font-size: 14px;
} }
.page__footer-follow { .page__footer-follow {
@include breakpoint($medium) { @include breakpoint($medium) {
@include span(10 of 12); @include prefix(2 of 12);
@include pre(2); }
@include breakpoint($x-large) {
@include prefix(2.5 of 12);
} }
ul { ul {
margin: 0; margin: 0;

View file

@ -13,6 +13,9 @@
padding-left: 1em; padding-left: 1em;
padding-right: 1em; padding-right: 1em;
} }
@include breakpoint($x-large) {
max-width: $x-large;
}
a { a {
text-decoration: none; text-decoration: none;
} }
@ -21,16 +24,20 @@
/* Site name */ /* Site name */
.site-name { .site-name {
@include breakpoint($medium) { @include breakpoint($medium) {
@include span(10 of 12); @include prefix(2 of 12);
@include pre(2); }
@include breakpoint($x-large) {
@include prefix(2.5 of 12);
} }
font-size: 24px; font-size: 24px;
} }
.masthead__menu { .masthead__menu {
@include breakpoint($medium) { @include breakpoint($medium) {
@include span(10 of 12); @include prefix(2 of 12);
@include pre(2); }
@include breakpoint($x-large) {
@include prefix(2.5 of 12);
} }
margin-bottom: 1em; margin-bottom: 1em;
ul { ul {

View file

@ -13,6 +13,9 @@
padding-left: 1em; padding-left: 1em;
padding-right: 1em; padding-right: 1em;
} }
@include breakpoint($x-large) {
max-width: $x-large;
}
} }
.page { .page {
@ -22,6 +25,9 @@
@include breakpoint($large) { @include breakpoint($large) {
padding-right: $right-sidebar-width; padding-right: $right-sidebar-width;
} }
@include breakpoint($x-large) {
@include prefix(0.5 of 12);
}
} }
.page__title { .page__title {
@ -39,26 +45,6 @@
position: relative; position: relative;
margin-bottom: 2em; margin-bottom: 2em;
@include clearfix; @include clearfix;
&:after {
content: "";
display: block;
position: absolute;
bottom: 0;
left: 8%;
width: 0;
height: 0;
border: 10px solid transparent;
border-bottom-color: $body-color;
@include breakpoint($small) {
left: 25%;
}
@include breakpoint($large) {
border-width: 20px;
}
@include breakpoint($x-large) {
left: 33.333333333%;
}
}
} }
.page__hero-image { .page__hero-image {
@ -156,8 +142,11 @@
padding-top: 1em; padding-top: 1em;
border-top: 1px solid $border-color; border-top: 1px solid $border-color;
@include breakpoint($medium) { @include breakpoint($medium) {
@include span(10); @include span(10 of 12);
@include pre(2); @include pre(2 of 12);
}
@include breakpoint($x-large) {
@include pre(2.5 of 12);
} }
li { li {
margin-bottom: 0; margin-bottom: 0;

View file

@ -9,6 +9,9 @@
@include span(2 of 12); @include span(2 of 12);
@include suffix(0.25 of 12); @include suffix(0.25 of 12);
} }
@include breakpoint($x-large) {
padding-right: 0;
}
h2, h3, h4, h5, h6 { h2, h3, h4, h5, h6 {
font-family: $sans-serif-narrow; font-family: $sans-serif-narrow;
} }

View file

@ -12,10 +12,13 @@
@include breakpoint($large) { @include breakpoint($large) {
position: absolute; position: absolute;
top: 0; top: 0;
right: calc(50% - 512px + 1em); // 50% - 1/2 of wrapper's max-width + wrapper padding right: calc(50% - (0.5 * #{$large}) + 1em); // 50% - 1/2 of wrapper's max-width + wrapper padding
width: $right-sidebar-width; width: $right-sidebar-width;
padding-left: 2em; padding-left: 2em;
} }
@include breakpoint($x-large) {
right: calc(50% - (0.5 * #{$x-large}) + 1em); // 50% - 1/2 of wrapper's max-width + wrapper padding
}
} }
.toc__title { .toc__title {

View file

@ -74,7 +74,7 @@ $small : 600px;
$medium : 768px; $medium : 768px;
$medium-wide : 900px; $medium-wide : 900px;
$large : 1024px; $large : 1024px;
$x-large : 1440px; $x-large : 1280px;
/* /*