1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-27 14:48:19 +00:00

Got the zooming navigator working again

Albeit, it doesn't play well with the fixed navbar
This commit is contained in:
Jeremy Ruston 2012-06-11 12:44:10 +01:00
parent 086feb31dc
commit 9f86f98cb1
3 changed files with 16 additions and 36 deletions

View File

@ -100,7 +100,15 @@ exports.handleEvent = function(event) {
exports.executeMacro = function() {
this.inZoomer = false;
return $tw.Tree.Element("div",{},[]);
return $tw.Tree.Element("div",{
style: {
"position": "absolute",
"right": "0",
"top": "0",
"min-width": "16px",
"height": "100%"
}
},[]);
};
})();

View File

@ -1,9 +1,13 @@
title: $:/templates/PageTemplate
<div class="container">
<div class="row">
<div class="span12">
<div class="container-fluid">
<<story story:"$:/StoryTiddlers" storyview:scroller><
{{navigation-panel{
<<chooser>>
}}}
{{zoomer-panel{
<<zoomer>>
}}}
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
@ -15,13 +19,5 @@ title: $:/templates/PageTemplate
</div>
</div>
</div>
{{navigation-panel{
<<chooser>>
}}}
{{zoomer-panel{
<<zoomer>>
}}}
>>
</div>
</div>
</div>

View File

@ -185,27 +185,3 @@ a.tw-tiddlylink-missing {
color: #fff;
background: #a55;
}
body {
-webkit-transition: -webkit-transform 0.3s ease-in-out;
}
body.in-zoomer {
-webkit-transition: none;
}
.zoomer-panel {
position: absolute;
right: 0;
top: 0;
min-width: 16px;
height: 100%; /* Makes the element the same height as the body, since the body is position: relative */
}
body.in-zoomer .zoomer-panel {
background: rgba(235,235,235,0.5);
}
body.in-zoomer iframe {
visibility: hidden;
}