2020-03-13 13:12:02 +01:00
|
|
|
.context-menu {
|
|
|
|
position: relative;
|
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
z-index: 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu.is-open {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-items {
|
|
|
|
background: $color-white;
|
2020-03-20 10:57:10 +01:00
|
|
|
border-radius: $br-small;
|
2020-03-13 13:12:02 +01:00
|
|
|
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
|
|
|
|
left: -$size-4;
|
2020-03-26 14:19:27 +01:00
|
|
|
max-height: 30rem;
|
2020-03-13 13:12:02 +01:00
|
|
|
min-width: 7rem;
|
2020-03-26 14:19:27 +01:00
|
|
|
overflow: auto;
|
2020-03-13 13:12:02 +01:00
|
|
|
position: absolute;
|
|
|
|
top: $size-3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-action {
|
|
|
|
color: $color-black;
|
|
|
|
display: block;
|
2020-03-20 10:57:10 +01:00
|
|
|
font-size: $fs12;
|
2020-03-13 13:12:02 +01:00
|
|
|
padding: $size-2 $size-4;
|
2020-04-13 21:50:17 +02:00
|
|
|
text-align: left;
|
2020-03-26 14:19:27 +01:00
|
|
|
white-space: nowrap;
|
2020-03-13 13:12:02 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $color-black;
|
2020-03-26 14:19:27 +01:00
|
|
|
background-color: $color-primary-lighter;
|
2020-03-13 13:12:02 +01:00
|
|
|
}
|
|
|
|
}
|
2020-03-26 14:19:27 +01:00
|
|
|
|
|
|
|
.context-menu.is-selectable {
|
|
|
|
& .context-menu-action {
|
|
|
|
padding-left: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .context-menu-item.is-selected .context-menu-action {
|
|
|
|
background-image: url(/images/icons/tick.svg);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 5% 48%;
|
|
|
|
background-size: 10px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|