2018-04-12 01:23:35 +02: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.
|
|
|
|
*/
|
|
|
|
|
2018-11-26 14:50:29 +01:00
|
|
|
/* a word of explanation about the flex-shrink values employed here:
|
|
|
|
there are 3 priotized categories of screen real-estate grabbing,
|
|
|
|
each with a flex-shrink difference of 4 order of magnitude,
|
|
|
|
so they ideally wouldn't affect each other.
|
|
|
|
lowest category: .mx_RoomSubList
|
2018-12-18 14:32:46 +01:00
|
|
|
flex-shrink: 10000000
|
2019-10-22 12:30:47 +02:00
|
|
|
distribute size of items within the same category by their size
|
2018-11-26 14:50:29 +01:00
|
|
|
middle category: .mx_RoomSubList.resized-sized
|
2018-12-18 14:32:46 +01:00
|
|
|
flex-shrink: 1000
|
2018-11-26 14:50:29 +01:00
|
|
|
applied when using the resizer, will have a max-height set to it,
|
|
|
|
to limit the size
|
|
|
|
highest category: .mx_RoomSubList.resized-all
|
2018-12-18 14:32:46 +01:00
|
|
|
flex-shrink: 1
|
2018-11-26 14:50:29 +01:00
|
|
|
small flex-shrink value (1), is only added if you can drag the resizer so far
|
|
|
|
so in practice you can only assign this category if there is enough space.
|
|
|
|
*/
|
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
.mx_RoomSubList {
|
2018-10-18 16:25:22 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2018-04-12 01:23:35 +02:00
|
|
|
|
2018-11-26 14:50:29 +01:00
|
|
|
|
2019-01-24 15:44:16 +01:00
|
|
|
.mx_RoomSubList_nonEmpty .mx_AutoHideScrollbar_offset {
|
|
|
|
padding-bottom: 4px;
|
2018-11-26 14:50:29 +01:00
|
|
|
}
|
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
.mx_RoomSubList_labelContainer {
|
2018-10-19 12:07:36 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2018-11-05 10:35:38 +01:00
|
|
|
align-items: center;
|
2018-10-19 14:44:07 +02:00
|
|
|
flex: 0 0 auto;
|
2019-10-22 12:10:25 +02:00
|
|
|
margin: 0 8px;
|
|
|
|
padding: 0 8px;
|
2018-11-06 14:03:01 +01:00
|
|
|
height: 36px;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2019-11-04 17:47:20 +01:00
|
|
|
.mx_RoomSubList_labelContainer.focus-visible:focus-within {
|
2019-10-22 12:10:25 +02:00
|
|
|
background-color: $roomtile-focused-bg-color;
|
|
|
|
}
|
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
.mx_RoomSubList_label {
|
2018-10-19 12:07:36 +02:00
|
|
|
flex: 1;
|
2018-04-12 01:23:35 +02:00
|
|
|
cursor: pointer;
|
2018-11-06 14:03:01 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 6px;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2018-11-06 14:03:01 +01:00
|
|
|
.mx_RoomSubList_label > span {
|
|
|
|
flex: 1 1 auto;
|
2018-04-12 01:23:35 +02:00
|
|
|
text-transform: uppercase;
|
|
|
|
color: $roomsublist-label-fg-color;
|
2018-05-26 01:07:39 +02:00
|
|
|
font-weight: 700;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-12px;
|
2018-11-06 14:03:01 +01:00
|
|
|
margin-left: 8px;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2019-10-17 17:21:33 +02:00
|
|
|
.mx_RoomSubList_badge > div {
|
2018-11-06 14:03:01 +01:00
|
|
|
flex: 0 0 auto;
|
2020-04-16 20:15:34 +02:00
|
|
|
border-radius: $font-16px;
|
2018-04-12 01:23:35 +02:00
|
|
|
font-weight: 600;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-12px;
|
2018-11-05 10:35:38 +01:00
|
|
|
padding: 0 5px;
|
2019-10-01 16:58:14 +02:00
|
|
|
color: $roomtile-badge-fg-color;
|
2018-12-20 12:35:21 +01:00
|
|
|
background-color: $roomtile-name-color;
|
2019-02-07 14:40:50 +01:00
|
|
|
cursor: pointer;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2018-10-22 18:18:36 +02:00
|
|
|
.mx_RoomSubList_addRoom, .mx_RoomSubList_badge {
|
2018-11-06 14:03:01 +01:00
|
|
|
margin-left: 7px;
|
2018-10-22 18:18:36 +02:00
|
|
|
}
|
|
|
|
|
2018-10-19 12:07:36 +02:00
|
|
|
.mx_RoomSubList_addRoom {
|
2019-02-15 19:16:10 +01:00
|
|
|
background-color: $roomheader-addroom-bg-color;
|
2018-11-05 14:25:28 +01:00
|
|
|
border-radius: 10px; // 16/2 + 2 padding
|
|
|
|
height: 16px;
|
|
|
|
flex: 0 0 16px;
|
2019-02-15 19:16:10 +01:00
|
|
|
position: relative;
|
|
|
|
|
2019-04-09 16:03:13 +02:00
|
|
|
&::before {
|
2019-02-15 19:16:10 +01:00
|
|
|
background-color: $roomheader-addroom-fg-color;
|
|
|
|
mask: url('$(res)/img/icons-room-add.svg');
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
2018-10-19 12:07:36 +02:00
|
|
|
}
|
|
|
|
|
2019-10-17 17:21:33 +02:00
|
|
|
.mx_RoomSubList_badgeHighlight > div {
|
2019-10-01 16:58:14 +02:00
|
|
|
color: $accent-fg-color;
|
2018-12-20 13:46:43 +01:00
|
|
|
background-color: $warning-color;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevron {
|
|
|
|
pointer-events: none;
|
2019-02-27 11:42:05 +01:00
|
|
|
mask: url('$(res)/img/feather-customised/dropdown-arrow.svg');
|
2019-01-30 22:44:10 +01:00
|
|
|
mask-repeat: no-repeat;
|
2018-11-05 10:09:05 +01:00
|
|
|
transition: transform 0.2s ease-in;
|
2018-11-06 14:03:01 +01:00
|
|
|
width: 10px;
|
2019-01-30 22:44:10 +01:00
|
|
|
height: 6px;
|
2018-11-06 14:03:01 +01:00
|
|
|
margin-left: 2px;
|
2019-01-30 22:44:10 +01:00
|
|
|
background-color: $roomsublist-label-fg-color;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevronDown {
|
2018-07-30 18:00:11 +02:00
|
|
|
transform: rotateZ(0deg);
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevronUp {
|
2018-07-30 18:00:11 +02:00
|
|
|
transform: rotateZ(180deg);
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_chevronRight {
|
2018-07-30 18:00:11 +02:00
|
|
|
transform: rotateZ(-90deg);
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2018-11-01 16:34:12 +01:00
|
|
|
.mx_RoomSubList_scroll {
|
2018-11-26 14:50:29 +01:00
|
|
|
/* let rooms list grab as much space as it needs (auto),
|
|
|
|
potentially overflowing and showing a scrollbar */
|
2018-11-01 16:34:12 +01:00
|
|
|
flex: 0 1 auto;
|
2018-11-06 10:20:04 +01:00
|
|
|
padding: 0 8px;
|
2018-10-19 12:09:15 +02:00
|
|
|
}
|
|
|
|
|
2019-04-09 16:03:13 +02:00
|
|
|
.collapsed {
|
|
|
|
.mx_RoomSubList_scroll {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_labelContainer {
|
2019-08-05 18:03:20 +02:00
|
|
|
margin-right: 8px;
|
2019-04-09 16:03:13 +02:00
|
|
|
margin-left: 2px;
|
2019-11-07 11:16:57 +01:00
|
|
|
padding: 0;
|
2019-04-09 16:03:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_addRoom {
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSubList_label > span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-26 14:50:29 +01:00
|
|
|
// overflow indicators
|
|
|
|
.mx_RoomSubList:not(.resized-all) > .mx_RoomSubList_scroll {
|
2020-03-25 19:26:59 +01:00
|
|
|
&.mx_IndicatorScrollbar_topOverflow::before {
|
2018-11-26 14:50:29 +01:00
|
|
|
position: sticky;
|
2020-03-25 19:33:55 +01:00
|
|
|
content: "";
|
|
|
|
top: 0;
|
2018-11-26 14:50:29 +01:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2019-01-31 13:31:55 +01:00
|
|
|
height: 8px;
|
2018-11-26 14:50:29 +01:00
|
|
|
z-index: 100;
|
2020-03-25 19:33:55 +01:00
|
|
|
display: block;
|
2018-11-26 14:50:29 +01:00
|
|
|
pointer-events: none;
|
2020-03-25 19:33:55 +01:00
|
|
|
transition: background-image 0.1s ease-in;
|
|
|
|
background: linear-gradient(to top, $panel-gradient);
|
2018-11-26 14:50:29 +01:00
|
|
|
}
|
2018-11-12 12:57:21 +01:00
|
|
|
|
2020-03-25 19:26:59 +01:00
|
|
|
|
|
|
|
&.mx_IndicatorScrollbar_topOverflow {
|
2019-01-31 13:31:55 +01:00
|
|
|
margin-top: -8px;
|
2018-11-26 14:50:29 +01:00
|
|
|
}
|
2018-10-16 14:55:35 +02:00
|
|
|
}
|