0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00
penpot/frontend/resources/styles/main/partials/context-menu.scss

55 lines
1.1 KiB
SCSS
Raw Normal View History

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;
max-height: 30rem;
2020-03-13 13:12:02 +01:00
min-width: 7rem;
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;
white-space: nowrap;
2020-03-13 13:12:02 +01:00
&:hover {
color: $color-black;
background-color: $color-primary-lighter;
2020-03-13 13:12:02 +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;
}
}