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_RoomSubList {
|
2018-10-18 22:25:22 +08:00
|
|
|
min-height: 80px;
|
2018-10-18 22:57:47 +08:00
|
|
|
flex: 0;
|
2018-10-18 22:25:22 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2018-10-18 22:25:22 +08:00
|
|
|
.mx_RoomSubList_hidden {
|
|
|
|
min-height: unset;
|
2018-07-31 00:00:11 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
|
|
|
|
.mx_RoomSubList_labelContainer {
|
2018-10-19 18:07:36 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_label {
|
2018-10-19 18:07:36 +08:00
|
|
|
flex: 1;
|
2018-04-12 07:23:35 +08:00
|
|
|
position: relative;
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: $roomsublist-label-fg-color;
|
2018-05-26 07:07:39 +08:00
|
|
|
font-weight: 700;
|
2018-10-19 18:07:36 +08:00
|
|
|
font-size: 14px;
|
2018-07-31 00:00:11 +08:00
|
|
|
margin-left: 16px;
|
2018-04-12 07:23:35 +08:00
|
|
|
padding-left: 16px; /* gutter */
|
|
|
|
padding-right: 16px; /* gutter */
|
|
|
|
padding-top: 6px;
|
|
|
|
padding-bottom: 6px;
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: $secondary-accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_label.mx_RoomSubList_fixed {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
z-index: 5;
|
|
|
|
/* pointer-events: none; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_badge {
|
|
|
|
display: inline-block;
|
|
|
|
min-width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
position: absolute;
|
|
|
|
right: 8px; /*gutter */
|
|
|
|
top: 7px;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: $accent-fg-color;
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 10px;
|
|
|
|
text-align: center;
|
|
|
|
padding-top: 1px;
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
|
|
|
|
2018-06-27 16:16:37 +08:00
|
|
|
.mx_RoomSubList_label .mx_RoomSubList_badge:hover {
|
|
|
|
filter: brightness($focus-brightness);
|
|
|
|
}
|
|
|
|
|
2018-10-19 18:07:36 +08:00
|
|
|
.mx_RoomSubList_addRoom {
|
|
|
|
background-color: $roomheader-addroom-color;
|
|
|
|
color: $roomsublist-background;
|
|
|
|
margin: 5px 10px;
|
|
|
|
border-radius: 9px;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
line-height: 18px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 18px;
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_RoomSubList_badgeHighlight {
|
|
|
|
background-color: $warning-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* This is the bottom of the speech bubble */
|
|
|
|
.mx_RoomSubList_badgeHighlight:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
margin-left: 5px;
|
|
|
|
border-top: 5px solid $warning-color;
|
|
|
|
border-right: 7px solid transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevron {
|
2018-07-31 00:00:11 +08:00
|
|
|
left: 0px;
|
2018-04-12 07:23:35 +08:00
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
top: 11px;
|
2018-07-31 00:00:11 +08:00
|
|
|
width: 9px;
|
|
|
|
height: 4px;
|
|
|
|
background-image: url('../../img/topleft-chevron.svg');
|
|
|
|
background-size: cover;
|
|
|
|
// the transition doesn't work as the chevron gets remounted
|
|
|
|
transition: rotateZ 0.2s ease-in;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevronDown {
|
2018-07-31 00:00:11 +08:00
|
|
|
transform: rotateZ(0deg);
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevronUp {
|
2018-07-31 00:00:11 +08:00
|
|
|
transform: rotateZ(180deg);
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevronRight {
|
2018-07-31 00:00:11 +08:00
|
|
|
transform: rotateZ(-90deg);
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2018-10-16 20:55:35 +08:00
|
|
|
.collapsed {
|
|
|
|
.mx_RoomSubList_label {
|
|
|
|
height: 17px;
|
|
|
|
width: 28px; /* collapsed LHS Panel width */
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_labelContainer {
|
|
|
|
width: 28px; /* collapsed LHS Panel width */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide the bottom of speech bubble */
|
|
|
|
.mx_RoomSubList_badgeHighlight:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_line {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_moreBadge {
|
|
|
|
position: static;
|
|
|
|
margin-left: 16px;
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_ellipsis {
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_more {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|