2020-09-25 14:51:21 +02:00
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
//
|
2022-09-20 23:23:22 +02:00
|
|
|
// Copyright (c) KALEIDOS INC
|
2020-09-25 14:51:21 +02:00
|
|
|
|
2020-03-13 13:12:02 +01:00
|
|
|
.context-menu {
|
2022-01-12 11:27:43 +01:00
|
|
|
position: relative;
|
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
z-index: 100;
|
2020-03-13 13:12:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu.is-open {
|
2022-01-12 11:27:43 +01:00
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
2020-03-13 13:12:02 +01:00
|
|
|
}
|
|
|
|
|
2021-02-23 14:02:21 +01:00
|
|
|
.context-menu.fixed {
|
2022-01-12 11:27:43 +01:00
|
|
|
position: fixed;
|
2021-02-23 14:02:21 +01:00
|
|
|
}
|
|
|
|
|
2020-03-13 13:12:02 +01:00
|
|
|
.context-menu-items {
|
2022-01-12 11:27:43 +01:00
|
|
|
background: $color-white;
|
2023-02-22 13:52:45 +01:00
|
|
|
border-radius: $br3;
|
2022-01-12 11:27:43 +01:00
|
|
|
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
|
|
|
|
left: -$size-4;
|
|
|
|
max-height: 30rem;
|
|
|
|
min-width: 7rem;
|
|
|
|
overflow: auto;
|
|
|
|
position: absolute;
|
|
|
|
top: $size-3;
|
|
|
|
|
|
|
|
& .separator {
|
|
|
|
border-top: 1px solid $color-gray-10;
|
|
|
|
padding: 0px;
|
|
|
|
margin: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.min-width {
|
|
|
|
min-width: 13rem;
|
|
|
|
}
|
2020-03-13 13:12:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-action {
|
2022-01-12 11:27:43 +01:00
|
|
|
color: $color-black;
|
|
|
|
display: block;
|
|
|
|
font-size: $fs14;
|
2023-02-22 13:52:45 +01:00
|
|
|
font-weight: $fw400;
|
2022-01-12 11:27:43 +01:00
|
|
|
padding: $size-2 $size-4;
|
|
|
|
text-align: left;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
&:hover {
|
2020-03-13 13:12:02 +01:00
|
|
|
color: $color-black;
|
2022-01-12 11:27:43 +01:00
|
|
|
background-color: $color-primary-lighter;
|
2023-01-03 16:34:50 +01:00
|
|
|
text-decoration: none;
|
2022-01-12 11:27:43 +01:00
|
|
|
}
|
2021-02-25 15:39:38 +01:00
|
|
|
|
2022-01-12 11:27:43 +01:00
|
|
|
&.submenu {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2021-02-25 15:39:38 +01:00
|
|
|
|
2022-01-12 11:27:43 +01:00
|
|
|
& span {
|
|
|
|
margin-left: 0.5rem;
|
2021-02-25 15:39:38 +01:00
|
|
|
}
|
|
|
|
|
2022-01-12 11:27:43 +01:00
|
|
|
& svg {
|
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
|
|
|
}
|
|
|
|
}
|
2021-02-25 15:39:38 +01:00
|
|
|
|
2022-01-12 11:27:43 +01:00
|
|
|
&.submenu-back {
|
|
|
|
color: $color-black;
|
|
|
|
display: flex;
|
2023-02-22 13:52:45 +01:00
|
|
|
font-weight: $fw700;
|
2022-01-12 11:27:43 +01:00
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
& svg {
|
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
|
|
|
transform: rotate(180deg);
|
|
|
|
margin-right: $size-2;
|
2021-02-25 15:39:38 +01:00
|
|
|
}
|
2022-01-12 11:27:43 +01:00
|
|
|
}
|
2020-03-13 13:12:02 +01:00
|
|
|
}
|
2020-03-26 14:19:27 +01:00
|
|
|
|
|
|
|
.context-menu.is-selectable {
|
2022-01-12 11:27:43 +01:00
|
|
|
& .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;
|
2023-02-22 13:52:45 +01:00
|
|
|
font-weight: $fw700;
|
2022-01-12 11:27:43 +01:00
|
|
|
}
|
2020-03-26 14:19:27 +01:00
|
|
|
}
|