Skip to content
This repository has been archived by the owner on Dec 28, 2019. It is now read-only.

Commit

Permalink
Tweak appearance of images in blog posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
damiendart committed Aug 5, 2014
1 parent de0376d commit ee110b2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scss/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,17 @@
padding: 0 0 0 em($base-line-height, $base-font-size); }
iframe, img {
border-style: none; // Remove border on linked images.
// FIXME: We shouldn't be applying this to every image and "iframe".
border-radius: em($base-layout-unit / 4, $base-font-size)
em($base-layout-unit / 4, $base-font-size) 0 0;
display: block;
max-width: 100%;
margin: em($base-layout-unit * -1, $base-font-size) 0
0 em($base-layout-unit * -1, $base-font-size);
width: 100%; // Fallback.
// FIXME: We shouldn't be applying this to every image and "iframe".
@media screen and (max-width: em(500px, $base-font-size)) {
margin: 0 0 0 em($base-layout-unit * -1, $base-font-size);
@each $prefix in ("", "-moz-", "-webkit-") {
max-width: #{$prefix}calc(100% +
#{em($base-layout-unit * 2, $base-font-size)}); } } }
@each $prefix in ("", "-moz-", "-webkit-") {
width: #{$prefix}calc(100% +
#{em($base-layout-unit * 2, $base-font-size)}); } }
h1 {
$font-size: 24px;
$line-height: 36px;
Expand Down

0 comments on commit ee110b2

Please sign in to comment.