Create ContextMenu component

This commit is contained in:
John Furrow
2016-02-21 00:32:08 -08:00
parent c51387581a
commit bacafe7e4d
18 changed files with 358 additions and 62 deletions
@@ -18,15 +18,8 @@
}
&__content {
background: $dropdown--background;
border-radius: 3px;
box-shadow:
0 0 0 1px $dropdown--container--border,
0 0 35px $dropdown--container--shadow;
color: $dropdown--foreground;
left: 0;
position: absolute;
text-align: left;
top: 0;
z-index: 2;
}
@@ -100,26 +93,6 @@
flex: 1;
}
&__item {
padding: 5px 15px;
&.is-selectable {
cursor: pointer;
display: block;
font-size: 0.9em;
transition: background 0.25s, color 0.25s;
&:hover {
background: $dropdown--item--background--hover;
color: $dropdown--item--foreground--hover;
}
&.is-selected {
color: $dropdown--item--foreground--active;
}
}
}
&--align-right & {
left: auto;
right: 0;