172 lines
3.9 KiB
CSS
172 lines
3.9 KiB
CSS
/*
|
|
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_RoomTile {
|
|
cursor: pointer;
|
|
/* This fixes wrapping of long room names, but breaks drag & drop previews */
|
|
/* display: table-row; */
|
|
font-size: 13px;
|
|
display: block;
|
|
}
|
|
|
|
.mx_RoomTile .mx_RoomTile_mute {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.mx_RoomTile_avatar {
|
|
display: inline-block;
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
padding-left: 18px;
|
|
padding-right: 6px;
|
|
width: 24px;
|
|
height: 24px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mx_RoomTile_name {
|
|
display: inline-block;
|
|
position: relative;
|
|
width: 100px;
|
|
vertical-align: middle;
|
|
overflow: hidden;
|
|
/* word-break: break-word; */
|
|
white-space: nowrap;
|
|
padding-left: 5px;
|
|
padding-right: 15px;
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
color: rgba(69, 69, 69, 0.8);
|
|
}
|
|
|
|
.mx_RoomTile_name:before {
|
|
content:'';
|
|
width:100px;
|
|
height:22px;
|
|
top: 0px;
|
|
left: 0px;
|
|
position:absolute;
|
|
padding-left: 20px;
|
|
background:linear-gradient(to right, rgba(234,245,240,0) 80%, #eaf5f0 99%);
|
|
}
|
|
|
|
.mx_RoomTile_ellipsis .mx_RoomTile_name {
|
|
font-style: italic;
|
|
color: #454545;
|
|
}
|
|
|
|
.mx_RoomTile_invite {
|
|
/* color: rgba(69, 69, 69, 0.5);
|
|
*/
|
|
}
|
|
|
|
.collapsed .mx_RoomTile {
|
|
height: 36px;
|
|
}
|
|
|
|
.collapsed .mx_RoomTile_name {
|
|
display: none;
|
|
}
|
|
|
|
.collapsed .mx_RoomTile_badge {
|
|
top: -40px;
|
|
left: 30px;
|
|
min-width: 12px;
|
|
height: 16px;
|
|
border-radius: 16px;
|
|
padding: 0px 4px 0px 4px;
|
|
z-index: 200;
|
|
}
|
|
|
|
/* Hide the bottom of speech bubble */
|
|
.collapsed .mx_RoomTile_highlight .mx_RoomTile_badge:after {
|
|
display: none;
|
|
}
|
|
|
|
/* This is the bottom of the speech bubble */
|
|
.mx_RoomTile_highlight .mx_RoomTile_badge:not(.mx_RoomTile_badgeMute):after {
|
|
content: "";
|
|
position: absolute;
|
|
display: block;
|
|
width: 0;
|
|
height: 0;
|
|
margin-left: 4px;
|
|
border-top: 8px solid #ff0064;
|
|
border-right: 10px solid transparent;
|
|
}
|
|
|
|
.mx_RoomTile_badge {
|
|
display: inline-block;
|
|
min-width: 14px;
|
|
height: 17px;
|
|
position: relative;
|
|
left: 8px;
|
|
top: 2px;
|
|
border-radius: 14px;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
font-size: 11px;
|
|
text-align: center;
|
|
padding-top: 1px;
|
|
padding-left: 4px;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.mx_RoomTile .mx_RoomTile_badge.mx_RoomTile_badgeButton, .mx_RoomTile .mx_RoomTile_badge.mx_RoomTile_badgeButton.mx_RoomTile_badgeMute, .mx_RoomTile.mx_RoomTile_menu .mx_RoomTile_badge, .mx_RoomTile .mx_RoomTile_badge.mx_RoomTile_badgeButton.mx_RoomTile_badgeMute {
|
|
letter-spacing: 0.1em;
|
|
opacity: 1;
|
|
}
|
|
|
|
.mx_RoomTile .mx_RoomTile_badge.mx_RoomTile_badgeButton.mx_RoomTile_badgeMute, .mx_RoomTile .mx_RoomTile_badge.mx_RoomTile_badgeButton.mx_RoomTile_badgeMute {
|
|
background-color: rgb(214, 214, 214);
|
|
letter-spacing: 0.1em;
|
|
opacity: 1;
|
|
}
|
|
|
|
.mx_RoomTile .mx_RoomTile_badge.mx_RoomTile_badgeMute {
|
|
background-color: rgba(0,0,0,0);
|
|
opacity: 1;
|
|
top: 4px;
|
|
}
|
|
|
|
.mx_RoomTile_unreadNotify .mx_RoomTile_badge {
|
|
background-color: #76cfa6;
|
|
}
|
|
|
|
.mx_RoomTile_highlight .mx_RoomTile_badge {
|
|
background-color: #ff0064;
|
|
}
|
|
|
|
.mx_RoomTile_read .mx_RoomTile_badge {
|
|
background-color: rgb(214, 214, 214);
|
|
opacity: 0;
|
|
}
|
|
|
|
.mx_RoomTile_unread, .mx_RoomTile_highlight {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.mx_RoomTile_selected .mx_RoomTile_name {
|
|
background-color: rgba(118,207,166,0.2);
|
|
}
|
|
|
|
.mx_RoomTile_arrow {
|
|
position: absolute;
|
|
right: 0px;
|
|
}
|
|
|
|
.mx_RoomTile:hover {
|
|
}
|