Skip to content

Commit

Permalink
Add image-background-layer to image helper classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Sep 1, 2022
1 parent 8e58ca5 commit 8641425
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 23 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Improve post title color and size accessibility in Gutenberg editor
* Remove unnecessary float reset from nav item
* Add image-background-layer to image helper classes

### 9.0.9: 2022-08-25

Expand Down
18 changes: 10 additions & 8 deletions css/dev/global.css

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions css/dev/gutenberg-editor-styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/prod/global.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/prod/gutenberg-editor-styles.css

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions sass/helpers/_images.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
// Styling background-images
// For custom sized image background, use: class="image image-background"
// For bg as layer, use: class="image image-background image-background-layer"
.image-background > img {
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
top: 0;
width: 100%;
z-index: 0;
}

.image-background {
overflow: hidden;
position: relative;
}

.image-background > img,
.image-background-layer {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 0;
}

0 comments on commit 8641425

Please sign in to comment.