Tweak appearance of invite reason
This adjusts the display of invite reasons to match design feedback. Fixes https://github.com/vector-im/element-web/issues/16869
This commit is contained in:
parent
f83aacbe9b
commit
650421eefb
11 changed files with 127 additions and 91 deletions
|
@ -123,6 +123,7 @@
|
|||
@import "./views/elements/_ImageView.scss";
|
||||
@import "./views/elements/_InfoTooltip.scss";
|
||||
@import "./views/elements/_InlineSpinner.scss";
|
||||
@import "./views/elements/_InviteReason.scss";
|
||||
@import "./views/elements/_ManageIntegsButton.scss";
|
||||
@import "./views/elements/_MiniAvatarUploader.scss";
|
||||
@import "./views/elements/_PowerSelector.scss";
|
||||
|
|
58
res/css/views/elements/_InviteReason.scss
Normal file
58
res/css/views/elements/_InviteReason.scss
Normal file
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
Copyright 2021 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.
|
||||
*/
|
||||
|
||||
.mx_InviteReason {
|
||||
position: relative;
|
||||
margin-bottom: 1em;
|
||||
|
||||
.mx_InviteReason_reason {
|
||||
filter: none;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
.mx_InviteReason_toggle {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
color: $secondary-fg-color;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
margin-right: 8px;
|
||||
background-color: $secondary-fg-color;
|
||||
mask-image: url('$(res)/img/feather-customised/eye.svg');
|
||||
display: inline-block;
|
||||
width: 18px;
|
||||
height: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mx_InviteReason_hidden {
|
||||
.mx_InviteReason_reason {
|
||||
filter: blur(5px) saturate(0.1) sepia(1);
|
||||
}
|
||||
|
||||
.mx_InviteReason_toggle {
|
||||
display: flex;
|
||||
}
|
||||
}
|
|
@ -40,35 +40,6 @@ limitations under the License.
|
|||
word-break: break-word;
|
||||
}
|
||||
|
||||
.mx_RoomPreviewBar_reason {
|
||||
text-align: left;
|
||||
background-color: $primary-bg-color;
|
||||
border: 1px solid $invite-reason-border-color;
|
||||
border-radius: 10px;
|
||||
padding: 0 16px 12px 16px;
|
||||
margin: 5px 0 20px 0;
|
||||
|
||||
div {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.mx_EventTile_msgOption {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mx_MatrixChat_useCompactLayout & {
|
||||
padding-top: 9px;
|
||||
}
|
||||
|
||||
&.mx_EventTilePreview_faded {
|
||||
cursor: pointer;
|
||||
|
||||
.mx_SenderProfile, .mx_EventTile_avatar {
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mx_Spinner {
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue