From a4dfa04a0b91595fb3a1c1e68b81f15122a2f451 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 25 Mar 2023 10:04:29 +0100 Subject: [PATCH] Enable the `declaration-block-no-redundant-longhand-properties` Stylelint rule Note that these changes were done automatically, using `gulp lint --fix`. This rule will help avoid unnecessary repetition in the CSS; please see https://stylelint.io/user-guide/rules/declaration-block-no-redundant-longhand-properties/ --- .stylelintrc | 1 + examples/mobile-viewer/viewer.css | 5 +---- test/resources/reftest-analyzer.css | 10 ++-------- web/debugger.css | 5 +---- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index 0bacc0e85..bd8f84bd1 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -7,6 +7,7 @@ "prettier/prettier": true, "block-no-empty": true, + "declaration-block-no-redundant-longhand-properties": true, "length-zero-no-unit": [true, { ignore: ["custom-properties"] }], diff --git a/examples/mobile-viewer/viewer.css b/examples/mobile-viewer/viewer.css index 300eed0aa..2f8399d61 100644 --- a/examples/mobile-viewer/viewer.css +++ b/examples/mobile-viewer/viewer.css @@ -153,10 +153,7 @@ footer { position: absolute; overflow: auto; width: 100%; - top: 5rem; - bottom: 4rem; - left: 0; - right: 0; + inset: 5rem 0 4rem; } canvas { diff --git a/test/resources/reftest-analyzer.css b/test/resources/reftest-analyzer.css index 311e3a137..909b07c3a 100644 --- a/test/resources/reftest-analyzer.css +++ b/test/resources/reftest-analyzer.css @@ -77,18 +77,12 @@ a { #imagepane { position: fixed; - left: 340px; - right: 0; - top: 10px; - bottom: 0; + inset: 10px 0 0 340px; } #images { position: absolute; - left: 0; - right: 0; - top: 22px; - bottom: 0; + inset: 22px 0 0; overflow: auto; } diff --git a/web/debugger.css b/web/debugger.css index 9a7233b49..bb61a677c 100644 --- a/web/debugger.css +++ b/web/debugger.css @@ -36,12 +36,9 @@ padding: 3px; } #PDFBug .panels { - bottom: 0; - left: 0; + inset: 27px 0 0; overflow: auto; position: absolute; - right: 0; - top: 27px; } #PDFBug .panels > div { padding: 5px;