2018-04-12 07:23:35 +08:00
|
|
|
/*
|
2020-03-13 08:02:50 +08:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
2018-04-12 07:23:35 +08:00
|
|
|
|
|
|
|
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_NetworkDropdown {
|
2020-03-13 08:02:50 +08:00
|
|
|
height: 32px;
|
2018-04-12 07:23:35 +08:00
|
|
|
position: relative;
|
2020-03-13 08:02:50 +08:00
|
|
|
width: max-content;
|
|
|
|
padding-right: 32px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: 9px;
|
|
|
|
margin-top: 12px;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2020-03-13 08:02:50 +08:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
width: max-content;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2020-03-13 08:02:50 +08:00
|
|
|
.mx_NetworkDropdown_menu {
|
2020-03-13 08:11:09 +08:00
|
|
|
min-width: 204px;
|
2020-03-13 08:02:50 +08:00
|
|
|
margin: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 4px;
|
2020-03-13 23:28:22 +08:00
|
|
|
border: 1px solid $dialog-close-fg-color;
|
2020-03-13 08:02:50 +08:00
|
|
|
background-color: $primary-bg-color;
|
2020-04-15 00:34:39 +08:00
|
|
|
max-height: calc(100vh - 20px); // allow 10px padding on both top and bottom
|
|
|
|
overflow-y: auto;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2020-03-13 08:02:50 +08:00
|
|
|
.mx_NetworkDropdown_menu_network {
|
|
|
|
font-weight: bold;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2020-03-13 08:02:50 +08:00
|
|
|
.mx_NetworkDropdown_server {
|
|
|
|
padding: 12px 0;
|
|
|
|
border-bottom: 1px solid $input-darker-fg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2020-03-13 08:02:50 +08:00
|
|
|
.mx_NetworkDropdown_server_title {
|
|
|
|
padding: 0 10px;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-15px;
|
2020-03-13 08:02:50 +08:00
|
|
|
font-weight: 600;
|
2020-03-31 22:26:23 +08:00
|
|
|
line-height: $font-20px;
|
2020-03-13 08:02:50 +08:00
|
|
|
margin-bottom: 4px;
|
2020-04-18 22:08:15 +08:00
|
|
|
position: relative;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2020-03-13 08:02:50 +08:00
|
|
|
// remove server button
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
position: absolute;
|
|
|
|
display: inline;
|
2020-04-18 22:08:15 +08:00
|
|
|
right: 10px;
|
2020-03-13 22:38:36 +08:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2020-04-18 22:08:15 +08:00
|
|
|
margin-top: 2px;
|
2020-03-13 08:02:50 +08:00
|
|
|
|
2020-03-13 22:19:38 +08:00
|
|
|
&::after {
|
2020-03-13 08:02:50 +08:00
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-image: url('$(res)/img/feather-customised/x.svg');
|
|
|
|
background-color: $notice-primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_NetworkDropdown_server_subtitle {
|
|
|
|
padding: 0 10px;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-10px;
|
|
|
|
line-height: $font-14px;
|
2020-03-13 08:02:50 +08:00
|
|
|
margin-top: -4px;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
color: $muted-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_NetworkDropdown_server_network {
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-16px;
|
2020-03-13 08:02:50 +08:00
|
|
|
padding: 4px 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
&[aria-checked=true]::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
right: 10px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-image: url('$(res)/img/feather-customised/check.svg');
|
|
|
|
background-color: $input-valid-border-color;
|
|
|
|
}
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2020-03-13 08:02:50 +08:00
|
|
|
.mx_NetworkDropdown_server_add,
|
|
|
|
.mx_NetworkDropdown_server_network {
|
|
|
|
&:hover {
|
|
|
|
background-color: $header-panel-bg-color;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2020-03-13 08:02:50 +08:00
|
|
|
.mx_NetworkDropdown_server_add {
|
|
|
|
padding: 16px 10px 16px 32px;
|
|
|
|
position: relative;
|
2020-03-13 23:28:22 +08:00
|
|
|
border-radius: 0 0 4px 4px;
|
2020-03-13 08:02:50 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
left: 7px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-image: url('$(res)/img/feather-customised/plus.svg');
|
|
|
|
background-color: $muted-fg-color;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2020-03-13 08:02:50 +08:00
|
|
|
.mx_NetworkDropdown_handle {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2020-07-30 23:41:00 +08:00
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
right: -22px; // - (18 + 4)
|
2020-03-13 08:02:50 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-image: url('$(res)/img/feather-customised/chevron-down.svg');
|
|
|
|
background-color: $primary-fg-color;
|
|
|
|
}
|
2020-03-13 08:18:53 +08:00
|
|
|
|
|
|
|
.mx_NetworkDropdown_handle_server {
|
|
|
|
color: $muted-fg-color;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-12px;
|
2020-03-13 08:18:53 +08:00
|
|
|
}
|
2020-03-13 08:02:50 +08:00
|
|
|
}
|
2020-03-16 20:00:56 +08:00
|
|
|
|
|
|
|
.mx_NetworkDropdown_dialog .mx_Dialog {
|
2020-03-16 20:12:59 +08:00
|
|
|
width: 45vw;
|
2020-03-16 20:00:56 +08:00
|
|
|
}
|