mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 10:35:59 +00:00
Create ContextMenu component
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user