Skip to content

Commit

Permalink
ReOrderComponents: small style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 8, 2019
1 parent 7ca0e63 commit 853c5a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/editor/ReOrderComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ const flushEventListeners = () => {
};

export default class ReOrderComponents extends Component {
state = { previewing: true, content: null };

componentDidMount() {
Array.from(
document.querySelectorAll(`#${DROP_ZONE_ID}~[data-type]`)
Expand Down
20 changes: 12 additions & 8 deletions src/editor/ReOrderComponents.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@
& ~ main,
& ~ aside {
&,
section.newsletter {
&:hover {
position: relative;
cursor: move;
&::after {
@extend %maskForAction;
content: "ReOrder";
}
section.newsletter:hover {
position: relative;
cursor: move;
&::after {
@extend %maskForAction;
}
}
&::after {
content: "Click to reorder";
align-items: flex-start;
padding: 50vh 0;
font-weight: bold;
}
}
}

Expand All @@ -51,6 +54,7 @@
content: "Drag to move, click to reorder";
}
&:empty,
&[data-type="Footer"],
&[data-json] {
&:hover::after {
content: "Drag to move";
Expand Down

0 comments on commit 853c5a1

Please sign in to comment.