2020-06-04 03:16:53 +00:00
|
|
|
/*
|
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2020-06-05 20:08:20 +00:00
|
|
|
// TODO: Rename to mx_RoomSublist during replacement of old component
|
|
|
|
|
2020-06-05 20:11:04 +00:00
|
|
|
// TODO: Just use the 3 selectors we need from this instead of importing it.
|
|
|
|
// We're going to end up with heavy modifications anyways.
|
2020-06-04 03:16:53 +00:00
|
|
|
@import "../../../../node_modules/react-resizable/css/styles.css";
|
2020-06-04 16:07:41 +00:00
|
|
|
|
2020-06-05 03:21:04 +00:00
|
|
|
.mx_RoomSublist2 {
|
|
|
|
// The sublist is a column of rows, essentially
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2020-06-10 05:09:15 +00:00
|
|
|
padding-left: 8px;
|
2020-06-05 03:21:04 +00:00
|
|
|
margin-top: 12px;
|
|
|
|
margin-bottom: 12px;
|
2020-06-10 05:09:15 +00:00
|
|
|
width: 100%;
|
2020-06-05 03:21:04 +00:00
|
|
|
|
|
|
|
.mx_RoomSublist2_headerContainer {
|
2020-06-08 19:42:18 +00:00
|
|
|
// Create a flexbox to make ordering easy
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.mx_RoomSublist2_badgeContainer {
|
|
|
|
opacity: 0.8;
|
|
|
|
padding-right: 7px;
|
|
|
|
|
|
|
|
// Create another flexbox row because it's super easy to position the badge at
|
|
|
|
// the end this way.
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSublist2_headerText {
|
|
|
|
text-transform: uppercase;
|
|
|
|
opacity: 0.5;
|
|
|
|
line-height: $font-16px;
|
|
|
|
font-size: $font-12px;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
// Ellipsize any text overflow
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2020-06-05 03:21:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSublist2_resizeBox {
|
|
|
|
// Create another flexbox column for the tiles
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
2020-06-05 14:48:23 +00:00
|
|
|
|
|
|
|
.mx_RoomSublist2_showMoreButton {
|
|
|
|
height: 44px; // 1 room tile high
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
// We create a flexbox to cheat at alignment
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2020-06-05 03:21:04 +00:00
|
|
|
}
|
2020-06-04 16:07:41 +00:00
|
|
|
}
|