Skip to content

Commit

Permalink
hide add component buttons if they aren't in selected or parent
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed Dec 17, 2015
1 parent 0eaa7f0 commit 8451272
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions styleguide/add-component.scss
Expand Up @@ -7,10 +7,19 @@
@include clearfix();

clear: both;
display: none;
margin: 0 12px 12px 0;
width: 100%;
}

.selected-parent .component-list-bottom {
display: block;
}

.selected ~ * .component-list-bottom {
display: none;
}

.open-add-components,
.open-add-components:nth-of-type(n+1) {
@include button-outlined($blue, #fff);
Expand Down

0 comments on commit 8451272

Please sign in to comment.