mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +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)
|
\define if-no-sidebar(text)
|
||||||
<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$</$reveal>
|
<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$</$reveal>
|
||||||
\end
|
\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>>;
|
fill: <<colour foreground>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<<if-background-attachment """
|
||||||
|
|
||||||
|
body.tc-body {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
""">>
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user