diff --git a/assets/sass/base/images/_images.scss b/assets/sass/base/images/_images.scss index 52d67c1..bb7c570 100644 --- a/assets/sass/base/images/_images.scss +++ b/assets/sass/base/images/_images.scss @@ -2,9 +2,6 @@ figure, img { - // Add vertical rhythm margins. - @include margin-block(0 1); - &.image { --image-padding: .75rem; @@ -33,13 +30,8 @@ img { } figure { - // Remove defult inline margins. - @include margin-inline(0); - - // Remove margin from img inside figure. - img { - margin: 0; - } + // Add vertical rhythm margins. + @include margin-block(0 1); &.image { figcaption { @@ -81,3 +73,10 @@ figure { } } } + +img { + &.image { + // Add vertical rhythm margins. + @include margin-block(0 1); + } +}