Skip to content

Commit

Permalink
Polish cover image styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Jun 30, 2017
1 parent dfd8cf8 commit 809da72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion blocks/library/cover-image/block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
font-size: 24pt;
line-height: 1em;
z-index: 1;
max-width: $visual-editor-max-width;
padding: $block-padding;
text-align: center;
}

.cover-image {
Expand All @@ -22,7 +25,7 @@
background-attachment: fixed;
}

.cover-image:before {
.has-background-dim.cover-image:before {
content: '';
position: absolute;
top: 0;
Expand Down
4 changes: 2 additions & 2 deletions blocks/library/cover-image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
.cover-image.has-background-dim::before {
content: '';
position: absolute;
top: $block-padding;
top: 0;
right: $block-padding * 2 + $block-mover-margin;
bottom: $block-padding;
bottom: 0;
left: $block-padding * 2 + $block-mover-margin;
background: rgba( 0,0,0,.5 );
}
Expand Down

0 comments on commit 809da72

Please sign in to comment.