2018-04-12 01:23:35 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2019-06-21 12:06:27 +02:00
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2018-04-12 01:23:35 +02:00
|
|
|
|
2024-09-09 15:57:16 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2018-04-12 01:23:35 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ContextualMenu_wrapper {
|
|
|
|
position: fixed;
|
2018-06-12 12:12:12 +02:00
|
|
|
z-index: 5000;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_background {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2022-12-12 12:24:14 +01:00
|
|
|
opacity: 1;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu {
|
2024-03-13 14:38:32 +01:00
|
|
|
border-radius: 12px;
|
|
|
|
box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.1);
|
|
|
|
background-color: var(--cpd-color-bg-canvas-default);
|
|
|
|
border: var(--cpd-border-width-1) solid var(--cpd-color-border-interactive-secondary);
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2018-04-12 01:23:35 +02:00
|
|
|
position: absolute;
|
2018-06-12 12:12:12 +02:00
|
|
|
z-index: 5001;
|
2021-12-01 11:50:06 +01:00
|
|
|
width: max-content;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2019-06-10 17:07:23 +02:00
|
|
|
.mx_ContextualMenu_right {
|
2022-02-02 10:30:53 +01:00
|
|
|
right: 16px;
|
2019-06-10 17:07:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_right {
|
2018-04-12 01:23:35 +02:00
|
|
|
right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_chevron_right {
|
|
|
|
position: absolute;
|
|
|
|
right: -8px;
|
|
|
|
top: 0px;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-top: 8px solid transparent;
|
2018-10-23 15:23:59 +02:00
|
|
|
border-left: 8px solid $menu-bg-color;
|
2018-04-12 01:23:35 +02:00
|
|
|
border-bottom: 8px solid transparent;
|
|
|
|
}
|
|
|
|
|
2019-06-10 17:07:23 +02:00
|
|
|
.mx_ContextualMenu_left {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_left {
|
2018-04-12 01:23:35 +02:00
|
|
|
left: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_chevron_left {
|
|
|
|
position: absolute;
|
|
|
|
left: -8px;
|
|
|
|
top: 0px;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-top: 8px solid transparent;
|
2018-10-23 15:23:59 +02:00
|
|
|
border-right: 8px solid $menu-bg-color;
|
2018-04-12 01:23:35 +02:00
|
|
|
border-bottom: 8px solid transparent;
|
|
|
|
}
|
|
|
|
|
2019-06-10 17:07:23 +02:00
|
|
|
.mx_ContextualMenu_top {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_top {
|
2018-04-12 01:23:35 +02:00
|
|
|
top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_chevron_top {
|
|
|
|
position: absolute;
|
|
|
|
left: 0px;
|
|
|
|
top: -8px;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-left: 8px solid transparent;
|
2018-10-23 15:23:59 +02:00
|
|
|
border-bottom: 8px solid $menu-bg-color;
|
2018-04-12 01:23:35 +02:00
|
|
|
border-right: 8px solid transparent;
|
|
|
|
}
|
|
|
|
|
2019-06-10 17:07:23 +02:00
|
|
|
.mx_ContextualMenu_bottom {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_bottom {
|
2018-04-12 01:23:35 +02:00
|
|
|
bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_chevron_bottom {
|
|
|
|
position: absolute;
|
|
|
|
left: 0px;
|
|
|
|
bottom: -8px;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-left: 8px solid transparent;
|
2018-10-23 15:23:59 +02:00
|
|
|
border-top: 8px solid $menu-bg-color;
|
2018-04-12 01:23:35 +02:00
|
|
|
border-right: 8px solid transparent;
|
|
|
|
}
|
2021-11-02 14:18:51 +01:00
|
|
|
|
|
|
|
.mx_ContextualMenu_rightAligned {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_bottomAligned {
|
|
|
|
transform: translateY(-100%);
|
|
|
|
}
|