Skip to content

Commit 9a7f538

Browse files
committed
Update autocomplete design
1 parent d3eccc1 commit 9a7f538

1 file changed

Lines changed: 35 additions & 33 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/rooms/Autocomplete.css‎

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,66 @@
44
z-index: 1000;
55
width: 100%;
66
border: 1px solid #e5e5e5;
7-
background: rgba(255, 255, 255, 0.9);
7+
background: white;
88
border-bottom: none;
99
border-radius: 4px 4px 0 0;
1010
max-height: 50vh;
1111
overflow: auto
1212
}
1313

1414
.mx_Autocomplete_ProviderSection {
15-
padding: 12px;
1615
border-bottom: 1px solid #e5e5e5;
1716
}
1817

19-
.mx_Autocomplete_ProviderSection * {
20-
padding: 2px;
21-
border-radius: 4px;
18+
.mx_Autocomplete_Completion_container_pill {
19+
margin: 12px;
20+
display: flex;
2221
}
2322

24-
.mx_Autocomplete_Completion {
23+
/* a "block" completion takes up a whole line */
24+
.mx_Autocomplete_Completion_block {
25+
height: 34px;
26+
display: flex;
27+
padding: 0 12px;
2528
user-select: none;
2629
cursor: pointer;
27-
transition: 0.3s all ease;
28-
display: flex;
2930
align-items: center;
31+
color: #4a4a4a;
3032
}
3133

32-
.mx_Autocomplete_Completion.selected * {
33-
transition: 0.3s all ease;
34-
}
35-
36-
.mx_Autocomplete_Completion.selected {
37-
background: #76cfa6;
38-
color: white;
39-
outline: none;
40-
}
41-
42-
.mx_Autocomplete_Completion.selected * {
43-
color: white !important;
34+
.mx_Autocomplete_Completion_block * {
35+
margin: 0 3px;
4436
}
4537

46-
.mx_Autocomplete_provider_name {
47-
color: #76cfa6;
48-
font-weight: 600;
38+
.mx_Autocomplete_Completion_pill {
39+
border-radius: 17px;
40+
height: 34px;
41+
display: flex;
42+
user-select: none;
43+
cursor: pointer;
44+
align-items: center;
45+
color: #4a4a4a;
4946
}
5047

51-
.autocomplete-enter {
52-
opacity: 0.01;
48+
.mx_Autocomplete_Completion_pill * {
49+
margin: 0 3px;
5350
}
5451

55-
.autocomplete-enter.autocomplete-enter-active {
56-
opacity: 1;
57-
transition: opacity 300ms ease-in;
52+
/* container for pill-style completions */
53+
.mx_Autocomplete_Completion_container_pill {
54+
margin: 12px;
55+
display: flex;
56+
flex-flow: wrap;
5857
}
5958

60-
.autocomplete-leave {
61-
opacity: 1;
59+
.mx_Autocomplete_Completion.selected {
60+
background: #f6f6f6;
61+
outline: none;
6262
}
6363

64-
.autocomplete-leave.autocomplete-leave-active {
65-
opacity: 0.01;
66-
transition: opacity 300ms ease-in;
64+
.mx_Autocomplete_provider_name {
65+
margin: 12px;
66+
color: #454545;
67+
font-weight: 400;
68+
opacity: 0.4;
6769
}

0 commit comments

Comments
 (0)