Remove unique settings from labs user settings tab (#8828)

* Remove redundant style declarations

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove obsolete float setting

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove special margin setting

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove unnecessary specificity

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Reset the margin with a variable

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
Suguru Hirahara 2022-06-14 07:05:43 +00:00 committed by GitHub
parent b03aa2ebf5
commit 2c751a4fa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 10 deletions

View file

@ -15,6 +15,7 @@ limitations under the License.
*/ */
.mx_SettingsTab { .mx_SettingsTab {
--SettingsTab_section-margin-bottom-preferences-labs: 30px;
color: $primary-content; color: $primary-content;
} }

View file

@ -15,18 +15,13 @@ limitations under the License.
*/ */
.mx_LabsUserSettingsTab { .mx_LabsUserSettingsTab {
.mx_SettingsTab_subsectionText, .mx_SettingsTab_section { .mx_SettingsTab_subsectionText,
margin-bottom: 30px; .mx_SettingsTab_section {
margin-bottom: var(--SettingsTab_section-margin-bottom-preferences-labs);
} }
.mx_SettingsTab_section .mx_SettingsFlag { .mx_SettingsFlag {
margin-right: 0; // remove right margin to align with beta cards margin-right: 0; // remove right margin to align with beta cards
display: flex;
align-items: center; align-items: center;
justify-content: space-between;
.mx_ToggleSwitch {
float: unset;
}
} }
} }

View file

@ -20,7 +20,7 @@ limitations under the License.
} }
.mx_SettingsTab_section { .mx_SettingsTab_section {
margin-bottom: 30px; margin-bottom: var(--SettingsTab_section-margin-bottom-preferences-labs);
> details { > details {
> summary { > summary {