2018-04-11 23:23:35 +00: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-19 12:44:07 +00:00
|
|
|
min-height: 31px;
|
2018-11-01 15:34:12 +00:00
|
|
|
flex: 0 1 auto;
|
2018-10-18 14:25:22 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2018-10-19 12:40:59 +00:00
|
|
|
.mx_RoomSubList_nonEmpty {
|
2018-11-06 13:03:01 +00:00
|
|
|
margin-bottom: 4px;
|
2018-07-30 16:00:11 +00:00
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_RoomSubList_labelContainer {
|
2018-10-19 10:07:36 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2018-11-05 09:35:38 +00:00
|
|
|
align-items: center;
|
2018-10-19 12:44:07 +00:00
|
|
|
flex: 0 0 auto;
|
2018-11-06 13:03:01 +00:00
|
|
|
margin: 0 16px;
|
|
|
|
height: 36px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_label {
|
2018-10-19 10:07:36 +00:00
|
|
|
flex: 1;
|
2018-04-11 23:23:35 +00:00
|
|
|
cursor: pointer;
|
2018-11-06 13:03:01 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 6px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2018-11-06 13:03:01 +00:00
|
|
|
.mx_RoomSubList_label > span {
|
|
|
|
flex: 1 1 auto;
|
2018-04-11 23:23:35 +00:00
|
|
|
text-transform: uppercase;
|
|
|
|
color: $roomsublist-label-fg-color;
|
2018-05-25 23:07:39 +00:00
|
|
|
font-weight: 700;
|
2018-10-24 12:03:16 +00:00
|
|
|
font-size: 12px;
|
2018-11-06 13:03:01 +00:00
|
|
|
margin-left: 8px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_badge {
|
2018-11-06 13:03:01 +00:00
|
|
|
flex: 0 0 auto;
|
2018-11-05 09:35:38 +00:00
|
|
|
border-radius: 8px;
|
2018-04-11 23:23:35 +00:00
|
|
|
color: $accent-fg-color;
|
|
|
|
font-weight: 600;
|
2018-10-22 16:16:36 +00:00
|
|
|
font-size: 12px;
|
2018-11-05 09:35:38 +00:00
|
|
|
padding: 0 5px;
|
2018-04-11 23:23:35 +00:00
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
|
|
|
|
2018-10-22 16:18:36 +00:00
|
|
|
.mx_RoomSubList_addRoom, .mx_RoomSubList_badge {
|
2018-11-06 13:03:01 +00:00
|
|
|
margin-left: 7px;
|
2018-10-22 16:18:36 +00:00
|
|
|
}
|
|
|
|
|
2018-10-19 10:07:36 +00:00
|
|
|
.mx_RoomSubList_addRoom {
|
|
|
|
background-color: $roomheader-addroom-color;
|
|
|
|
color: $roomsublist-background;
|
2018-11-05 13:25:28 +00:00
|
|
|
background-image: url('../../img/icons-room-add.svg');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
border-radius: 10px; // 16/2 + 2 padding
|
|
|
|
height: 16px;
|
|
|
|
flex: 0 0 16px;
|
|
|
|
background-clip: content-box;
|
2018-10-19 10:07:36 +00:00
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_RoomSubList_badgeHighlight {
|
|
|
|
background-color: $warning-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevron {
|
|
|
|
pointer-events: none;
|
2018-07-30 16:00:11 +00:00
|
|
|
background-image: url('../../img/topleft-chevron.svg');
|
2018-11-05 09:09:05 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
transition: transform 0.2s ease-in;
|
2018-11-06 13:03:01 +00:00
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
background-position: center;
|
|
|
|
margin-left: 2px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevronDown {
|
2018-07-30 16:00:11 +00:00
|
|
|
transform: rotateZ(0deg);
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevronUp {
|
2018-07-30 16:00:11 +00:00
|
|
|
transform: rotateZ(180deg);
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevronRight {
|
2018-07-30 16:00:11 +00:00
|
|
|
transform: rotateZ(-90deg);
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2018-11-01 15:34:12 +00:00
|
|
|
.mx_RoomSubList_scroll {
|
2018-10-19 10:09:15 +00:00
|
|
|
/* let rooms list grab all available space */
|
2018-11-01 15:34:12 +00:00
|
|
|
flex: 0 1 auto;
|
2018-11-06 09:20:04 +00:00
|
|
|
padding: 0 8px;
|
2018-10-19 10:09:15 +00:00
|
|
|
}
|
|
|
|
|
2018-10-16 12:55:35 +00:00
|
|
|
.collapsed {
|
|
|
|
|
2018-11-05 13:22:55 +00:00
|
|
|
.mx_RoomSubList_scroll {
|
2018-11-06 09:20:04 +00:00
|
|
|
padding: 0;
|
2018-10-16 12:55:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_labelContainer {
|
2018-11-06 13:03:01 +00:00
|
|
|
margin-right: 14px;
|
|
|
|
margin-left: 2px;
|
2018-10-16 12:55:35 +00:00
|
|
|
}
|
|
|
|
|
2018-11-06 13:03:01 +00:00
|
|
|
.mx_RoomSubList_addRoom {
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-right: 28px;
|
2018-10-16 12:55:35 +00:00
|
|
|
}
|
|
|
|
|
2018-11-06 13:03:01 +00:00
|
|
|
.mx_RoomSubList_label > span {
|
2018-10-16 12:55:35 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|