1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-28 15:08:46 +00:00

Use metrics tiddler for more absolute measurements in the snow white theme

This commit is contained in:
Jeremy Ruston 2013-07-14 23:16:55 +01:00
parent bb5ebf6733
commit be788f64d4
2 changed files with 12 additions and 6 deletions

View File

@ -330,7 +330,7 @@ a.tw-tiddlylink-external {
padding-left: 0.5em; padding-left: 0.5em;
} }
@media (max-width: 55em) { @media (max-width: {{$:/themes/tiddlywiki/snowwhite/metrics##storywidth}}) {
.sidebar-header { .sidebar-header {
padding: 1em; padding: 1em;
} }
@ -340,11 +340,11 @@ a.tw-tiddlylink-external {
} }
} }
@media (min-width: 55em) { @media (min-width: {{$:/themes/tiddlywiki/snowwhite/metrics##storywidth}}) {
.sidebar-header { .sidebar-header {
position: fixed; position: fixed;
top: 0; top: {{$:/themes/tiddlywiki/snowwhite/metrics##storytop}};
left: 55em; left: {{$:/themes/tiddlywiki/snowwhite/metrics##storyright}};
bottom: 0; bottom: 0;
right: 0; right: 0;
overflow-y: auto; overflow-y: auto;
@ -355,7 +355,10 @@ a.tw-tiddlylink-external {
} }
.story-river { .story-river {
width: 55em; position: absolute;
left: {{$:/themes/tiddlywiki/snowwhite/metrics##storyleft}};
top: {{$:/themes/tiddlywiki/snowwhite/metrics##storytop}};
width: {{$:/themes/tiddlywiki/snowwhite/metrics##storywidth}};
padding: 3em; padding: 3em;
} }
} }

View File

@ -3,4 +3,7 @@ type: application/x-tiddler-dictionary
fontsize: `14px` fontsize: `14px`
lineheight: `20px` lineheight: `20px`
sidebarwidth: `20%` storyleft: `0em`
storytop: `0em`
storyright: `55em`
storywidth: `55em`