2018-04-12 07:23:35 +08:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ContextualMenu_wrapper {
|
|
|
|
position: fixed;
|
2018-06-12 18:12:12 +08:00
|
|
|
z-index: 5000;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_background {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
opacity: 1.0;
|
2018-06-12 18:12:12 +08:00
|
|
|
z-index: 5000;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu {
|
2019-01-15 01:43:56 +08:00
|
|
|
border-radius: 4px;
|
2019-02-12 23:40:06 +08:00
|
|
|
box-shadow: 4px 4px 12px 0 $menu-box-shadow-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
background-color: $menu-bg-color;
|
|
|
|
color: $primary-fg-color;
|
|
|
|
position: absolute;
|
2019-04-09 22:03:13 +08:00
|
|
|
font-size: 14px;
|
2018-06-12 18:12:12 +08:00
|
|
|
z-index: 5001;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2019-06-10 23:07:23 +08:00
|
|
|
.mx_ContextualMenu_right {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_right {
|
2018-04-12 07:23:35 +08: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 21:23:59 +08:00
|
|
|
border-left: 8px solid $menu-bg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
border-bottom: 8px solid transparent;
|
|
|
|
}
|
|
|
|
|
2019-04-09 22:05:39 +08:00
|
|
|
.mx_ContextualMenu_chevron_right::after {
|
|
|
|
content: '';
|
2018-04-12 07:23:35 +08:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-top: 7px solid transparent;
|
|
|
|
border-left: 7px solid $menu-bg-color;
|
|
|
|
border-bottom: 7px solid transparent;
|
2019-04-09 22:05:39 +08:00
|
|
|
position: absolute;
|
2018-04-12 07:23:35 +08:00
|
|
|
top: -7px;
|
|
|
|
right: 1px;
|
|
|
|
}
|
|
|
|
|
2019-06-10 23:07:23 +08:00
|
|
|
.mx_ContextualMenu_left {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_left {
|
2018-04-12 07:23:35 +08: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 21:23:59 +08:00
|
|
|
border-right: 8px solid $menu-bg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
border-bottom: 8px solid transparent;
|
|
|
|
}
|
|
|
|
|
2019-04-09 22:05:39 +08:00
|
|
|
.mx_ContextualMenu_chevron_left::after {
|
|
|
|
content: '';
|
2018-04-12 07:23:35 +08:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-top: 7px solid transparent;
|
|
|
|
border-right: 7px solid $menu-bg-color;
|
|
|
|
border-bottom: 7px solid transparent;
|
2019-04-09 22:05:39 +08:00
|
|
|
position: absolute;
|
2018-04-12 07:23:35 +08:00
|
|
|
top: -7px;
|
|
|
|
left: 1px;
|
|
|
|
}
|
|
|
|
|
2019-06-10 23:07:23 +08:00
|
|
|
.mx_ContextualMenu_top {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_top {
|
2018-04-12 07:23:35 +08: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 21:23:59 +08:00
|
|
|
border-bottom: 8px solid $menu-bg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
border-right: 8px solid transparent;
|
|
|
|
}
|
|
|
|
|
2019-04-09 22:05:39 +08:00
|
|
|
.mx_ContextualMenu_chevron_top::after {
|
|
|
|
content: '';
|
2018-04-12 07:23:35 +08:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-left: 7px solid transparent;
|
|
|
|
border-bottom: 7px solid $menu-bg-color;
|
|
|
|
border-right: 7px solid transparent;
|
2019-04-09 22:05:39 +08:00
|
|
|
position: absolute;
|
2018-04-12 07:23:35 +08:00
|
|
|
left: -7px;
|
|
|
|
top: 1px;
|
|
|
|
}
|
|
|
|
|
2019-06-10 23:07:23 +08:00
|
|
|
.mx_ContextualMenu_bottom {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu.mx_ContextualMenu_withChevron_bottom {
|
2018-04-12 07:23:35 +08: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 21:23:59 +08:00
|
|
|
border-top: 8px solid $menu-bg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
border-right: 8px solid transparent;
|
|
|
|
}
|
|
|
|
|
2019-04-09 22:05:39 +08:00
|
|
|
.mx_ContextualMenu_chevron_bottom::after {
|
|
|
|
content: '';
|
2018-04-12 07:23:35 +08:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-left: 7px solid transparent;
|
|
|
|
border-top: 7px solid $menu-bg-color;
|
|
|
|
border-right: 7px solid transparent;
|
2019-04-09 22:05:39 +08:00
|
|
|
position: absolute;
|
2018-04-12 07:23:35 +08:00
|
|
|
left: -7px;
|
|
|
|
bottom: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_field {
|
|
|
|
padding: 3px 6px 3px 6px;
|
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_spinner {
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|