1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +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;
}
@media (max-width: 55em) {
@media (max-width: {{$:/themes/tiddlywiki/snowwhite/metrics##storywidth}}) {
.sidebar-header {
padding: 1em;
}
@ -340,11 +340,11 @@ a.tw-tiddlylink-external {
}
}
@media (min-width: 55em) {
@media (min-width: {{$:/themes/tiddlywiki/snowwhite/metrics##storywidth}}) {
.sidebar-header {
position: fixed;
top: 0;
left: 55em;
top: {{$:/themes/tiddlywiki/snowwhite/metrics##storytop}};
left: {{$:/themes/tiddlywiki/snowwhite/metrics##storyright}};
bottom: 0;
right: 0;
overflow-y: auto;
@ -355,7 +355,10 @@ a.tw-tiddlylink-external {
}
.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;
}
}

View File

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