From eb02e6ee9e4195e800bcef27983f5dc692fcab03 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Wed, 27 Jan 2021 16:01:16 -0600 Subject: [PATCH] Remove unused template file and add outdated watermarks for manual --- templates/OldManualVersionWarning.php | 7 -- www/css/manual-dark.css | 5 +- www/css/manual.css | 4 + www/images/outdated-dark.svg | 108 ++++++++++++++++++++++++++ www/images/outdated.svg | 108 ++++++++++++++++++++++++++ 5 files changed, 224 insertions(+), 8 deletions(-) delete mode 100644 templates/OldManualVersionWarning.php create mode 100644 www/images/outdated-dark.svg create mode 100644 www/images/outdated.svg diff --git a/templates/OldManualVersionWarning.php b/templates/OldManualVersionWarning.php deleted file mode 100644 index ae33e985..00000000 --- a/templates/OldManualVersionWarning.php +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/www/css/manual-dark.css b/www/css/manual-dark.css index dbbc0955..f0372398 100644 --- a/www/css/manual-dark.css +++ b/www/css/manual-dark.css @@ -1,4 +1,8 @@ @media(prefers-color-scheme: dark){ + main.manual.outdated{ + background: url('/images/outdated-dark.svg'); + } + blockquote, figure.text{ background: rgba(0,0,0,.25); @@ -8,7 +12,6 @@ background-color: var(--light-body-text); } - .manual > article > section > section[id] > ol ol > li aside.number::after, .manual > article > section > section[id] section > ol > li aside.number::after, .manual > article > section > section[id] section > aside.number::after{ diff --git a/www/css/manual.css b/www/css/manual.css index 9ede6134..9e65fab4 100644 --- a/www/css/manual.css +++ b/www/css/manual.css @@ -50,6 +50,10 @@ main.manual{ font-variant-numeric: initial; } +main.manual.outdated{ + background: url('/images/outdated.svg'); +} + main code:first-child{ margin-top: 0; } diff --git a/www/images/outdated-dark.svg b/www/images/outdated-dark.svg new file mode 100644 index 00000000..dd0896e2 --- /dev/null +++ b/www/images/outdated-dark.svg @@ -0,0 +1,108 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/www/images/outdated.svg b/www/images/outdated.svg new file mode 100644 index 00000000..6a1ee84f --- /dev/null +++ b/www/images/outdated.svg @@ -0,0 +1,108 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + +