Skip to content

Commit

Permalink
Fixed image text overlapping #47
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmer committed Jul 11, 2018
1 parent 4c5889d commit 39e72c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion _sass/media500.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@

figure {
&.left, &.right, &.large {
margin: 0 0 10px 0;
width: 100%;
}
}
Expand Down
12 changes: 10 additions & 2 deletions _sass/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,20 @@
position: relative;
margin-bottom: 25px;


p {
margin: 0; /* jekyll generates paragraphs in figure elements */
}


&.left, &.right, &.large {
margin-bottom:0;

figcaption {
position: static;
width: auto;
text-align: center;
padding-bottom: 10px;

&:before {
display: none;
Expand All @@ -88,12 +92,16 @@

&.left {
float: left;
margin: 20px 20px 20px 0;
margin-left: 0;
margin-right: 20px;
margin-top: 20px;
}

&.right {
float: right;
margin: 20px 0 20px 20px;
margin-left: 0;
margin-right: 20px;
margin-top: 20px;
}

img {
Expand Down

0 comments on commit 39e72c3

Please sign in to comment.