mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
Got the zooming navigator working again
Albeit, it doesn't play well with the fixed navbar
This commit is contained in:
parent
086feb31dc
commit
9f86f98cb1
@ -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%"
|
||||
}
|
||||
},[]);
|
||||
};
|
||||
|
||||
})();
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user