mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Make tiddler width fluid when sidebar hidden
This commit is contained in:
parent
be5f6f6700
commit
ee2cd2056c
@ -1,6 +1,9 @@
|
||||
title: $:/themes/tiddlywiki/vanilla/base
|
||||
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
|
||||
/*
|
||||
** 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}};
|
||||
padding: 42px 42px 42px 42px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
<<if-no-sidebar "
|
||||
|
||||
.story-river {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
">>
|
||||
|
||||
}
|
||||
|
||||
@media print {
|
||||
@ -526,6 +540,14 @@ a.tw-tiddlylink-external:hover {
|
||||
width: {{$:/themes/tiddlywiki/vanilla/metrics##tiddlerwidth}};
|
||||
}
|
||||
|
||||
<<if-no-sidebar "
|
||||
|
||||
.tw-tiddler-frame {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
">>
|
||||
|
||||
.tw-tiddler-info {
|
||||
margin: 0 -42px 0 -42px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user