Device manager - updated dropdown style in filtered device list (PSG-689) (#9226)
* add FilterDropdown wrapper on Dropdown for filter styles * test and fix strict errors * fix comment
This commit is contained in:
parent
825a0af4a9
commit
50f6986f6c
10 changed files with 389 additions and 20 deletions
|
@ -16,6 +16,7 @@
|
|||
@import "./components/views/beacon/_RoomLiveShareWarning.pcss";
|
||||
@import "./components/views/beacon/_ShareLatestLocation.pcss";
|
||||
@import "./components/views/beacon/_StyledLiveBeaconIcon.pcss";
|
||||
@import "./components/views/elements/_FilterDropdown.pcss";
|
||||
@import "./components/views/location/_EnableLiveShare.pcss";
|
||||
@import "./components/views/location/_LiveDurationDropdown.pcss";
|
||||
@import "./components/views/location/_LocationShareMenu.pcss";
|
||||
|
|
77
res/css/components/views/elements/_FilterDropdown.pcss
Normal file
77
res/css/components/views/elements/_FilterDropdown.pcss
Normal file
|
@ -0,0 +1,77 @@
|
|||
/*
|
||||
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_FilterDropdown {
|
||||
.mx_Dropdown_menu {
|
||||
margin-top: $spacing-4;
|
||||
left: unset;
|
||||
right: -$spacing-12;
|
||||
width: 232px;
|
||||
|
||||
border: 1px solid $quinary-content;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0px 1px 3px rgba(23, 25, 28, 0.05);
|
||||
|
||||
.mx_Dropdown_option_highlight {
|
||||
background-color: $system;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_Dropdown_input {
|
||||
height: 24px;
|
||||
background-color: $quinary-content;
|
||||
border-color: $quinary-content;
|
||||
color: $secondary-content;
|
||||
border-radius: 4px;
|
||||
|
||||
&:focus {
|
||||
border-color: $quinary-content;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_Dropdown_arrow {
|
||||
background: $secondary-content;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_FilterDropdown_option {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: $spacing-8 0 $spacing-8 $spacing-20;
|
||||
|
||||
font-size: $font-12px;
|
||||
line-height: $font-15px;
|
||||
color: $primary-content;
|
||||
}
|
||||
|
||||
.mx_FilterDropdown_optionSelectedIcon {
|
||||
height: 14px;
|
||||
width: 14px;
|
||||
position: absolute;
|
||||
top: $spacing-8;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.mx_FilterDropdown_optionLabel {
|
||||
font-weight: $font-semi-bold;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.mx_FilterDropdown_optionDescription {
|
||||
color: $secondary-content;
|
||||
margin-top: $spacing-4;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue