Skip to content

Commit

Permalink
Add theme font size settings to Open in New Window CSS (#7945)
Browse files Browse the repository at this point in the history
* add theme font size settings to Open in New Window CSS

* add DOCTYPE html to New Window startup template

* fix merge typo

* fix merge typo one more time
  • Loading branch information
pmario authored Mar 28, 2024
1 parent 32cbd53 commit b6eab1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions themes/tiddlywiki/vanilla/base.tid
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,7 @@ canvas.tc-edit-bitmapeditor {
clear: both;
}

.tc-single-tiddler-window .tc-tiddler-body,
.tc-tiddler-frame .tc-tiddler-body {
font-size: {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}};
line-height: {{$:/themes/tiddlywiki/vanilla/metrics/bodylineheight}};
Expand All @@ -1344,6 +1345,11 @@ canvas.tc-edit-bitmapeditor {
overflow: hidden; /* https://github.com/Jermolene/TiddlyWiki5/issues/282 */
}

/*
* Tiddler in a new window.
* Also see: .tc-single-tiddler-window .tc-tiddler-body, above
*/

html body.tc-body.tc-single-tiddler-window {
margin: 1em;
background: <<colour tiddler-background>>;
Expand Down

0 comments on commit b6eab1a

Please sign in to comment.