132 lines
2.8 KiB
SCSS
132 lines
2.8 KiB
SCSS
/*
|
|
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 {
|
|
min-height: 31px;
|
|
flex: 0 1 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.mx_RoomSubList_nonEmpty {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.mx_RoomSubList_labelContainer {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
flex: 0 0 auto;
|
|
margin: 0 16px;
|
|
height: 36px;
|
|
}
|
|
|
|
.mx_RoomSubList_label {
|
|
flex: 1;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 6px;
|
|
}
|
|
|
|
.mx_RoomSubList_label > span {
|
|
flex: 1 1 auto;
|
|
text-transform: uppercase;
|
|
color: $roomsublist-label-fg-color;
|
|
font-weight: 700;
|
|
font-size: 12px;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.mx_RoomSubList_badge {
|
|
flex: 0 0 auto;
|
|
border-radius: 8px;
|
|
color: $accent-fg-color;
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
padding: 0 5px;
|
|
background-color: $accent-color;
|
|
}
|
|
|
|
.mx_RoomSubList_addRoom, .mx_RoomSubList_badge {
|
|
margin-left: 7px;
|
|
}
|
|
|
|
.mx_RoomSubList_addRoom {
|
|
background-color: $roomheader-addroom-color;
|
|
color: $roomsublist-background;
|
|
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;
|
|
}
|
|
|
|
.mx_RoomSubList_badgeHighlight {
|
|
background-color: $warning-color;
|
|
}
|
|
|
|
.mx_RoomSubList_chevron {
|
|
pointer-events: none;
|
|
background-image: url('../../img/topleft-chevron.svg');
|
|
background-repeat: no-repeat;
|
|
transition: transform 0.2s ease-in;
|
|
width: 10px;
|
|
height: 10px;
|
|
background-position: center;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.mx_RoomSubList_chevronDown {
|
|
transform: rotateZ(0deg);
|
|
}
|
|
|
|
.mx_RoomSubList_chevronUp {
|
|
transform: rotateZ(180deg);
|
|
}
|
|
|
|
.mx_RoomSubList_chevronRight {
|
|
transform: rotateZ(-90deg);
|
|
}
|
|
|
|
.mx_RoomSubList_scroll {
|
|
/* let rooms list grab all available space */
|
|
flex: 0 1 auto;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.collapsed {
|
|
|
|
.mx_RoomSubList_scroll {
|
|
padding: 0;
|
|
}
|
|
|
|
.mx_RoomSubList_labelContainer {
|
|
margin-right: 14px;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.mx_RoomSubList_addRoom {
|
|
margin-left: 3px;
|
|
margin-right: 28px;
|
|
}
|
|
|
|
.mx_RoomSubList_label > span {
|
|
display: none;
|
|
}
|
|
}
|