Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 162be6c

Browse files
authored
Improve homeserver dropdown dialog styling (#8850)
1 parent b51ef24 commit 162be6c

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

res/css/structures/_GenericDropdownMenu.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ limitations under the License.
7272
height: 0;
7373
margin-left: 4px;
7474
margin-right: 19px;
75-
border-top: 1px solid $system;
75+
border-top: 1px solid $quinary-content;
7676
}
7777

7878
.mx_GenericDropdownMenu_Option {
@@ -102,7 +102,7 @@ limitations under the License.
102102

103103
&.mx_GenericDropdownMenu_Option--item {
104104
&:hover {
105-
background-color: $event-selected-color;
105+
background-color: $menu-selected-color;
106106
}
107107

108108
&[aria-checked="true"]::before {

res/css/views/directory/_NetworkDropdown.scss

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,39 @@ limitations under the License.
1515
*/
1616

1717
.mx_NetworkDropdown_wrapper .mx_ContextualMenu {
18-
min-width: 200px;
18+
.mx_GenericDropdownMenu_Option {
19+
&.mx_GenericDropdownMenu_Option--header {
20+
padding-top: $spacing-12;
21+
padding-bottom: $spacing-4;
22+
min-width: 160px;
23+
}
24+
25+
&.mx_GenericDropdownMenu_Option--item {
26+
padding-top: $spacing-4;
27+
padding-bottom: $spacing-4;
28+
29+
> .mx_GenericDropdownMenu_Option--label span:first-child {
30+
font-weight: normal;
31+
}
32+
}
33+
34+
> .mx_GenericDropdownMenu_Option--label {
35+
flex-direction: row;
36+
align-items: baseline;
37+
align-content: baseline;
38+
color: $primary-content;
39+
40+
span:not(:first-child) {
41+
margin-left: $spacing-4;
42+
color: $secondary-content;
43+
}
44+
}
45+
}
46+
47+
.mx_GenericDropdownMenu_divider {
48+
margin-top: $spacing-4;
49+
margin-bottom: $spacing-4;
50+
}
1951
}
2052

2153
.mx_NetworkDropdown_addServer {
@@ -28,7 +60,7 @@ limitations under the License.
2860
display: inline-block;
2961
width: 16px;
3062
height: 16px;
31-
background: $system;
63+
background: $quinary-content;
3264
border-radius: 8px;
3365
text-align: center;
3466
line-height: 16px;

0 commit comments

Comments
 (0)