1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

Make tiddler width fluid when sidebar hidden

This commit is contained in:
Jermolene 2014-04-12 17:14:27 +01:00
parent be5f6f6700
commit ee2cd2056c

View File

@ -1,6 +1,9 @@
title: $:/themes/tiddlywiki/vanilla/base title: $:/themes/tiddlywiki/vanilla/base
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/stylesheet]]
\define if-no-sidebar(text)
<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$</$reveal>
\end
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
/* /*
** Start with the normalize CSS reset, and then belay some of its effects ** Start with the normalize CSS reset, and then belay some of its effects
@ -463,6 +466,17 @@ a.tw-tiddlylink-external:hover {
width: {{$:/themes/tiddlywiki/vanilla/metrics##storywidth}}; width: {{$:/themes/tiddlywiki/vanilla/metrics##storywidth}};
padding: 42px 42px 42px 42px; padding: 42px 42px 42px 42px;
} }
<<if-no-sidebar "
.story-river {
width: auto;
}
">>
} }
@media print { @media print {
@ -526,6 +540,14 @@ a.tw-tiddlylink-external:hover {
width: {{$:/themes/tiddlywiki/vanilla/metrics##tiddlerwidth}}; width: {{$:/themes/tiddlywiki/vanilla/metrics##tiddlerwidth}};
} }
<<if-no-sidebar "
.tw-tiddler-frame {
width: auto;
}
">>
.tw-tiddler-info { .tw-tiddler-info {
margin: 0 -42px 0 -42px; margin: 0 -42px 0 -42px;
} }