From a52f064f0be78f38eb76046b13a7fed4eac3dee5 Mon Sep 17 00:00:00 2001
From: Jeremiah Deasey <122045638+jeremiah-deasey@users.noreply.github.com>
Date: Fri, 11 Jul 2025 12:22:25 -0400
Subject: [PATCH] optimize sheet.css
use wildcard to replace redundant selectors
---
sheet.css | 84 ++++++++-----------------------------------------------
1 file changed, 11 insertions(+), 73 deletions(-)
diff --git a/sheet.css b/sheet.css
index a3062d1..5a8816f 100644
--- a/sheet.css
+++ b/sheet.css
@@ -1,79 +1,17 @@
-div[num="1"][class="claim style-scope patent-text"]
- {
+/*
+ Apply styles to all
elements with class "claim style-scope patent-text"
+ and a `num` attribute that ends in "1" — this includes values like "1", "01",
+ "001", "0001", etc. The `$=` operator is a CSS attribute selector that matches
+ the *end* of a string.
+*/
+div[num$="1"].claim.style-scope.patent-text {
position: fixed!important;
top: 0;
- bottom: 0;
- right: 0;
- width: 300px;
+ bottom: 0;
+ right: 0;
+ width: 300px;
font-weight: 900!important;
border: 3px solid #73AD21;
overflow-y:scroll;
- overflow-x:hidden;
-}
-
-div[num="01"][class="claim style-scope patent-text"] {
- position: fixed!important;
- top: 0;
- bottom: 0;
- right: 0;
- width: 300px;
- font-weight: 900!important;
- border: 3px solid #73AD21;
- overflow-y:scroll;
- overflow-x:hidden;
-}
-div[num="001"][class="claim style-scope patent-text"] {
- position: fixed!important;
- top: 0;
- bottom: 0;
- right: 0;
- width: 300px;
- font-weight: 900!important;
- border: 3px solid #73AD21;
- overflow-y:scroll;
- overflow-x:hidden;
-}
-div[num="0001"][class="claim style-scope patent-text"] {
- position: fixed!important;
- top: 0;
- bottom: 0;
- right: 0;
- width: 300px;
- font-weight: 900!important;
- border: 3px solid #73AD21;
- overflow-y:scroll;
- overflow-x:hidden;
-}
-div[num="00001"][class="claim style-scope patent-text"] {
- position: fixed!important;
- top: 0;
- bottom: 0;
- right: 0;
- width: 300px;
- font-weight: 900!important;
- border: 3px solid #73AD21;
- overflow-y:scroll;
- overflow-x:hidden;
-}
-div[num="000001"][class="claim style-scope patent-text"] {
- position: fixed!important;
- top: 0;
- bottom: 0;
- right: 0;
- width: 300px;
- font-weight: 900!important;
- border: 3px solid #73AD21;
- overflow-y:scroll;
- overflow-x:hidden;
-}
-div[num="0000001"][class="claim style-scope patent-text"] {
- position: fixed!important;
- top: 0;
- bottom: 0;
- right: 0;
- width: 300px;
- font-weight: 900!important;
- border: 3px solid #73AD21;
- overflow-y:scroll;
- overflow-x:hidden;
+ overflow-x:hidden;
}