2018-04-12 07:23:35 +08:00
|
|
|
/*
|
|
|
|
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 {
|
2018-09-24 23:06:57 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2018-04-12 07:23:35 +08:00
|
|
|
cursor: pointer;
|
2018-05-25 10:17:29 +08:00
|
|
|
height: 40px;
|
2018-11-01 23:34:12 +08:00
|
|
|
margin: 0;
|
2018-10-23 00:17:51 +08:00
|
|
|
padding: 2px 12px;
|
2018-10-16 20:54:30 +08:00
|
|
|
position: relative;
|
2018-04-12 07:23:35 +08:00
|
|
|
background-color: $secondary-accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_tooltip {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: -54px;
|
|
|
|
left: -12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_avatar {
|
2018-09-24 23:06:57 +08:00
|
|
|
flex: 0;
|
2018-10-23 00:17:51 +08:00
|
|
|
padding: 4px;
|
2018-05-25 10:17:29 +08:00
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2018-10-16 20:53:44 +08:00
|
|
|
.mx_RoomTile_avatar_container {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_RoomTile_dm {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: -5px;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_name {
|
2018-09-24 23:06:57 +08:00
|
|
|
flex: 1 5 auto;
|
2018-10-24 20:03:16 +08:00
|
|
|
font-size: 14px;
|
2018-05-26 07:07:39 +08:00
|
|
|
font-weight: 600;
|
2018-09-24 23:06:57 +08:00
|
|
|
padding: 6px;
|
2018-04-12 07:23:35 +08:00
|
|
|
color: $roomtile-name-color;
|
|
|
|
white-space: nowrap;
|
2018-09-24 23:06:57 +08:00
|
|
|
overflow-x: hidden;
|
2018-04-12 07:23:35 +08:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_invite {
|
|
|
|
/* color: rgba(69, 69, 69, 0.5); */
|
|
|
|
}
|
|
|
|
|
2018-10-16 20:54:30 +08:00
|
|
|
.collapsed {
|
2018-10-23 00:17:51 +08:00
|
|
|
.mx_RoomTile {
|
|
|
|
margin: 2px;
|
|
|
|
padding: 2px 0 2px 12px;
|
|
|
|
}
|
|
|
|
|
2018-10-16 20:54:30 +08:00
|
|
|
.mx_RoomTile_name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_badge {
|
2018-10-23 00:16:36 +08:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
height: 15px;
|
|
|
|
right: 8px;
|
|
|
|
top: 2px;
|
2018-10-16 20:54:30 +08:00
|
|
|
min-width: 12px;
|
|
|
|
border-radius: 16px;
|
|
|
|
padding: 0px 4px 0px 4px;
|
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide the bottom of speech bubble */
|
|
|
|
.mx_RoomTile_highlight .mx_RoomTile_badge:after {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* This is the bottom of the speech bubble */
|
|
|
|
.mx_RoomTile_highlight .mx_RoomTile_badge:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
margin-left: 5px;
|
|
|
|
border-top: 5px solid $warning-color;
|
|
|
|
border-right: 7px solid transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_badge {
|
2018-09-24 23:06:57 +08:00
|
|
|
flex: 0 1 content;
|
2018-04-12 07:23:35 +08:00
|
|
|
min-width: 15px;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: $accent-fg-color;
|
|
|
|
font-weight: 600;
|
2018-10-23 00:16:36 +08:00
|
|
|
font-size: 12px;
|
2018-04-12 07:23:35 +08:00
|
|
|
text-align: center;
|
|
|
|
padding-top: 1px;
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile .mx_RoomTile_badge.mx_RoomTile_badgeButton,
|
|
|
|
.mx_RoomTile.mx_RoomTile_menuDisplayed .mx_RoomTile_badge {
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile.mx_RoomTile_noBadges .mx_RoomTile_badge.mx_RoomTile_badgeButton,
|
|
|
|
.mx_RoomTile.mx_RoomTile_menuDisplayed.mx_RoomTile_noBadges .mx_RoomTile_badge {
|
|
|
|
background-color: $neutral-badge-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_unreadNotify .mx_RoomTile_badge {
|
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_highlight .mx_RoomTile_badge {
|
|
|
|
background-color: $warning-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_unread, .mx_RoomTile_highlight {
|
|
|
|
font-weight: 800;
|
2018-10-23 00:18:08 +08:00
|
|
|
|
|
|
|
.mx_RoomTile_name {
|
|
|
|
color: $roomtile-selected-color;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_selected {
|
2018-05-25 10:17:29 +08:00
|
|
|
border-radius: 4px;
|
2018-04-12 07:23:35 +08:00
|
|
|
background-color: $roomtile-selected-bg-color;
|
|
|
|
|
2018-10-23 00:18:08 +08:00
|
|
|
.mx_RoomTile_name {
|
|
|
|
color: $roomtile-selected-color;
|
|
|
|
}
|
2018-05-25 10:17:29 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_DNDRoomTile {
|
|
|
|
transform: none;
|
|
|
|
transition: transform 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DNDRoomTile_dragging {
|
|
|
|
transform: scale(1.05, 1.05);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile:focus {
|
|
|
|
filter: none ! important;
|
|
|
|
background-color: $roomtile-focused-bg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile .mx_RoomTile_name.mx_RoomTile_badgeShown {
|
|
|
|
width: 140px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_arrow {
|
|
|
|
position: absolute;
|
|
|
|
right: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile.mx_RoomTile_transparent {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile.mx_RoomTile_transparent:focus {
|
|
|
|
background-color: $roomtile-transparent-focused-color;
|
|
|
|
}
|
|
|
|
|