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, { "length-zero-no-unit": [true, {
ignore: ["custom-properties"] ignore: ["custom-properties"]
}], }],
"shorthand-property-no-redundant-values": true,
}, },
} }

View File

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

View File

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