Enable the Stylelint shorthand-property-no-redundant-values rule

Note that these changes were done automatically, using `gulp lint --fix`; this rule will help avoid unnecessary repetition in the CSS.

Please find additional details about the Stylelint rule at https://stylelint.io/user-guide/rules/shorthand-property-no-redundant-values
This commit is contained in:
Jonas Jenwald 2021-01-22 14:36:02 +01:00
parent 2cba290361
commit 38c9f1a37a
3 changed files with 14 additions and 13 deletions

View File

@ -13,5 +13,6 @@
"length-zero-no-unit": [true, {
ignore: ["custom-properties"]
}],
"shorthand-property-no-redundant-values": true,
},
}

View File

@ -23,7 +23,7 @@
direction: ltr;
width: 816px;
height: 1056px;
margin: 1px auto -8px auto;
margin: 1px auto -8px;
position: relative;
overflow: visible;
border: 9px solid transparent;
@ -33,7 +33,7 @@
}
.pdfViewer.removePageBorders .page {
margin: 0 auto 10px auto;
margin: 0 auto 10px;
border: none;
}

View File

@ -456,8 +456,8 @@ html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
z-index: 10000;
height: auto;
min-width: 16px;
padding: 0 4px 0 4px;
margin: 4px 2px 4px 2px;
padding: 0 4px;
margin: 4px 2px;
color: rgba(217, 217, 217, 1);
font-size: 12px;
line-height: 14px;
@ -571,7 +571,7 @@ html[dir="rtl"] #findInput[data-status="pending"] {
}
.secondaryToolbar {
padding: 6px 0 10px 0;
padding: 6px 0 10px;
height: auto;
z-index: 30000;
background-color: var(--doorhanger-bg-color);
@ -1079,7 +1079,7 @@ html[dir="rtl"] .toolbarButton.pdfSidebarNotification::after {
.secondaryToolbarButton {
position: relative;
margin: 0;
padding: 0 0 1px 0;
padding: 0 0 1px;
height: auto;
min-height: 26px;
width: auto;
@ -1185,7 +1185,7 @@ html[dir="rtl"] .verticalToolbarSeparator {
.horizontalToolbarSeparator {
display: block;
margin: 6px 0 5px 0;
margin: 6px 0 5px;
height: 1px;
width: 100%;
border-top: 1px solid var(--doorhanger-separator-color);
@ -1193,7 +1193,7 @@ html[dir="rtl"] .verticalToolbarSeparator {
.toolbarField {
padding: 4px 7px;
margin: 3px 0 3px 0;
margin: 3px 0;
border-radius: 2px;
background-color: var(--field-bg-color);
background-clip: padding-box;
@ -1281,7 +1281,7 @@ html[dir="rtl"] #numPages.toolbarLabel {
}
.thumbnail {
margin: 0 10px 5px 10px;
margin: 0 10px 5px;
}
html[dir="ltr"] .thumbnail {
float: left;
@ -1300,7 +1300,7 @@ html[dir="rtl"] .thumbnail {
.thumbnail:not([data-loaded]) {
border: 1px dashed rgba(132, 132, 132, 1);
margin: -1px 9px 4px 9px;
margin: -1px 9px 4px;
}
.thumbnailImage {
@ -1479,8 +1479,8 @@ html[dir="rtl"] .treeItemToggler::before {
.overlayButton {
width: auto;
margin: 3px 4px 2px 4px !important;
padding: 2px 11px 2px 11px;
margin: 3px 4px 2px !important;
padding: 2px 11px;
}
#overlayContainer {
@ -1529,7 +1529,7 @@ html[dir="rtl"] .treeItemToggler::before {
.dialog .separator {
display: block;
margin: 4px 0 4px 0;
margin: 4px 0;
height: 1px;
width: 100%;
background-color: var(--separator-color);