mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-29 06:03:18 +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() {
|
exports.executeMacro = function() {
|
||||||
this.inZoomer = false;
|
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
|
title: $:/templates/PageTemplate
|
||||||
|
|
||||||
<div class="container">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
|
||||||
<div class="span12">
|
|
||||||
<<story story:"$:/StoryTiddlers" storyview:scroller><
|
<<story story:"$:/StoryTiddlers" storyview:scroller><
|
||||||
|
{{navigation-panel{
|
||||||
|
<<chooser>>
|
||||||
|
}}}
|
||||||
|
{{zoomer-panel{
|
||||||
|
<<zoomer>>
|
||||||
|
}}}
|
||||||
<div class="navbar navbar-fixed-top">
|
<div class="navbar navbar-fixed-top">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@ -15,13 +19,5 @@ title: $:/templates/PageTemplate
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{navigation-panel{
|
|
||||||
<<chooser>>
|
|
||||||
}}}
|
|
||||||
{{zoomer-panel{
|
|
||||||
<<zoomer>>
|
|
||||||
}}}
|
|
||||||
>>
|
>>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
@ -185,27 +185,3 @@ a.tw-tiddlylink-missing {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
background: #a55;
|
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…
x
Reference in New Issue
Block a user