diff --git a/.stylelintrc b/.stylelintrc index 4645f82e9c81e..b0648af5cc4d8 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -13,5 +13,6 @@ "length-zero-no-unit": [true, { ignore: ["custom-properties"] }], + "shorthand-property-no-redundant-values": true, }, } diff --git a/web/pdf_viewer.css b/web/pdf_viewer.css index e2e2193be5d5a..15187667df5be 100644 --- a/web/pdf_viewer.css +++ b/web/pdf_viewer.css @@ -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; } diff --git a/web/viewer.css b/web/viewer.css index 8226b5faeeeeb..a6bd239fd19a0 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -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);