Skip to content

Commit

Permalink
Giving the people what they want: A new, wider "wide" class for the "…
Browse files Browse the repository at this point in the history
…single" layout. (mmistakes#1516)

Add `wide` variant to single layout
  • Loading branch information
willow-ahrens authored and mmistakes committed Feb 5, 2018
1 parent 7f31ab0 commit fcf748b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
26 changes: 26 additions & 0 deletions _sass/minimal-mistakes/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -424,3 +424,29 @@
font-size: $type-size-6;
text-transform: uppercase;
}

/*
Wide Pages
========================================================================== */

.wide {
.page {
@include breakpoint($large) {
padding-right: 0;
}

@include breakpoint($x-large) {
padding-right: 0;
}
}

.page__related {
@include breakpoint($large) {
padding-right: 0;
}

@include breakpoint($x-large) {
padding-right: 0;
}
}
}
23 changes: 23 additions & 0 deletions _sass/minimal-mistakes/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,26 @@
}
}
}

/*
Wide Pages
========================================================================== */

.wide .sidebar__right {
margin-bottom: 1em;
@include breakpoint($large) {
position: initial;
top: initial;
right: initial;
width: initial;
margin-right: initial;
padding-left: initial;
z-index: initial;
}

@include breakpoint($x-large) {
width: initial;
margin-right: initial;
}
}

0 comments on commit fcf748b

Please sign in to comment.