mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 06:02:25 +03:00
244 lines
5.3 KiB
SCSS
244 lines
5.3 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 {
|
|
display: table;
|
|
table-layout: fixed;
|
|
width: 100%;
|
|
|
|
background-color: $roomsublist-background;
|
|
}
|
|
|
|
.mx_RoomSubList_labelContainer {
|
|
height: 31px; /* mx_RoomSubList_label height including border */
|
|
width: 235px; /* LHS Panel width */
|
|
position: relative;
|
|
}
|
|
|
|
.mx_RoomSubList_label {
|
|
position: relative;
|
|
text-transform: uppercase;
|
|
color: $roomsublist-label-fg-color;
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
width: 203px; /* padding + width = LHS Panel width */
|
|
height: 19px; /* height + padding = 31px = mx_RoomSubList_label height */
|
|
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; */
|
|
}
|
|
|
|
.collapsed .mx_RoomSubList_label {
|
|
height: 17px;
|
|
width: 28px; /* collapsed LHS Panel width */
|
|
}
|
|
|
|
.collapsed .mx_RoomSubList_labelContainer {
|
|
width: 28px; /* collapsed LHS Panel width */
|
|
}
|
|
|
|
.mx_RoomSubList_roomCount {
|
|
display: inline-block;
|
|
font-size: 12px;
|
|
font-weight: normal;
|
|
color: $accent-color;
|
|
padding-left: 5px;
|
|
text-transform: none;
|
|
}
|
|
|
|
.collapsed .mx_RoomSubList_roomCount {
|
|
display: 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;
|
|
}
|
|
|
|
/*
|
|
.collapsed .mx_RoomSubList_badge {
|
|
display: none;
|
|
}
|
|
*/
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Hide the bottom of speech bubble */
|
|
.collapsed .mx_RoomSubList_badgeHighlight:after {
|
|
display: none;
|
|
}
|
|
|
|
.mx_RoomSubList_chevron {
|
|
pointer-events: none;
|
|
position: absolute;
|
|
right: 41px;
|
|
top: 11px;
|
|
}
|
|
|
|
.mx_RoomSubList_chevronDown {
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 5px solid transparent;
|
|
border-right: 5px solid transparent;
|
|
border-top: 6px solid $roomsublist-chevron-color;
|
|
}
|
|
|
|
.mx_RoomSubList_chevronUp {
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 5px solid transparent;
|
|
border-right: 5px solid transparent;
|
|
border-bottom: 6px solid $roomsublist-chevron-color;
|
|
}
|
|
|
|
.mx_RoomSubList_chevronRight {
|
|
width: 0;
|
|
height: 0;
|
|
border-top: 5px solid transparent;
|
|
border-left: 6px solid $roomsublist-chevron-color;
|
|
border-bottom: 5px solid transparent;
|
|
}
|
|
|
|
/* The overflow section */
|
|
.mx_RoomSubList_ellipsis {
|
|
display: block;
|
|
line-height: 11px;
|
|
height: 18px;
|
|
position: relative;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
|
|
background-color: $secondary-accent-color;
|
|
}
|
|
|
|
.collapsed .mx_RoomSubList_ellipsis {
|
|
height: 20px;
|
|
}
|
|
|
|
.mx_RoomSubList_line {
|
|
display: inline-block;
|
|
width: 159px;
|
|
border-top: dotted 2px $accent-color;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.collapsed .mx_RoomSubList_line {
|
|
display: none;
|
|
}
|
|
|
|
.mx_RoomSubList_more {
|
|
display: inline-block;
|
|
text-transform: uppercase;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-align: left;
|
|
color: $accent-color;
|
|
padding-left: 7px;
|
|
padding-right: 7px;
|
|
padding-left: 7px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.collapsed .mx_RoomSubList_more {
|
|
display: none;
|
|
}
|
|
|
|
.mx_RoomSubList_moreBadge {
|
|
display: inline-block;
|
|
min-width: 15px;
|
|
height: 13px;
|
|
position: absolute;
|
|
right: 8px; /*gutter */
|
|
top: -2px;
|
|
border-radius: 8px;
|
|
border: solid 1px $accent-color;
|
|
color: $accent-fg-color;
|
|
font-weight: 600;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
padding-top: 1px;
|
|
padding-left: 3px;
|
|
padding-right: 3px;
|
|
background-color: $primary-bg-color;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mx_RoomSubList_moreBadge.mx_RoomSubList_moreBadgeNotify {
|
|
background-color: $accent-color;
|
|
border: 0;
|
|
padding-top: 3px;
|
|
padding-left: 4px;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.mx_RoomSubList_moreBadge.mx_RoomSubList_moreBadgeHighlight {
|
|
background-color: $warning-color;
|
|
border: 0;
|
|
padding-top: 3px;
|
|
padding-left: 4px;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.collapsed .mx_RoomSubList_moreBadge {
|
|
position: static;
|
|
margin-left: 16px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.mx_RoomSubList_ellipsis .mx_RoomSubList_chevronDown {
|
|
position: relative;
|
|
top: 4px;
|
|
left: 2px;
|
|
}
|
|
|
|
|