Style the body tag through a CSS class

This avoids accidentally styling body tags within SVG foreignObject
elements.
This commit is contained in:
Jeremy Ruston 2013-10-28 15:06:17 +00:00
parent 3cab550ebb
commit aefca26d72
4 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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"/>`

View File

@ -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}}}

View File

@ -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}};