Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion _sass/minima/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ article.guide {
}
}

// Full width images stretch all the way, up to 1600px width.
// Full width images stretch all the way.
// On non-sidebar pages, break out to full viewport width.
// On sidebar pages, only cancel the article padding.

& > .-full-width {
display: flex;
Expand All @@ -384,6 +386,30 @@ article.guide {
}
}

.main:not(.sidebar) > & > .-full-width {
@include media-query(large) {
width: 100vw;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);

figure {
width: 100%;
}

picture {
display: block;
width: 100%;
}

img {
width: 100%;
max-width: none;
max-height: calc(#{$content-width - $spacing-unit * 4} * 0.375); // 600:1600 banner ratio
object-fit: cover;
}
}
}

figure.-full-width {
figcaption {
margin-left: $spacing-unit/2;
Expand Down
1 change: 1 addition & 0 deletions _sass/minima/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ body {
min-height: 100vh;
flex-direction: column;
overflow-wrap: break-word;
overflow-x: hidden;
width: 100%;
box-sizing:border-box;
}
Expand Down