1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +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:
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}}} {{{ [tag[$:/tags/stylesheet]] [is[shadow]tag[$:/tags/stylesheet]] ||$:/core/templates/wikified-tiddler}}}
</style> </style>
</head> </head>
<body> <body class="tw-body">
{{$:/StaticBanner||$:/core/templates/html-tiddler}} {{$:/StaticBanner||$:/core/templates/html-tiddler}}
{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}} {{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}
</body> </body>

View File

@ -11,7 +11,7 @@ title: $:/core/templates/static.tiddler.html
<link rel="stylesheet" href="static.css"> <link rel="stylesheet" href="static.css">
<title>`{{$:/core/wiki/title}}`</title> <title>`{{$:/core/wiki/title}}`</title>
</head> </head>
<body> <body class="tw-body">
`{{$:/StaticBanner||$:/core/templates/html-tiddler}}` `{{$:/StaticBanner||$:/core/templates/html-tiddler}}`
<section class="story-river"> <section class="story-river">
`<$view title="$:/core/ui/ViewTemplate" format="htmlwikified"/>` `<$view title="$:/core/ui/ViewTemplate" format="htmlwikified"/>`

View File

@ -19,7 +19,7 @@ title: $:/core/templates/tiddlywiki5.template.html
<!----------- Raw markup -----------> <!----------- Raw markup ----------->
{{{ [tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}} {{{ [tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}}
</head> </head>
<body> <body class="tw-body">
<!----------- Static styles -----------> <!----------- Static styles ----------->
<div id="styleArea"> <div id="styleArea">
{{{ [is[system]type[text/css]] ||$:/core/templates/css-tiddler}}} {{{ [is[system]type[text/css]] ||$:/core/templates/css-tiddler}}}

View File

@ -67,7 +67,7 @@ html {
font-family: {{$:/themes/tiddlywiki/snowwhite/settings##fontfamily}}; font-family: {{$:/themes/tiddlywiki/snowwhite/settings##fontfamily}};
} }
body { body.tw-body {
font-size: {{$:/themes/tiddlywiki/snowwhite/metrics##fontsize}}; font-size: {{$:/themes/tiddlywiki/snowwhite/metrics##fontsize}};
line-height: {{$:/themes/tiddlywiki/snowwhite/metrics##lineheight}}; line-height: {{$:/themes/tiddlywiki/snowwhite/metrics##lineheight}};
color: {{$:/themes/tiddlywiki/snowwhite/colourmappings##foreground}}; color: {{$:/themes/tiddlywiki/snowwhite/colourmappings##foreground}};