1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Add a margin for single tiddler windows

This commit is contained in:
Jermolene 2015-05-03 15:05:26 +01:00
parent fdeb8a925f
commit d23f174d01
2 changed files with 5 additions and 1 deletions

View File

@ -35,7 +35,7 @@ exports.startup = function() {
return;
}
// Initialise the document
srcDocument.write("<html><head></head><body class='tc-body'></body></html>");
srcDocument.write("<html><head></head><body class='tc-body tc-single-tiddler-window'></body></html>");
srcDocument.close();
srcDocument.title = title;
srcWindow.addEventListener("beforeunload",function(event) {

View File

@ -66,6 +66,10 @@ body.tc-body {
<<custom-background-datauri>>
}
body.tc-body.tc-single-tiddler-window {
margin: 1em;
}
h1, h2, h3, h4, h5, h6 {
line-height: 1.2;
font-weight: 300;