mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
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
This commit is contained in:
parent
327fed30c8
commit
c194cec520
@ -70,3 +70,7 @@ column-count: $columns$;
|
||||
\define if-no-sidebar(text)
|
||||
<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$</$reveal>
|
||||
\end
|
||||
|
||||
\define if-background-attachment(text)
|
||||
<$reveal state="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" type="nomatch" text="">$text$</$reveal>
|
||||
\end
|
||||
|
@ -85,6 +85,14 @@ body.tc-body {
|
||||
fill: <<colour foreground>>;
|
||||
}
|
||||
|
||||
<<if-background-attachment """
|
||||
|
||||
body.tc-body {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
""">>
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
line-height: 1.2;
|
||||
font-weight: 300;
|
||||
|
Loading…
Reference in New Issue
Block a user