mirror of
https://github.com/typemill/typemill.git
synced 2025-08-12 17:14:03 +02:00
Version 1.3.8: User Rights
This commit is contained in:
@@ -398,6 +398,12 @@ button.play-video::after {
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
.contentnav.collapse .folder > ul{
|
||||
display: none;
|
||||
}
|
||||
.contentnav .folder.active > ul,.contentnav .folder.activeParent > ul{
|
||||
display: block;
|
||||
}
|
||||
.burgerbutton{
|
||||
display: inline-block;
|
||||
font-size: 2em;
|
||||
|
@@ -211,10 +211,14 @@ forms:
|
||||
type: fieldset
|
||||
legend: Navigations and Chapters
|
||||
fields:
|
||||
collapseNav:
|
||||
type: checkbox
|
||||
label: Collapse navigation
|
||||
checkboxlabel: Collapse and expand navigation?
|
||||
chapnum:
|
||||
type: checkbox
|
||||
label: Show Chapter Numbers
|
||||
checkboxlabel: Count chapters in navigation?
|
||||
label: Chapter Numbers
|
||||
checkboxlabel: Show chapter numbers in navigation?
|
||||
|
||||
fieldsetfooter:
|
||||
type: fieldset
|
||||
|
@@ -119,6 +119,30 @@
|
||||
|
||||
<script src="{{ base_url }}/system/author/js/typemillutils.js?20200418"></script>
|
||||
<script>typemillUtilities.start();</script>
|
||||
|
||||
{% if settings.themes.cyanine.collapseNav %}
|
||||
<script>
|
||||
var expandButton = document.getElementById("expander");
|
||||
if(expandButton)
|
||||
{
|
||||
expandButton.addEventListener('click', function(e)
|
||||
{
|
||||
var contentnav = document.getElementById("contentnav");
|
||||
|
||||
contentnav.classList.toggle("collapse");
|
||||
|
||||
if(contentnav.classList.contains("collapse"))
|
||||
{
|
||||
expandButton.innerHTML = "expand navigation";
|
||||
}
|
||||
else
|
||||
{
|
||||
expandButton.innerHTML = "collapse navigation";
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{{ assets.renderJS() }}
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<div class="w-100 mw8 center grid-container">
|
||||
|
||||
<aside class="grid-header ph3 pv3">
|
||||
|
||||
|
||||
<header>
|
||||
|
||||
<div class="logo">
|
||||
@@ -22,6 +22,14 @@
|
||||
|
||||
</header>
|
||||
|
||||
{% if widgets %}
|
||||
{% for index,widget in widgets %}
|
||||
<div id="{{ index }}" class="mt4-l mt3">
|
||||
{{ widget }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
</aside>
|
||||
|
||||
<div class="grid-main ph3 ph4-l pv3 lh-copy f4 fw3">
|
||||
@@ -105,9 +113,9 @@
|
||||
|
||||
</div>
|
||||
|
||||
<aside class="grid-sidebar ph3 pv4">
|
||||
<aside class="grid-sidebar ph3 pv3">
|
||||
|
||||
<nav class="contentnav" aria-label="Menu">
|
||||
<nav id="contentnav" class="contentnav{{ settings.themes.cyanine.collapseNav ? ' collapse' : '' }}" aria-label="Menu">
|
||||
|
||||
<!-- burger menu controlled by invisible checkbox -->
|
||||
<input type="checkbox" id="burger" class="dn">
|
||||
|
@@ -30,6 +30,10 @@
|
||||
|
||||
{% import _self as macros %}
|
||||
|
||||
{% if settings.themes.cyanine.collapseNav %}
|
||||
<button id="expander" class=" dn db-l link pointer w-100 bg-secondary ba b--tertiary pa2 mb1 f7">expand navigation</button>
|
||||
{% endif %}
|
||||
|
||||
<ul class="list pa0 menu {{ settings.themes.cyanine.fontnavi }}">
|
||||
{{ macros.loop_over(navigation, settings.themes.cyanine.chapnum ) }}
|
||||
</ul>
|
Reference in New Issue
Block a user