From c194cec5205c2d5a591c50e5b09ffad400925970 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Tue, 23 Jan 2018 17:49:24 +0100 Subject: [PATCH] tc-body background transparent if background attachment (#3100) * tc-body transparent if background attachment if you go fullscreen with the fullscreen button, the tc-body background color hides the background attachments - so make it transparent if $:/themes/tiddlywiki/vanilla/settings/backgroundimage isn't empty * if background attachment macro macro to make tc-body background transparent --- core/wiki/macros/CSS.tid | 4 ++++ themes/tiddlywiki/vanilla/base.tid | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/core/wiki/macros/CSS.tid b/core/wiki/macros/CSS.tid index 1b7c35eff..a5b68ea07 100644 --- a/core/wiki/macros/CSS.tid +++ b/core/wiki/macros/CSS.tid @@ -70,3 +70,7 @@ column-count: $columns$; \define if-no-sidebar(text) <$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$ \end + +\define if-background-attachment(text) +<$reveal state="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" type="nomatch" text="">$text$ +\end diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index e50d87388..b00b36476 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -85,6 +85,14 @@ body.tc-body { fill: <>; } +<> + h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 300;