/*
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;
}

.mx_RoomTile_avatar {
    display: table-cell;
    padding-right: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 18px;
    width: 24px;
    height: 24px;
    position: relative;
    vertical-align: middle;
}

.mx_RoomTile_avatar img {
    border-radius: 20px;
}

.mx_RoomTile_name {
    display: table-cell;
    width: 100%;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 16px;    
    color: rgba(69, 69, 69, 0.8);
}

.mx_RoomTile_invite {
/*    color: rgba(69, 69, 69, 0.5);
*/
}

.collapsed .mx_RoomTile_name {
    display: none;
}

/*
.mx_RoomTile_nameBadge {
    display: table;
    width: 100%;
    height: 50px;
}

.mx_RoomTile_badgeCell {
    display: table-cell;
    vertical-align: middle;
    width: 26px;
}

.mx_RoomTile_badge {    
    background-color: #76cfa6;
    color: #fff;
    border-radius: 26px;
    font-weight: 400;
    font-size: 14px;
    line-height: 28px;
    width: 26px;
    height: 26px;
    text-align: center;
}
*/

/*
.mx_RoomTile_badge {    
    background-color: #ff0064;
    border: 3px solid #fff;
    border-radius: 16px;
    width: 9px;
    height: 9px;
    position: absolute;
    right: 9px;
    bottom: 3px;
}
*/

.mx_RoomTile_badge {
    background-color: #76cfa6;
    width: 4px;
    position: absolute;
    left: 0px;
    top: 5px;
    height: 24px;
}

.mx_RoomTile_unread,
.mx_RoomTile_highlight {
    font-weight: bold;
}

.mx_RoomTile_selected .mx_RoomTile_name {
    color: #76cfa6 ! important;
}

.mx_RoomTile_highlight .mx_RoomTile_name {
    color: #ff0064 ! important;
}

.mx_RoomTile.mx_RoomTile_selected .mx_RoomTile_name {
    background: url('img/selected.png');
    background-repeat: no-repeat;
    background-position: right center;
}

.mx_RoomTile_arrow {
    position: absolute;
    right: 0px;
}

.mx_RoomTile:hover {
}
