Skip to content

Commit

Permalink
Display resizing dots only when hovering.
Browse files Browse the repository at this point in the history
  • Loading branch information
miina committed Mar 18, 2019
1 parent 685d187 commit 5d24258
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions assets/css/amp-editor-story-blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -795,15 +795,37 @@ div[data-type="amp/amp-story-page"] .wp-block:hover .amp-story-editor-block-move
*/
.amp-story-text__resize-container .components-resizable-box__handle-right {
right: -26px;
height: 50px;
top: calc(50% - 25px);
}
.amp-story-text__resize-container .components-resizable-box__handle-right::before {
margin: 17px 0;
}
.amp-story-text__resize-container .components-resizable-box__handle-bottom {
bottom: -26px;
width: 50px;
left: calc(50% - 25px);
}
.amp-story-text__resize-container .components-resizable-box__handle-bottom::before {
margin: 0 auto;
}

.editor-styles-wrapper #amp-story-editor .wp-block .wp-block[data-type="amp/amp-story-text"] {
width: initial;
}

.wp-block[data-type="amp/amp-story-text"] .components-resizable-box__handle,
.wp-block.is-typing[data-type="amp/amp-story-text"] .components-resizable-box__handle{
display: block;
opacity: 0;
transition: opacity .3s;
}

.wp-block[data-type="amp/amp-story-text"]:hover .components-resizable-box__handle,
.wp-block[data-type="amp/amp-story-text"] .components-resizable-box__handle:hover {
opacity: 100;
}

/*
* 100. Shame
*/
Expand Down

0 comments on commit 5d24258

Please sign in to comment.