mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Style the body tag through a CSS class
This avoids accidentally styling body tags within SVG foreignObject elements.
This commit is contained in:
parent
3cab550ebb
commit
aefca26d72
@ -18,7 +18,7 @@ type: text/vnd.tiddlywiki-html
|
||||
{{{ [tag[$:/tags/stylesheet]] [is[shadow]tag[$:/tags/stylesheet]] ||$:/core/templates/wikified-tiddler}}}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<body class="tw-body">
|
||||
{{$:/StaticBanner||$:/core/templates/html-tiddler}}
|
||||
{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}
|
||||
</body>
|
||||
|
@ -11,7 +11,7 @@ title: $:/core/templates/static.tiddler.html
|
||||
<link rel="stylesheet" href="static.css">
|
||||
<title>`{{$:/core/wiki/title}}`</title>
|
||||
</head>
|
||||
<body>
|
||||
<body class="tw-body">
|
||||
`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`
|
||||
<section class="story-river">
|
||||
`<$view title="$:/core/ui/ViewTemplate" format="htmlwikified"/>`
|
||||
|
@ -19,7 +19,7 @@ title: $:/core/templates/tiddlywiki5.template.html
|
||||
<!----------- Raw markup ----------->
|
||||
{{{ [tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}}
|
||||
</head>
|
||||
<body>
|
||||
<body class="tw-body">
|
||||
<!----------- Static styles ----------->
|
||||
<div id="styleArea">
|
||||
{{{ [is[system]type[text/css]] ||$:/core/templates/css-tiddler}}}
|
||||
|
@ -67,7 +67,7 @@ html {
|
||||
font-family: {{$:/themes/tiddlywiki/snowwhite/settings##fontfamily}};
|
||||
}
|
||||
|
||||
body {
|
||||
body.tw-body {
|
||||
font-size: {{$:/themes/tiddlywiki/snowwhite/metrics##fontsize}};
|
||||
line-height: {{$:/themes/tiddlywiki/snowwhite/metrics##lineheight}};
|
||||
color: {{$:/themes/tiddlywiki/snowwhite/colourmappings##foreground}};
|
||||
|
Loading…
Reference in New Issue
Block a user