dfx-jekyll-mdl/_sass/_post.scss
James Taylor 088ae87221 Explicitly define height as auto
While using only width at 100% it stretches all imgs in the post to width
of parent div.  But doesn't maintain aspect ratio.  This corrects this
issue.  Regardless, setting width to 100% makes img tags width/height be
ignored.
2016-01-09 11:15:24 -06:00

40 lines
538 B
SCSS

//
// Styles for post
//
.post-ribbon {
width: 100%;
height: 40vh;
background-color: #DDDDDD;
flex-shrink: 0;
}
.post-main {
margin-top: -35vh;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
.post-container {
max-width: 1600px;
width: calc(100% - 16px);
margin: 0 auto;
}
.post-section {
border-radius: 2px;
padding: 80px 56px;
margin-bottom: 80px;
h3 {
margin-top: 48px;
}
}
.post-content {
img {
width: 100%;
height: auto;
}
}
}