From 37aaa97b66f2ffcf02a0a2ce875fbc24967437b9 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sun, 19 Jan 2025 13:28:45 -0600 Subject: [PATCH] Brower compatibility for ::before alt text --- config/fail2ban/jail.local | 2 +- www/css/artwork.css | 2 ++ www/css/core.css | 37 +++++++++++++++++++++++++++++++++---- www/css/ereader.css | 1 + www/css/manual.css | 4 ++++ 5 files changed, 41 insertions(+), 5 deletions(-) diff --git a/config/fail2ban/jail.local b/config/fail2ban/jail.local index 6ff1264e..c29d0e90 100644 --- a/config/fail2ban/jail.local +++ b/config/fail2ban/jail.local @@ -1,6 +1,6 @@ [se] -enabled = true +enabled = false filter = se port = http,https bantime = 24h diff --git a/www/css/artwork.css b/www/css/artwork.css index 2c2ad450..bc09cc4f 100644 --- a/www/css/artwork.css +++ b/www/css/artwork.css @@ -274,6 +274,7 @@ main section.narrow h1 ~ picture{ .artworks figure.wrong::before{ background: #762729; font-family: "Fork Awesome"; + content: "\f00d"; content: "\f00d" / ""; font-size: 1.5rem; width: 1.5rem; @@ -288,6 +289,7 @@ main section.narrow h1 ~ picture{ .artworks figure.corrected::before{ background: #406451; font-family: "Fork Awesome"; + content: "\f00c"; content: "\f00c" / ""; font-size: 1.5rem; line-height: 1; diff --git a/www/css/core.css b/www/css/core.css index 03af0c37..5536c8be 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -399,6 +399,7 @@ header nav li{ } header nav li + li:before{ + content: "•"; content: "•" / ""; font-size: 16px; margin-left: 10px; @@ -881,6 +882,7 @@ form button:active{ a.button.next::after, main nav.pagination > a:last-child::after{ font-family: "Fork Awesome"; + content: "\f061"; content: "\f061" / ""; transition: all 200ms ease; position: relative; @@ -897,6 +899,7 @@ main nav.pagination > a:last-child[href]:hover::after{ main nav.pagination > a:first-child:before{ font-family: "Fork Awesome"; + content: "\f060"; content: "\f060" / ""; transition: all 200ms ease; position: relative; @@ -1363,6 +1366,7 @@ footer ul.nav-links li::after{ } footer ul.nav-links li:not(:last-child)::after{ + content: "\b7"; content: "\b7" / ""; margin: 0 10px; } @@ -1387,6 +1391,7 @@ footer > a{ footer p.newsletter::before{ font-family: "Fork Awesome"; + content: "\f0e0"; content: "\f0e0" / ""; display: inline; margin-right: .25rem; @@ -1926,6 +1931,7 @@ label:has(select) > span + span:last-child::after{ position: absolute; top: calc((2rem + 1.4rem + 2px) / 2 - 10px); right: calc(1rem - 12px / 2); + content: "\f107"; content: "\f107" / ""; font-family: "Fork Awesome"; font-size: 1rem; @@ -1976,66 +1982,82 @@ label:has(input[type="password"])::before{ } label:has(input[type="url"])::before{ + content: "\f0c1"; content: "\f0c1" / ""; } label:has(input[type="search"])::before{ + content: "\f002"; content: "\f002" / ""; } label:has(input[type="email"])::before{ + content: "\f0e0"; content: "\f0e0" / ""; } label:has(input[type="password"])::before{ + content: "\f084"; content: "\f084" / ""; } label.captcha::before{ + content: "\f256"; content: "\f256" / ""; } label.year::before{ + content: "\f073"; content: "\f073" / ""; } label.meter::before{ + content: "\f0e4"; content: "\f0e4" / ""; } label.collection::before{ + content: "\f0e8"; content: "\f0e8" / ""; } label.book::before{ + content: "\f02d"; content: "\f02d" / ""; } label.ordered-list::before{ + content: "\f0cb"; content: "\f0cb" / ""; } label.hourglass::before{ + content: "\f254"; content: "\f254" / ""; } label.tags:not(:has(select))::before{ + content: "\f02c"; content: "\f02c" / ""; } label.picture::before{ + content: "\f03e"; content: "\f03e" / ""; } label.user::before{ + content: "\f007"; content: "\f007" / ""; } label.indent::before{ + content: "\f03c"; content: "\f03c" / ""; } label.language::before{ + content: "\f1ab"; content: "\f1ab" / ""; } @@ -2180,12 +2202,14 @@ main nav.pagination ol li:not(:first-child):not(:last-child):not(.highlighted){ article nav ol li.highlighted::before, main nav.pagination ol li.highlighted::before{ + content: "⋯"; content: "⋯" / ""; padding-right: 1rem; } article nav ol li.highlighted::after, main nav.pagination ol li.highlighted::after{ + content: "⋯"; content: "⋯" / ""; padding-left: 1rem; } @@ -2701,10 +2725,12 @@ h1.is-collection{ } .ebooks-toolbar a.button[href*="/downloads"]::before{ + content: "\f019"; content: "\f019" / ""; } .ebooks-toolbar a.button[href*="/feeds"]::before{ + content: "\f143"; content: "\f143" / ""; } @@ -3098,6 +3124,7 @@ article.ebook section#read-online ul li p.has-size span{ } article.ebook section#read-online ul li p.has-size span::before{ + content: "\f071"; content: "\f071" / ""; font-family: "Fork Awesome"; margin-right: .25rem; @@ -3587,7 +3614,7 @@ a.patron-selection:any-link:hover{ } footer ul.nav-links li:nth-child(4)::after{ - content: "\A" / ""; /* This is a line break */ + content: "\A"; /* This is a line break */ white-space: pre; margin: 0; } @@ -3740,12 +3767,13 @@ a.patron-selection:any-link:hover{ footer ul.nav-links li:nth-child(2)::after, footer ul.nav-links li:nth-child(5)::after{ - content: "\A" / ""; /* This is a line break */ + content: "\A"; /* This is a line break */ white-space: pre; margin: 0; } footer ul.nav-links li:nth-child(4)::after{ + content: "\b7"; content: "\b7" / ""; white-space: normal; margin: 0 10px; @@ -3991,7 +4019,7 @@ a.patron-selection:any-link:hover{ footer ul.nav-links li:nth-child(2)::after, footer ul.nav-links li:nth-child(4)::after, footer ul.nav-links li:nth-child(6)::after{ - content: "\A" / ""; /* This is a line break */ + content: "\A"; /* This is a line break */ white-space: pre; margin: 0; } @@ -3999,6 +4027,7 @@ a.patron-selection:any-link:hover{ footer ul.nav-links li:nth-child(1)::after, footer ul.nav-links li:nth-child(3)::after, footer ul.nav-links li:nth-child(5)::after{ + content: "\b7"; content: "\b7" / ""; white-space: normal; margin: 0 10px; @@ -4127,7 +4156,7 @@ a.patron-selection:any-link:hover{ } footer ul.nav-links li:nth-child(7)::after{ - content: "\A" / ""; /* This is a line break */ + content: "\A"; /* This is a line break */ white-space: pre; margin: 0; } diff --git a/www/css/ereader.css b/www/css/ereader.css index 550a5b7f..713c106a 100644 --- a/www/css/ereader.css +++ b/www/css/ereader.css @@ -37,6 +37,7 @@ header nav li{ } header nav li + li:before{ + content: "•"; content: "•" / ""; margin-left: 10px; margin-right: 10px; diff --git a/www/css/manual.css b/www/css/manual.css index f91567c7..b9d4b3f3 100644 --- a/www/css/manual.css +++ b/www/css/manual.css @@ -368,6 +368,7 @@ code.full .utf{ .alert p.warning::before, .alert p.warning::after{ + content: "\f071"; content: "\f071" / ""; font-family: "Fork Awesome"; } @@ -389,6 +390,7 @@ figure p.wrong{ figure p.wrong::before, figure.wrong::before{ font-family: "Fork Awesome"; + content: "\f00d"; content: "\f00d" / ""; font-size: 1.5rem; width: 1.5rem; @@ -403,6 +405,7 @@ figure.wrong::before{ figure p.corrected::before, figure.corrected::before{ font-family: "Fork Awesome"; + content: "\f00c"; content: "\f00c" / ""; font-size: 1.5rem; line-height: 1; @@ -624,6 +627,7 @@ figure.corrected code{ .manual aside.tip::before{ font-family: "Fork Awesome"; + content: "\f0eb"; content: "\f0eb" / ""; font-size: 1rem; position: absolute;