Skip to content

Commit

Permalink
Shrink margins around iframes and nest media query inside filter-effe…
Browse files Browse the repository at this point in the history
…cts-codepen rule.
  • Loading branch information
mvujovic committed Sep 12, 2014
1 parent 4a86bc4 commit 75ad338
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
14 changes: 6 additions & 8 deletions css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ p, code, pre, blockquote {
}

figure, iframe {
margin: 2rem 0;
margin: 1rem 0;
}

figcaption {
Expand Down Expand Up @@ -308,13 +308,9 @@ a {
/* Page Specific CSS */

.filter-effects-codepen iframe {
margin: 1rem 0;
}

/* This breakpoint should correspond to the one defined in the CodePen, so that
when the CodePen changes its layout, the iframe height is updated. */
@media (max-width: 590px) {
.filter-effects-codepen iframe {
/* This breakpoint should correspond to the one defined in the CodePen, so
that when the CodePen changes its layout, the iframe height is updated. */
@media (max-width: 590px) {
height: 215px;
}
}

0 comments on commit 75ad338

Please sign in to comment.