132 lines
3 KiB
CSS
132 lines
3 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;
|
|
position: relative;
|
|
}
|
|
|
|
.mx_RoomTile_avatar {
|
|
display: table-cell;
|
|
padding-right: 11px;
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
padding-left: 18px;
|
|
width: 24px;
|
|
height: 24px;
|
|
position: relative;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mx_RoomTile_name {
|
|
display: table-cell;
|
|
width: 100%;
|
|
vertical-align: middle;
|
|
overflow: hidden;
|
|
word-break: break-word;
|
|
padding-right: 15px;
|
|
color: rgba(69, 69, 69, 0.8);
|
|
}
|
|
|
|
.mx_RoomTile_ellipsis .mx_RoomTile_name {
|
|
font-style: italic;
|
|
color: #454545;
|
|
}
|
|
|
|
.mx_RoomTile_invite {
|
|
/* color: rgba(69, 69, 69, 0.5);
|
|
*/
|
|
}
|
|
|
|
.collapsed .mx_RoomTile_name {
|
|
display: none;
|
|
}
|
|
|
|
.collapsed .mx_RoomTile_badge {
|
|
margin-top: -15px;
|
|
right: 7px;
|
|
}
|
|
|
|
.mx_RoomTile_badge {
|
|
min-width: 12px;
|
|
height: 16px;
|
|
position: absolute;
|
|
right: 16px;
|
|
top: 50%;
|
|
margin-top: -8px;
|
|
border-radius: 16px;
|
|
color: #fff;
|
|
font-weight: bold;
|
|
font-size: 11px;
|
|
text-align: center;
|
|
padding: 0px 4px 0px 4px;
|
|
}
|
|
|
|
.mx_RoomTile_unreadNotify .mx_RoomTile_badge {
|
|
background-color: #76cfa6;
|
|
}
|
|
|
|
.mx_RoomTile_highlight .mx_RoomTile_badge {
|
|
background-color: #ff0064;
|
|
}
|
|
|
|
.mx_RoomTile_unread,
|
|
.mx_RoomTile_highlight {
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* the inner highlight span has 4px of padding on it, so we shrink the _avatar by 4px and grow the _name by 4px to fit it in */
|
|
.mx_RoomTile_selected .mx_RoomTile_name {
|
|
padding-right: 19px;
|
|
}
|
|
.mx_RoomTile_selected .mx_RoomTile_avatar {
|
|
padding-right: 7px;
|
|
}
|
|
|
|
/* leave room for the badge, if present.
|
|
N.B. this has to come after the above _selected width tweaks */
|
|
.mx_RoomTile_unreadNotify .mx_RoomTile_name,
|
|
.mx_RoomTile_highlight .mx_RoomTile_name {
|
|
padding-right: 40px;
|
|
}
|
|
|
|
.mx_RoomTile_selected .mx_RoomTile_name span {
|
|
display: inline-block;
|
|
position: relative;
|
|
width: 100%;
|
|
padding: 4px;
|
|
margin-top: -4px;
|
|
margin-bottom: -4px;
|
|
border-radius: 2px;
|
|
background-color: rgba(118,207,166,0.2);
|
|
}
|
|
|
|
/* stop the span from overlapping with the badge */
|
|
.mx_RoomTile_unreadNotify.mx_RoomTile_selected .mx_RoomTile_name span,
|
|
.mx_RoomTile_highlight.mx_RoomTile_selected .mx_RoomTile_name span {
|
|
padding-right: 22px;
|
|
}
|
|
|
|
.mx_RoomTile_arrow {
|
|
position: absolute;
|
|
right: 0px;
|
|
}
|
|
|
|
.mx_RoomTile:hover {
|
|
}
|