mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
fce36ec826
* Remove deprecated feature_communities_v2_prototypes * Update _components * i18n * delint * Cut out a bit more dead code * Carve into legacy components * Carve into mostly the room list code * Carve into instances of "groupId" * Carve out more of what comes up with "groups" * Carve out some settings * ignore related groups state * Remove instances of spacesEnabled * Fix some obvious issues * Remove now-unused css * Fix variable naming for legacy components * Update i18n * Misc cleanup from manual review * Update snapshot for changed flag * Appease linters * rethemedex * Remove now-unused AddressPickerDialog * Make ConfirmUserActionDialog's member a required prop * Remove useless override from RightPanelStore * Remove extraneous CSS * Update i18n * Demo: "Communities are now Spaces" landing page * Restore linkify for group IDs * Demo: Dialog on click for communities->spaces notice * i18n for demos * i18n post-merge * Update copy * Appease the linter * Post-merge cleanup * Re-add spaces_learn_more_url to the new SdkConfig place * Round 1 of post-merge fixes * i18n Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
112 lines
3.2 KiB
SCSS
112 lines
3.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_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 {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.mx_MatrixChat_syncError {
|
|
color: $accent-fg-color;
|
|
background-color: #DF2A8B; // Only used here
|
|
border-radius: 5px;
|
|
display: table;
|
|
padding: 30px;
|
|
position: absolute;
|
|
top: 100px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
/* not the left panel, and not the resize handle, so the roomview and friends */
|
|
.mx_MatrixChat > :not(.mx_LeftPanel):not(.mx_SpacePanel):not(.mx_ResizeHandle):not(.mx_LeftPanel_outerWrapper) {
|
|
background-color: $background;
|
|
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
|
|
/* To fix https://github.com/vector-im/element-web/issues/3298 where Safari
|
|
needed height 100% all the way down to the HomePage. Height does not
|
|
have to be auto, empirically.
|
|
*/
|
|
height: 100%;
|
|
}
|
|
|
|
// 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);
|
|
// The condition to prevent bleeding is: (margin-left + margin-right < -11px) (IF there is NO margin on the leftPanel_wrapper)
|
|
// The resizeHandle does not change the gap between the left panel and the room view:
|
|
// the resizeHandle width is: 11px = 10px (padding) + 1px (width) and the total negative margin is -12px -> the handle requires no space
|
|
// 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)
|
|
}
|
|
|
|
.mx_MatrixChat > .mx_ResizeHandle_horizontal:hover {
|
|
position: relative;
|
|
|
|
&::before {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
|
|
height: 64px; // to match width of the ones on roomlist
|
|
width: 4px;
|
|
border-radius: 4px;
|
|
|
|
content: ' ';
|
|
|
|
background-color: $primary-content;
|
|
opacity: 0.8;
|
|
}
|
|
}
|