Disallow invalid inline style comments in stylesheets (#9099)

This commit is contained in:
Germain
2022-07-27 14:39:29 +01:00
committed by GitHub
parent 8eeeee1aa2
commit 72c24af5c0
193 changed files with 1520 additions and 1518 deletions

View File

@@ -26,13 +26,13 @@ limitations under the License.
.mx_InviteDialog_addressBar {
display: flex;
flex-direction: row;
// Right margin for the design. We could apply this to the whole dialog, but then the scrollbar
// for the user section gets weird.
margin: $spacing-8 45px 0 0; // TODO: Use a spacing variable
/* Right margin for the design. We could apply this to the whole dialog, but then the scrollbar */
/* for the user section gets weird. */
margin: $spacing-8 45px 0 0; /* TODO: Use a spacing variable */
.mx_InviteDialog_editor {
flex: 1;
width: 100%; // Needed to make the Field inside grow
width: 100%; /* Needed to make the Field inside grow */
background-color: $header-panel-bg-color;
border-radius: 4px;
min-height: 25px;
@@ -43,14 +43,14 @@ limitations under the License.
flex-wrap: wrap;
.mx_InviteDialog_userTile {
margin: 6px 6px 0 0; // TODO: Use a spacing variable
margin: 6px 6px 0 0; /* TODO: Use a spacing variable */
display: inline-block;
min-width: max-content; // prevent manipulation by flexbox
min-width: max-content; /* prevent manipulation by flexbox */
}
// overrides bunch of our default text input styles
/* overrides bunch of our default text input styles */
> input[type="text"] {
margin: 6px 0 !important; // TODO: Use a spacing variable
margin: 6px 0 !important; /* TODO: Use a spacing variable */
height: 24px;
line-height: $font-24px;
font-size: $font-14px;
@@ -67,17 +67,17 @@ limitations under the License.
.mx_InviteDialog_goButton {
min-width: 48px;
margin-inline-start: 10px; // TODO: Use a spacing variable
margin-inline-start: 10px; /* TODO: Use a spacing variable */
height: 25px;
line-height: $font-25px;
}
.mx_InviteDialog_buttonAndSpinner {
.mx_Spinner {
// Width and height are required to trick the layout engine.
/* Width and height are required to trick the layout engine. */
width: 20px;
height: 20px;
margin-inline-start: 5px; // TODO: Use a spacing variable
margin-inline-start: 5px; /* TODO: Use a spacing variable */
display: inline-block;
vertical-align: middle;
}
@@ -103,7 +103,7 @@ limitations under the License.
}
.mx_InviteDialog_section_showMore {
margin: 7px 18px; // TODO: Use a spacing variable
margin: 7px 18px; /* TODO: Use a spacing variable */
display: block;
}
}
@@ -134,7 +134,7 @@ limitations under the License.
}
.mx_CopyableText.mx_CopyableText_border {
width: unset; // full width
width: unset; /* full width */
margin-bottom: 0;
> a {
@@ -146,7 +146,7 @@ limitations under the License.
}
}
// Many of these styles are stolen from mx_UserPill, but adjusted for the invite dialog.
/* Many of these styles are stolen from mx_UserPill, but adjusted for the invite dialog. */
.mx_InviteDialog_userTile {
margin-inline-end: $spacing-8;
@@ -157,7 +157,7 @@ limitations under the License.
height: 24px;
line-height: $font-24px;
padding-inline: $spacing-8;
color: #ffffff; // this is fine without a var because it's for both themes
color: #ffffff; /* this is fine without a var because it's for both themes */
.mx_SearchResultAvatar {
border-radius: 20px;
@@ -175,7 +175,7 @@ limitations under the License.
}
.mx_SearchResultAvatar_threepidAvatar {
background-color: #ffffff; // this is fine without a var because it's for both themes
background-color: #ffffff; /* this is fine without a var because it's for both themes */
}
}
@@ -186,7 +186,7 @@ limitations under the License.
}
.mx_InviteDialog_other {
// Prevent the dialog from jumping around randomly when elements change.
/* Prevent the dialog from jumping around randomly when elements change. */
display: flex;
flex-direction: column;
height: 600px;
@@ -252,7 +252,7 @@ limitations under the License.
.mx_InviteDialog_userSections {
margin-top: $spacing-4;
overflow-y: auto;
padding: 0 45px $spacing-4 0; // TODO: Use a spacing variable
padding: 0 45px $spacing-4 0; /* TODO: Use a spacing variable */
}
.mx_InviteDialog_helpText {
@@ -289,7 +289,7 @@ limitations under the License.
.mx_DialPad {
row-gap: $spacing-16;
column-gap: 48px; // TODO: Use a spacing variable
column-gap: 48px; /* TODO: Use a spacing variable */
margin-inline: auto;
}
}
@@ -327,7 +327,7 @@ limitations under the License.
align-items: center;
&.mx_InviteDialog_tile--room {
// mx_InviteDialog_tile_avatarStack, mx_InviteDialog_tile_nameStack, time
/* mx_InviteDialog_tile_avatarStack, mx_InviteDialog_tile_nameStack, time */
grid-template-columns: min-content auto auto;
padding: $spacing-4 $spacing-8;
@@ -350,9 +350,9 @@ limitations under the License.
mask-size: 100%;
mask-repeat: no-repeat;
position: absolute;
top: 6px; // 50%
left: 6px; // 50%
background-color: #ffffff; // this is fine without a var because it's for both themes
top: 6px; /* 50% */
left: 6px; /* 50% */
background-color: #ffffff; /* this is fine without a var because it's for both themes */
}
}
@@ -369,7 +369,7 @@ limitations under the License.
}
&.mx_InviteDialog_tile--inviterError {
grid-template-columns: max-content auto; // max-content = avatar width
grid-template-columns: max-content auto; /* max-content = avatar width */
margin-bottom: $spacing-24;
&:last-child {
@@ -450,5 +450,5 @@ limitations under the License.
}
.mx_InviteDialog_identityServer {
margin-top: 1em; // TODO: Use a spacing variable
margin-top: 1em; /* TODO: Use a spacing variable */
}