Add `max-empty-lines` and `no-eol-whitespace` to stylelint (#7034)

pull/21833/head
Šimon Brandner 2021-10-26 09:23:23 +02:00 committed by GitHub
parent e649bf5541
commit 5c66bd6c7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 2 additions and 40 deletions

View File

@ -11,7 +11,8 @@ module.exports = {
"length-zero-no-unit": null,
"rule-empty-line-before": null,
"color-hex-length": null,
"max-empty-lines": null,
"max-empty-lines": 1,
"no-eol-whitespace": true,
"number-no-trailing-zeros": null,
"number-leading-zero": null,
"selector-list-comma-newline-after": null,

View File

@ -34,4 +34,3 @@ limitations under the License.
.mx_CreateRoom_description {
width: 330px;
}

View File

@ -43,8 +43,6 @@ $roomListCollapsedWidth: 68px;
}
}
.mx_LeftPanel {
background-color: $roomlist-bg-color;
// TODO decrease this once Spaces launches as it'll no longer need to include the 56px Community Panel

View File

@ -32,7 +32,6 @@ limitations under the License.
position: relative;
}
@keyframes mx_RoomView_fileDropTarget_animation {
from {
opacity: 0;
@ -112,7 +111,6 @@ limitations under the License.
max-width: 1920px !important;
}
.mx_RoomView .mx_MainSplit {
flex: 1 1 0;
}

View File

@ -348,7 +348,6 @@ $activeBorderColor: $secondary-content;
}
}
.mx_SpacePanel_sharePublicSpace {
margin: 0;
}

View File

@ -64,4 +64,3 @@ limitations under the License.
mask-size: contain;
}
}

View File

@ -64,4 +64,3 @@ limitations under the License.
padding: 0 8px;
}
}

View File

@ -58,4 +58,3 @@ limitations under the License.
mask-size: 36px;
mask-position: center;
}

View File

@ -50,4 +50,3 @@ limitations under the License.
vertical-align: middle;
}
}

View File

@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_WidgetCapabilitiesPromptDialog {
.text-muted {
font-size: $font-12px;
@ -55,7 +54,6 @@ limitations under the License.
width: $font-32px;
height: $font-15px;
&.mx_ToggleSwitch_on > .mx_ToggleSwitch_ball {
left: calc(100% - $font-15px);
}

View File

@ -130,4 +130,3 @@ input.mx_Dropdown_option:focus {
margin-left: 5px;
margin-bottom: 5px;
}

View File

@ -61,4 +61,3 @@ limitations under the License.
.mx_EditableItemList_label {
margin-bottom: 5px;
}

View File

@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_Checkbox {
$size: $font-16px;
$border-size: $font-1-5px;

View File

@ -49,4 +49,3 @@ limitations under the License.
text-align: start;
line-height: 17px !important;
}

View File

@ -34,4 +34,3 @@ limitations under the License.
}
}
}

View File

@ -39,7 +39,6 @@ limitations under the License.
background-color: $notice-primary-color;
}
.mx_cryptoEvent_state, .mx_cryptoEvent_buttons {
grid-column: 3;
grid-row: 1 / 3;

View File

@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_ThreadPanel {
display: flex;
flex-direction: column;

View File

@ -223,7 +223,6 @@ limitations under the License.
display: flex;
margin: 8px 0;
&.mx_UserInfo_device_verified {
.mx_UserInfo_device_trusted {
color: $accent-color;
@ -267,7 +266,6 @@ limitations under the License.
margin: 16px 0 8px;
}
.mx_VerificationShowSas {
.mx_AccessibleButton + .mx_AccessibleButton {
margin: 8px 0; // space between buttons

View File

@ -23,7 +23,6 @@ limitations under the License.
}
}
.mx_UserInfo {
.mx_EncryptionPanel_cancel {
mask: url('$(res)/img/feather-customised/cancel.svg');

View File

@ -365,7 +365,6 @@ $MinWidth: 240px;
to { opacity: 1; }
}
.mx_AppLoading iframe {
display: none;
}

View File

@ -24,7 +24,6 @@ limitations under the License.
margin: -7px -10px -5px -10px;
overflow: visible !important; // override mx_EventTile_content
.mx_BasicMessageComposer_input {
border-radius: 4px;
border: solid 1px $primary-hairline-color;

View File

@ -263,7 +263,6 @@ limitations under the License.
}
}
.mx_EventTile_readAvatars {
position: absolute;
right: -110px;

View File

@ -401,7 +401,6 @@ $left-gutter: 64px;
cursor: pointer;
}
.mx_EventTile_e2eIcon {
position: relative;
width: 14px;
@ -581,7 +580,6 @@ $left-gutter: 64px;
color: inherit;
}
/* Make h1 and h2 the same size as h3. */
.mx_EventTile_content .markdown-body h1,
.mx_EventTile_content .markdown-body h2 {
@ -613,7 +611,6 @@ $left-gutter: 64px;
/* end of overrides */
.mx_EventTile_keyRequestInfo {
font-size: $font-12px;
}
@ -731,8 +728,6 @@ $left-gutter: 64px;
}
}
.mx_ThreadView {
display: flex;
flex-direction: column;

View File

@ -247,7 +247,6 @@ limitations under the License.
}
}
.mx_MessageComposer_upload::before {
mask-image: url('$(res)/img/element-icons/room/composer/attach.svg');
}

View File

@ -52,4 +52,3 @@ limitations under the License.
}
}
}

View File

@ -68,4 +68,3 @@ limitations under the License.
cursor: pointer;
}
}

View File

@ -47,4 +47,3 @@ limitations under the License.
}
}
}

View File

@ -17,4 +17,3 @@ limitations under the License.
.mx_E2eAdvancedPanel_settingLongDescription {
margin-right: 150px;
}

View File

@ -85,4 +85,3 @@ limitations under the License.
}
}
}

View File

@ -35,7 +35,6 @@ limitations under the License.
margin-left: 2px;
margin-right: 2px;
&::before {
content: '';
display: inline-block;
@ -48,7 +47,6 @@ limitations under the License.
background-position: center;
}
&.mx_CallViewButtons_dialpad::before {
background-image: url('$(res)/img/voip/dialpad.svg');
}

View File

@ -200,7 +200,6 @@ limitations under the License.
}
}
.mx_CallView_presenting {
opacity: 1;
transition: opacity 0.5s;