mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-04-27 15:50:53 -07: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
2 changed files with 12 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue