Skip to content

Commit

Permalink
Remove "Change Media" button transition from Cards Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeolaru committed Jul 6, 2022
1 parent 825fab2 commit 03430e6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 19 deletions.
45 changes: 30 additions & 15 deletions packages/block-editor/src/editor-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,41 @@

@import "filters/with-overlay-filter/editor-styles";

// Change Media
.novablocks-media-composition[class] {
display: flex;
align-content: center;
justify-content: center;
align-items: center;
}

.novablocks-change-media-overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10;

display: flex;
justify-content: center;
align-content: center;
align-items: center;
z-index: 10;

span {
display: block;
padding: .4em .9em;

color: #FFFFFF;
background-color: #000000;
border-radius: 2px;
// Button Secondary style
background: #fff;
color: #1e1e1e;
white-space: nowrap;

box-shadow: inset 0 0 0 1px #1e1e1e;
outline: 1px solid #fff;

border-radius: 2px;

font-family: inherit;
font-size: 13px;
font-weight: 400;
height: 36px;
margin: 0;
padding: 6px 12px;

&:hover {
color: var(--wp-admin-theme-color);
box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

.novablocks-media-composition__grid,
.novablocks-change-media-overlay {
transition: var(--nb-transition);
transition-property: opacity;
--nb-transition-duration: .15s;

}

.novablocks-media-composition__grid {
Expand All @@ -32,7 +30,7 @@
.nb-supernova:is(.is-selected, .has-child-selected) &:hover {

.novablocks-media-composition__grid {
opacity: 0.7;

}

.novablocks-change-media-overlay {
Expand Down

1 comment on commit 03430e6

@georgeolaru
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ref #404

Please sign in to comment.