Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve homeserver dropdown dialog styling #8850

Merged
merged 7 commits into from
Jun 17, 2022
34 changes: 33 additions & 1 deletion res/css/views/directory/_NetworkDropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,39 @@ limitations under the License.
*/

.mx_NetworkDropdown_wrapper .mx_ContextualMenu {
min-width: 200px;
.mx_GenericDropdownMenu_Option {
&.mx_GenericDropdownMenu_Option--header {
padding-top: $spacing-12;
padding-bottom: $spacing-4;
min-width: 160px;
}

&.mx_GenericDropdownMenu_Option--item {
padding-top: $spacing-4;
padding-bottom: $spacing-4;

> .mx_GenericDropdownMenu_Option--label span:first-child {
font-weight: normal;
}
}

> .mx_GenericDropdownMenu_Option--label {
flex-direction: row;
align-items: baseline;
align-content: baseline;
color: $primary-content;

span:not(:first-child) {
margin-left: $spacing-4;
color: $secondary-content;
}
}
}

.mx_GenericDropdownMenu_divider {
margin-top: $spacing-4;
margin-bottom: $spacing-4;
}
}

.mx_NetworkDropdown_addServer {
Expand Down