Disallow invalid inline style comments in stylesheets (#9099)
This commit is contained in:
@@ -16,9 +16,9 @@ limitations under the License.
|
||||
|
||||
.mx_SettingsTab {
|
||||
--SettingsTab_section-margin-bottom-preferences-labs: 30px;
|
||||
--SettingsTab_heading_nth_child-margin-top: 30px; // TODO: Use a spacing variable
|
||||
--SettingsTab_heading_nth_child-margin-top: 30px; /* TODO: Use a spacing variable */
|
||||
--SettingsTab_fullWidthField-margin-inline-end: 100px;
|
||||
--SettingsTab_tooltip-max-width: 120px; // So it fits in the space provided by the page
|
||||
--SettingsTab_tooltip-max-width: 120px; /* So it fits in the space provided by the page */
|
||||
|
||||
color: $primary-content;
|
||||
|
||||
@@ -35,8 +35,8 @@ limitations under the License.
|
||||
font-size: $font-20px;
|
||||
font-weight: 600;
|
||||
color: $primary-content;
|
||||
margin-top: 10px; // TODO: Use a spacing variable
|
||||
margin-bottom: 10px; // TODO: Use a spacing variable
|
||||
margin-top: 10px; /* TODO: Use a spacing variable */
|
||||
margin-bottom: 10px; /* TODO: Use a spacing variable */
|
||||
|
||||
&:nth-child(n + 2) {
|
||||
margin-top: var(--SettingsTab_heading_nth_child-margin-top);
|
||||
@@ -49,16 +49,16 @@ limitations under the License.
|
||||
font-weight: 600;
|
||||
color: $primary-content;
|
||||
margin-top: $spacing-12;
|
||||
margin-bottom: 10px; // TODO: Use a spacing variable
|
||||
margin-bottom: 10px; /* TODO: Use a spacing variable */
|
||||
}
|
||||
|
||||
.mx_SettingsTab_subsectionText {
|
||||
color: $secondary-content;
|
||||
font-size: $font-14px;
|
||||
display: block;
|
||||
margin-top: 10px; // TODO: Use a spacing variable
|
||||
margin-inline-end: 80px; // Align with the rest of the view
|
||||
margin-bottom: 10px; // TODO: Use a spacing variable
|
||||
margin-top: 10px; /* TODO: Use a spacing variable */
|
||||
margin-inline-end: 80px; /* Align with the rest of the view */
|
||||
margin-bottom: 10px; /* TODO: Use a spacing variable */
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
|
||||
@@ -69,12 +69,12 @@ limitations under the License.
|
||||
|
||||
.mx_SettingsFlag {
|
||||
margin-inline-end: $end-gutter;
|
||||
margin-bottom: 10px; // TODO: Use a spacing variable
|
||||
margin-bottom: 10px; /* TODO: Use a spacing variable */
|
||||
|
||||
.mx_SettingsFlag_label {
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
max-width: calc(100% - $font-48px); // Force word wrap instead of colliding with the switch
|
||||
max-width: calc(100% - $font-48px); /* Force word wrap instead of colliding with the switch */
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ limitations under the License.
|
||||
|
||||
.mx_SettingsTab_subsectionText {
|
||||
margin-block: $spacing-12 $spacing-32;
|
||||
color: $primary-content; // Same as mx_SettingsTab
|
||||
color: $primary-content; /* Same as mx_SettingsTab */
|
||||
}
|
||||
|
||||
.mx_Field {
|
||||
|
||||
@@ -22,7 +22,7 @@ limitations under the License.
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
// TODO: Make this selector less painful
|
||||
/* TODO: Make this selector less painful */
|
||||
.mx_GeneralUserSettingsTab_accountSection .mx_SettingsTab_subheading:nth-child(n + 1),
|
||||
.mx_GeneralUserSettingsTab_discovery .mx_SettingsTab_subheading:nth-child(n + 2),
|
||||
.mx_SetIdServer .mx_SettingsTab_subheading {
|
||||
@@ -31,7 +31,7 @@ limitations under the License.
|
||||
|
||||
.mx_GeneralUserSettingsTab_accountSection .mx_Spinner,
|
||||
.mx_GeneralUserSettingsTab_discovery .mx_Spinner {
|
||||
// Move the spinner to the left side of the container (default center)
|
||||
/* Move the spinner to the left side of the container (default center) */
|
||||
justify-content: left;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,14 +27,14 @@ limitations under the License.
|
||||
column-gap: $spacing-8;
|
||||
margin-bottom: $spacing-4;
|
||||
|
||||
// TODO: Use flexbox
|
||||
/* TODO: Use flexbox */
|
||||
&:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.mx_KeyboardShortcut {
|
||||
flex-wrap: nowrap;
|
||||
column-gap: 5px; // TODO: Use a spacing variable
|
||||
column-gap: 5px; /* TODO: Use a spacing variable */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ limitations under the License.
|
||||
}
|
||||
|
||||
.mx_SettingsFlag {
|
||||
margin-right: 0; // remove right margin to align with beta cards
|
||||
margin-right: 0; /* remove right margin to align with beta cards */
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user