Skip to content

Commit 2bf177d

Browse files
committed
Refactored the queryList into seperate AddressSelector component
1 parent e6c4273 commit 2bf177d

File tree

2 files changed

+45
-26
lines changed

2 files changed

+45
-26
lines changed

src/skins/vector/css/matrix-react-sdk/views/dialogs/ChatInviteDialog.css

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -45,32 +45,6 @@ limitations under the License.
4545
overflow: hidden;
4646
}
4747

48-
.mx_ChatInviteDialog_queryList {
49-
position: absolute;
50-
background-color: #fff;
51-
width: 485px;
52-
max-height: 116px;
53-
overflow-y: scroll;
54-
border-radius: 3px;
55-
background-color: #fff;
56-
border: solid 1px #76cfa6;
57-
cursor: pointer;
58-
}
59-
60-
.mx_ChatInviteDialog_queryListElement .mx_AddressTile {
61-
background-color: #fff;
62-
border: solid 1px #fff;
63-
}
64-
65-
.mx_ChatInviteDialog_queryListElement.mx_ChatInviteDialog_selected {
66-
background-color: #eaf5f0; /* selected colour */
67-
}
68-
69-
.mx_ChatInviteDialog_queryListElement.mx_ChatInviteDialog_selected .mx_AddressTile {
70-
background-color: #eaf5f0; /* selected colour */
71-
border: solid 1px #eaf5f0; /* selected colour */
72-
}
73-
7448
.mx_ChatInviteDialog_cancel {
7549
position: absolute;
7650
right: 11px;
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
Copyright 2016 OpenMarket Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_AddressSelector {
18+
position: absolute;
19+
background-color: #fff;
20+
width: 485px;
21+
max-height: 116px;
22+
overflow-y: scroll;
23+
border-radius: 3px;
24+
background-color: #fff;
25+
border: solid 1px #76cfa6;
26+
cursor: pointer;
27+
}
28+
29+
.mx_AddressSelector.mx_AddressSelector_empty {
30+
display: none;
31+
}
32+
33+
.mx_AddressSelector_addressListElement .mx_AddressTile {
34+
background-color: #fff;
35+
border: solid 1px #fff;
36+
}
37+
38+
.mx_AddressSelector_addressListElement.mx_AddressSelector_selected {
39+
background-color: #eaf5f0; /* selected colour */
40+
}
41+
42+
.mx_AddressSelector_addressListElement.mx_AddressSelector_selected .mx_AddressTile {
43+
background-color: #eaf5f0; /* selected colour */
44+
border: solid 1px #eaf5f0; /* selected colour */
45+
}

0 commit comments

Comments
 (0)