Replace legacy $spacing-X vars with Compound Design Tokens (#34380)
* Replace legacy `$spacing-X` vars with Compound Design Tokens * Remove unused font size vars * Use calc to get negative spacing vars
This commit is contained in:
@@ -35,7 +35,7 @@ Please see LICENSE files in the repository root for full details.
|
||||
.mx_SettingsSection_subSections {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: $spacing-32;
|
||||
gap: var(--cpd-space-8x);
|
||||
|
||||
margin: $spacing-16 0;
|
||||
margin: var(--cpd-space-4x) 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ Please see LICENSE files in the repository root for full details.
|
||||
.mx_SettingsTab_section {
|
||||
$end-gutter: 80px;
|
||||
|
||||
margin-bottom: $spacing-24;
|
||||
margin-bottom: var(--cpd-space-6x);
|
||||
|
||||
.mx_SettingsFlag {
|
||||
margin-inline-end: $end-gutter;
|
||||
@@ -82,7 +82,7 @@ Please see LICENSE files in the repository root for full details.
|
||||
.mx_SettingsTab_sections {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: $spacing-32;
|
||||
gap: var(--cpd-space-8x);
|
||||
|
||||
padding-bottom: $spacing-16;
|
||||
padding-bottom: var(--cpd-space-4x);
|
||||
}
|
||||
|
||||
@@ -6,13 +6,13 @@ Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
.mx_SecurityRoomSettingsTab_advancedSection {
|
||||
margin-top: $spacing-16;
|
||||
margin-top: var(--cpd-space-4x);
|
||||
}
|
||||
|
||||
.mx_SecurityRoomSettingsTab_warning {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
column-gap: $spacing-4;
|
||||
column-gap: var(--cpd-space-1x);
|
||||
|
||||
svg {
|
||||
color: #ff0064; /* Match legacy icon colour until redesign */
|
||||
|
||||
@@ -12,7 +12,7 @@ Please see LICENSE files in the repository root for full details.
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
display: grid;
|
||||
gap: $spacing-4;
|
||||
gap: var(--cpd-space-1x);
|
||||
}
|
||||
|
||||
.mx_KeyboardShortcut_shortcutRow,
|
||||
@@ -23,10 +23,10 @@ Please see LICENSE files in the repository root for full details.
|
||||
}
|
||||
|
||||
.mx_KeyboardShortcut_shortcutRow {
|
||||
column-gap: $spacing-8;
|
||||
column-gap: var(--cpd-space-2x);
|
||||
}
|
||||
|
||||
.mx_KeyboardShortcut {
|
||||
flex-wrap: nowrap;
|
||||
column-gap: $spacing-4;
|
||||
column-gap: var(--cpd-space-1x);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
|
||||
.mx_SecurityUserSettingsTab_bulkOptions {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
column-gap: $spacing-8;
|
||||
column-gap: var(--cpd-space-2x);
|
||||
}
|
||||
|
||||
.mx_SecurityUserSettingsTab_ignoredUsers {
|
||||
@@ -18,11 +18,11 @@ Please see LICENSE files in the repository root for full details.
|
||||
}
|
||||
|
||||
.mx_SecurityUserSettingsTab_ignoredUser {
|
||||
margin-bottom: $spacing-4;
|
||||
margin-bottom: var(--cpd-space-1x);
|
||||
}
|
||||
|
||||
.mx_SecurityUserSettingsTab_ignoredUser .mx_AccessibleButton {
|
||||
margin-right: $spacing-8;
|
||||
margin-right: var(--cpd-space-2x);
|
||||
}
|
||||
|
||||
.mx_SecurityUserSettingsTab_warning {
|
||||
|
||||
Reference in New Issue
Block a user