From 328b4abc2f77038a4b9d473b98d94773d2d1bb44 Mon Sep 17 00:00:00 2001 From: Mez Date: Wed, 13 Aug 2025 19:41:42 +0100 Subject: [PATCH] Add hiatus option --- README.org | 1 + build/style.css | 10 ++++++++++ colors.py | 7 ++++++- rewards.py | 6 +++--- variables-template.py | 1 + 5 files changed, 21 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index f8a94c7..890cf43 100644 --- a/README.org +++ b/README.org @@ -28,6 +28,7 @@ Python scripts to generate a mobile-friendly static site for tracking tcg cards - =lowpriority=: a list of decks you’re collecting that aren’t in mass decks - =trademedium=: whether to allow trading medium-priority cards away in exchange for high-priority cards (special cards will not be listed as tradeable) - =tradepost=: URL of your trade post on Dreamwidth + - =hiatus=: set to =True= if you are on hiatus - =faves=: a list of cards to showcase on the index page - =headerbackground=: an HTML colour to display behind your header image and set as a theme colour - =british=: =True= if you want “grey” to display on the site, =False= if you want “gray” diff --git a/build/style.css b/build/style.css index a8e3cd1..78ba97e 100644 --- a/build/style.css +++ b/build/style.css @@ -60,6 +60,16 @@ body > main { } } +div#hiatus { + padding: 10px; + margin-bottom: 5px; +} + +div#hiatus, div#hiatus * { + color: Canvas; + background-color: CanvasText; +} + table.decktable { display: inline-block; border: 1px solid CanvasText; diff --git a/colors.py b/colors.py index 36d46b5..797f766 100644 --- a/colors.py +++ b/colors.py @@ -670,7 +670,10 @@ def headerwrite(thefile,pagename): header.write("/style.css\">\n 0: header.write("/" + variables.subfolder) - header.write("/user.css\">\n \n " + variables.name + "’s card collection :: " + pagename + "\n \n \n \n