add-privileged-users-in-room (#9596)
This commit is contained in:
parent
982c83d2a8
commit
95ac957fa4
10 changed files with 927 additions and 3 deletions
|
@ -46,6 +46,7 @@
|
|||
@import "./components/views/typography/_Caption.pcss";
|
||||
@import "./compound/_Icon.pcss";
|
||||
@import "./structures/_AutoHideScrollbar.pcss";
|
||||
@import "./structures/_AutocompleteInput.pcss";
|
||||
@import "./structures/_BackdropPanel.pcss";
|
||||
@import "./structures/_CompatibilityPage.pcss";
|
||||
@import "./structures/_ContextualMenu.pcss";
|
||||
|
|
129
res/css/structures/_AutocompleteInput.pcss
Normal file
129
res/css/structures/_AutocompleteInput.pcss
Normal file
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
Copyright 2022 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_AutocompleteInput {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_search_icon {
|
||||
margin-left: $spacing-8;
|
||||
fill: $secondary-content;
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_editor {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
border: 1px solid $input-border-color;
|
||||
border-radius: 4px;
|
||||
transition: border-color 0.25s;
|
||||
|
||||
> input {
|
||||
flex: 1;
|
||||
min-width: 40%;
|
||||
resize: none;
|
||||
// `!important` is required to bypass global input styles.
|
||||
margin: 0 !important;
|
||||
padding: $spacing-8 9px;
|
||||
border: none !important;
|
||||
color: $primary-content !important;
|
||||
font-weight: normal !important;
|
||||
|
||||
&::placeholder {
|
||||
color: $primary-content !important;
|
||||
font-weight: normal !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_editor--focused {
|
||||
border-color: $links;
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_editor--has-suggestions {
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_editor_selection {
|
||||
display: flex;
|
||||
margin-left: $spacing-8;
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_editor_selection_pill {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 12px;
|
||||
padding-left: $spacing-8;
|
||||
padding-right: $spacing-8;
|
||||
background-color: $username-variant1-color;
|
||||
color: #ffffff;
|
||||
font-size: $font-12px;
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_editor_selection_remove_button {
|
||||
padding: 0 $spacing-4;
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_matches {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: $background;
|
||||
border: 1px solid $links;
|
||||
border-top-color: $input-border-color;
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_suggestion {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: $spacing-8;
|
||||
cursor: pointer;
|
||||
|
||||
> * {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $quinary-content;
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_suggestion--selected {
|
||||
background-color: $quinary-content;
|
||||
|
||||
&:last-child {
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_suggestion_title {
|
||||
margin-right: $spacing-8;
|
||||
}
|
||||
|
||||
.mx_AutocompleteInput_suggestion_description {
|
||||
color: $secondary-content;
|
||||
font-size: $font-12px;
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.1333 8.06667C12.1333 10.3126 10.3126 12.1333 8.06667 12.1333C5.82071 12.1333 4 10.3126 4 8.06667C4 5.82071 5.82071 4 8.06667 4C10.3126 4 12.1333 5.82071 12.1333 8.06667ZM12.9992 11.5994C13.7131 10.6044 14.1333 9.38463 14.1333 8.06667C14.1333 4.71614 11.4172 2 8.06667 2C4.71614 2 2 4.71614 2 8.06667C2 11.4172 4.71614 14.1333 8.06667 14.1333C9.38457 14.1333 10.6043 13.7131 11.5992 12.9993C11.6274 13.0369 11.6586 13.0729 11.6928 13.1071L14.2928 15.7071C14.6833 16.0977 15.3165 16.0977 15.707 15.7071C16.0975 15.3166 16.0975 14.6834 15.707 14.2929L13.107 11.6929C13.0728 11.6587 13.0368 11.6276 12.9992 11.5994Z" fill="black"/>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 784 B After Width: | Height: | Size: 772 B |
Loading…
Add table
Add a link
Reference in a new issue