2018-04-11 23:23:35 +00: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_MatrixChat_splash {
|
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MatrixChat_splashButtons {
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MatrixChat_wrapper {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MatrixToolbar {
|
|
|
|
order: 1;
|
|
|
|
|
|
|
|
height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MatrixChat {
|
2021-08-16 14:52:32 +00:00
|
|
|
position: relative;
|
2018-04-11 23:23:35 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex: 1;
|
2018-10-22 13:55:29 +00:00
|
|
|
min-height: 0;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2018-09-07 11:18:25 +00:00
|
|
|
.mx_MatrixChat_syncError {
|
|
|
|
color: $accent-fg-color;
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: #DF2A8B; // Only used here
|
2018-09-07 11:18:25 +00:00
|
|
|
border-radius: 5px;
|
|
|
|
display: table;
|
|
|
|
padding: 30px;
|
|
|
|
position: absolute;
|
|
|
|
top: 100px;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
}
|
|
|
|
|
2022-03-22 23:07:37 +00:00
|
|
|
/* not the left panel, and not the resize handle, so the roomview and friends */
|
2022-03-17 08:25:57 +00:00
|
|
|
.mx_MatrixChat > :not(.mx_LeftPanel):not(.mx_SpacePanel):not(.mx_ResizeHandle):not(.mx_LeftPanel_outerWrapper) {
|
2021-08-12 09:10:47 +00:00
|
|
|
background-color: $background;
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2019-01-09 18:05:21 +00:00
|
|
|
flex: 1 1 0;
|
|
|
|
min-width: 0;
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2020-08-03 15:02:26 +00:00
|
|
|
/* To fix https://github.com/vector-im/element-web/issues/3298 where Safari
|
2018-04-11 23:23:35 +00:00
|
|
|
needed height 100% all the way down to the HomePage. Height does not
|
|
|
|
have to be auto, empirically.
|
|
|
|
*/
|
|
|
|
height: 100%;
|
|
|
|
}
|
2020-07-14 23:20:39 +00:00
|
|
|
|
2021-12-06 12:10:52 +00:00
|
|
|
// We'd like to remove this, but this makes matrixchat's resizehandle's
|
|
|
|
// negative margin greater than its positive padding. If it's the same
|
|
|
|
// or less, Safari and other WebKit based browsers get confused about overflows somehow and
|
|
|
|
// https://github.com/vector-im/element-web/issues/19863 happens.
|
|
|
|
.mx_MatrixChat > .mx_ResizeHandle.mx_ResizeHandle_horizontal {
|
|
|
|
margin: 0 calc(-5.5px - $container-gap-width / 2) 0 calc(-6.5px + $container-gap-width / 2);
|
2022-07-15 13:53:23 +00:00
|
|
|
// The condition to prevent bleeding is: (margin-left + margin-right < -11px)
|
|
|
|
// (IF there is NO margin on the leftPanel_wrapper)
|
2021-12-06 12:10:52 +00:00
|
|
|
// The resizeHandle does not change the gap between the left panel and the room view:
|
2022-07-15 13:53:23 +00:00
|
|
|
// the resizeHandle width is:
|
2022-07-25 10:43:41 +00:00
|
|
|
// 11px = 10px (padding) + 1px (width)
|
|
|
|
// and the total negative margin is -12px ->
|
|
|
|
// the handle requires no space
|
2021-12-06 12:10:52 +00:00
|
|
|
// right: -6px left: -6px positions the element exactly on the edge of leftPanel.
|
|
|
|
// left+=1 and right-=1 => resizeHandle moves 1px to the right closer to the center of the gap.
|
|
|
|
// We want the handle to be in the middle of the gap so it is shifted by ($container-gap-width / 2)
|
|
|
|
}
|
|
|
|
|
2020-07-14 23:20:39 +00:00
|
|
|
.mx_MatrixChat > .mx_ResizeHandle_horizontal:hover {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
2021-12-06 12:10:52 +00:00
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
2020-07-14 23:20:39 +00:00
|
|
|
|
2020-07-16 13:54:48 +00:00
|
|
|
height: 64px; // to match width of the ones on roomlist
|
2020-07-14 23:20:39 +00:00
|
|
|
width: 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
content: ' ';
|
|
|
|
|
2021-08-12 09:27:12 +00:00
|
|
|
background-color: $primary-content;
|
2020-07-14 23:20:39 +00:00
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
}
|