206 lines
4.2 KiB
SCSS
206 lines
4.2 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_RoomTile {
|
|
position: relative;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
display: block;
|
|
height: 34px;
|
|
|
|
background-color: $secondary-accent-color;
|
|
}
|
|
|
|
.mx_RoomTile_tooltip {
|
|
display: inline-block;
|
|
position: relative;
|
|
top: -54px;
|
|
left: -12px;
|
|
}
|
|
|
|
|
|
.mx_RoomTile_nameContainer {
|
|
display: inline-block;
|
|
width: 180px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mx_RoomTile_subtext {
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
padding: 0 0 0 7px;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: clip;
|
|
position: relative;
|
|
bottom: 4px;
|
|
}
|
|
|
|
.mx_RoomTile_avatar_container {
|
|
position: relative;
|
|
}
|
|
|
|
.mx_RoomTile_avatar {
|
|
display: inline-block;
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
padding-left: 16px;
|
|
padding-right: 6px;
|
|
width: 24px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mx_RoomTile_hasSubtext .mx_RoomTile_avatar {
|
|
padding-top: 0;
|
|
vertical-align: super;
|
|
}
|
|
|
|
.mx_RoomTile_dm {
|
|
display: block;
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: -5px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.mx_RoomTile_name {
|
|
display: inline-block;
|
|
position: relative;
|
|
width: 165px;
|
|
vertical-align: middle;
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
padding-top: 2px;
|
|
padding-bottom: 3px;
|
|
color: $roomtile-name-color;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.mx_RoomTile_invite {
|
|
/* color: rgba(69, 69, 69, 0.5); */
|
|
}
|
|
|
|
.collapsed .mx_RoomTile_nameContainer {
|
|
width: 60px; /* colapsed panel width */
|
|
}
|
|
|
|
.collapsed .mx_RoomTile_name {
|
|
display: none;
|
|
}
|
|
|
|
.collapsed .mx_RoomTile_badge {
|
|
top: 0px;
|
|
min-width: 12px;
|
|
border-radius: 16px;
|
|
padding: 0px 4px 0px 4px;
|
|
z-index: 3;
|
|
}
|
|
|
|
/* 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: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 {
|
|
display: inline-block;
|
|
min-width: 15px;
|
|
height: 15px;
|
|
position: absolute;
|
|
right: 8px; /*gutter */
|
|
top: 9px;
|
|
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;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.mx_RoomTile_selected {
|
|
background-color: $roomtile-selected-bg-color;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|