Skip to content

Commit

Permalink
fix(theme): avoid image heading margin offset
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Aug 17, 2015
1 parent 2fd636e commit e92543e
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions _app/assets/themes/curtana/_less/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -397,19 +397,25 @@ body:hover .latest {
display: block;
max-width: 100%;
margin: 0 0 1.8rem;
}

@media (max-width: @breakpoint-md) {
margin-left: -@padding-md;
margin-right: -@padding-md;
max-width: calc(100% + (@padding-md * 2));
width: calc(100% + (@padding-md * 2));
}
.post-content {

@media (max-width: @breakpoint-sm) {
margin-left: -@padding-sm;
margin-right: -@padding-sm;
max-width: calc(100% + (@padding-sm * 2));
width: calc(100% + (@padding-sm * 2));
img, video, iframe {

@media (max-width: @breakpoint-md) {
margin-left: -@padding-md;
margin-right: -@padding-md;
max-width: calc(100% + (@padding-md * 2));
width: calc(100% + (@padding-md * 2));
}

@media (max-width: @breakpoint-sm) {
margin-left: -@padding-sm;
margin-right: -@padding-sm;
max-width: calc(100% + (@padding-sm * 2));
width: calc(100% + (@padding-sm * 2));
}
}
}

Expand Down

0 comments on commit e92543e

Please sign in to comment.