2018-04-12 07:23:35 +08:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-12-19 22:29:46 +08:00
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
2018-04-12 07:23:35 +08:00
|
|
|
|
|
|
|
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;
|
2020-05-14 05:08:29 +08:00
|
|
|
height: 32px;
|
2018-11-01 23:34:12 +08:00
|
|
|
margin: 0;
|
2018-11-06 21:02:43 +08:00
|
|
|
padding: 0 8px 0 10px;
|
2018-10-16 20:54:30 +08:00
|
|
|
position: relative;
|
2020-04-02 22:13:19 +08:00
|
|
|
|
|
|
|
.mx_RoomTile_menuButton {
|
|
|
|
display: none;
|
|
|
|
flex: 0 0 16px;
|
|
|
|
height: 16px;
|
|
|
|
background-image: url('$(res)/img/icon_context.svg');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserOnlineDot {
|
|
|
|
display: block;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2019-07-10 23:55:03 +08:00
|
|
|
.mx_RoomTile:focus {
|
|
|
|
filter: none !important;
|
|
|
|
background-color: $roomtile-focused-bg-color;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_RoomTile_tooltip {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: -54px;
|
|
|
|
left: -12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_nameContainer {
|
2019-01-04 08:36:57 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-01-04 09:05:32 +08:00
|
|
|
flex: 1;
|
2018-12-12 12:40:11 +08:00
|
|
|
vertical-align: middle;
|
2019-01-08 03:54:01 +08:00
|
|
|
min-width: 0;
|
2018-12-12 12:40:11 +08:00
|
|
|
}
|
|
|
|
|
2019-01-04 08:36:57 +08:00
|
|
|
.mx_RoomTile_labelContainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 1;
|
2019-01-08 03:54:01 +08:00
|
|
|
min-width: 0;
|
2019-01-04 08:36:57 +08:00
|
|
|
}
|
|
|
|
|
2018-12-12 12:40:11 +08:00
|
|
|
.mx_RoomTile_subtext {
|
|
|
|
display: inline-block;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-11px;
|
2018-12-12 12:40:11 +08:00
|
|
|
padding: 0 0 0 7px;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: clip;
|
|
|
|
position: relative;
|
|
|
|
bottom: 4px;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_avatar_container {
|
|
|
|
position: relative;
|
2020-05-14 05:08:29 +08:00
|
|
|
display: flex;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomTile_avatar {
|
2019-01-04 09:07:34 +08:00
|
|
|
flex: 0;
|
|
|
|
padding: 4px;
|
2018-04-12 07:23:35 +08:00
|
|
|
width: 24px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2018-12-13 03:57:48 +08:00
|
|
|
.mx_RoomTile_hasSubtext .mx_RoomTile_avatar {
|
|
|
|
padding-top: 0;
|
|
|
|
vertical-align: super;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_RoomTile_dm {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: -5px;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
2020-01-22 01:17:40 +08:00
|
|
|
// Note we match .mx_E2EIcon to make sure this matches more tightly than just
|
|
|
|
// .mx_E2EIcon on its own
|
|
|
|
.mx_RoomTile_e2eIcon.mx_E2EIcon {
|
2020-01-29 22:28:19 +08:00
|
|
|
height: 14px;
|
|
|
|
width: 14px;
|
2020-01-22 01:17:40 +08:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2020-01-29 22:28:19 +08:00
|
|
|
bottom: -2px;
|
|
|
|
right: -5px;
|
2020-01-22 01:17:40 +08:00
|
|
|
z-index: 1;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_RoomTile_name {
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-14px;
|
2020-01-29 22:28:19 +08:00
|
|
|
padding: 0 4px;
|
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;
|
|
|
|
}
|
|
|
|
|
2019-07-10 23:55:03 +08:00
|
|
|
.mx_RoomTile_badge {
|
|
|
|
flex: 0 1 content;
|
|
|
|
border-radius: 0.8em;
|
|
|
|
padding: 0 0.4em;
|
2019-10-01 22:58:14 +08:00
|
|
|
color: $roomtile-badge-fg-color;
|
2019-07-10 23:55:03 +08:00
|
|
|
font-weight: 600;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-12px;
|
2019-07-10 23:55:03 +08:00
|
|
|
}
|
|
|
|
|
2018-10-16 20:54:30 +08:00
|
|
|
.collapsed {
|
2018-10-23 00:17:51 +08:00
|
|
|
.mx_RoomTile {
|
2019-08-06 00:03:20 +08:00
|
|
|
margin: 0 6px;
|
2018-11-06 21:02:43 +08:00
|
|
|
padding: 0 2px;
|
2018-11-05 21:23:28 +08:00
|
|
|
position: relative;
|
2018-11-06 21:02:43 +08:00
|
|
|
justify-content: center;
|
2018-10-23 00:17:51 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2018-10-16 20:54:30 +08:00
|
|
|
.mx_RoomTile_name {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2018-10-16 20:54:30 +08:00
|
|
|
.mx_RoomTile_badge {
|
2018-10-23 00:16:36 +08:00
|
|
|
position: absolute;
|
2018-11-05 21:23:28 +08:00
|
|
|
right: 6px;
|
|
|
|
top: 0px;
|
2018-10-16 20:54:30 +08:00
|
|
|
border-radius: 16px;
|
|
|
|
z-index: 3;
|
2018-11-05 21:23:28 +08:00
|
|
|
border: 0.18em solid $secondary-accent-color;
|
2018-10-16 20:54:30 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2018-11-06 00:42:25 +08:00
|
|
|
.mx_RoomTile_menuButton {
|
2020-04-02 22:13:19 +08:00
|
|
|
display: none; // no design for this for now
|
|
|
|
}
|
|
|
|
.mx_UserOnlineDot {
|
|
|
|
display: none; // no design for this for now
|
2018-10-16 20:54:30 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2020-01-15 10:44:22 +08:00
|
|
|
// toggle menuButton and badge on menu displayed
|
2019-07-10 23:55:03 +08:00
|
|
|
.mx_RoomTile_menuDisplayed,
|
2019-10-17 22:53:39 +08:00
|
|
|
// or on keyboard focus of room tile
|
2020-01-15 10:44:22 +08:00
|
|
|
.mx_LeftPanel_container:not(.collapsed) .mx_RoomTile:focus-within,
|
|
|
|
// or on pointer hover
|
2019-07-10 23:55:03 +08:00
|
|
|
.mx_LeftPanel_container:not(.collapsed) .mx_RoomTile:hover {
|
|
|
|
.mx_RoomTile_menuButton {
|
|
|
|
display: block;
|
|
|
|
}
|
2020-04-02 22:13:19 +08:00
|
|
|
.mx_UserOnlineDot {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2019-04-02 06:06:33 +08:00
|
|
|
.mx_RoomTile_unreadNotify .mx_RoomTile_badge,
|
|
|
|
.mx_RoomTile_badge.mx_RoomTile_badgeUnread {
|
2018-12-20 19:35:21 +08:00
|
|
|
background-color: $roomtile-name-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2019-04-02 06:06:33 +08:00
|
|
|
.mx_RoomTile_highlight .mx_RoomTile_badge,
|
2019-07-10 01:15:10 +08:00
|
|
|
.mx_RoomTile_badge.mx_RoomTile_badgeRed {
|
2019-10-01 22:58:14 +08:00
|
|
|
color: $accent-fg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
background-color: $warning-color;
|
|
|
|
}
|
|
|
|
|
2019-02-13 03:21:31 +08:00
|
|
|
.mx_RoomTile_unread, .mx_RoomTile_highlight {
|
|
|
|
.mx_RoomTile_name {
|
2019-02-26 00:57:48 +08:00
|
|
|
font-weight: 600;
|
2019-02-13 03:21:31 +08:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DNDRoomTile {
|
|
|
|
transform: none;
|
|
|
|
transition: transform 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DNDRoomTile_dragging {
|
|
|
|
transform: scale(1.05, 1.05);
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
2019-02-15 19:37:22 +08:00
|
|
|
|
|
|
|
.mx_GroupInviteTile .mx_RoomTile_name {
|
|
|
|
flex: 1;
|
|
|
|
}
|