Skip to content

Commit

Permalink
fix(): fix stupid error to restore the right position of description
Browse files Browse the repository at this point in the history
  • Loading branch information
Ks89 committed Aug 14, 2018
1 parent efd2dfd commit 48a4289
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,19 @@ $figcaption-right: 0;
#current-figure {
animation: fadein-visible .8s;
text-align: center;

& figure {
margin: 0; // => Removes margin from every figure to prevent problem when resizing horizontally on tablets and smartphones
position: relative;

img {
// display: block;
// don't use this
// Bootstrap 4 img-fluid class uses max-width: 100% and height: auto
max-width: 100%;
height: auto;
display: block;
}
margin: 0; // => Removes margin from every figure to prevent problem when resizing horizontally on tablets and smartphones
position: relative;

> #current-image {
// display: block;
// don't use this
// Bootstrap 4 img-fluid class uses max-width: 100% and height: auto
max-width: 100%;
height: auto;
display: block;
}


& figcaption {
padding: $figcaption-padding;
position: $figcaption-position;
Expand Down

0 comments on commit 48a4289

Please sign in to comment.