]> juplo.de Git - website/commitdiff
WIP:bulma:neu
authorKai Moritz <kai@juplo.de>
Thu, 25 Feb 2021 15:50:20 +0000 (16:50 +0100)
committerKai Moritz <kai@juplo.de>
Thu, 25 Feb 2021 15:50:20 +0000 (16:50 +0100)
dist/templates/layout.html
sass/juplo.scss

index a7743c23512eb6d56145e3f9dc0f197a9b33e7b4..bdc30466dd51a64999c299710b348dc5feaade7b 100644 (file)
             <li th:fragment="submenu(submenu, parent, pos)"
                 th:each="entry : ${submenu}"
                 th:with="
-                    leaf=${pos >= len - 1},
-                    selected=${!leaf and crumbs.get(pos) == entry},
+                    childs=${entry == parent ? null : _childs.get(entry)},
+                    leaf=${pos == (len - 1) and (childs == null or childs.size() == 0)},
+                    child=${pos == len},
+                    selected=${!child and crumbs.get(pos) == entry},
                     active=${entry == uri},
-                    sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)},
-                    childs=${entry == parent ? null : _childs.get(entry)}
+                    sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)}
                     "
                 class="s sub"
-                th:class="'s' + (${childs} ? ' sub' : '') + (${selected or sibling or leaf} ? '' : ' off')">
+                th:class="'s' + (${childs} ? ' sub' : '') + (${selected or sibling or child} ? '' : ' off')">
               <a  href="../potemkin/fix-swf/overview.html"
                   th:if="${entry != parent}"
                   th:href="@{${entry}}"
index c87aec1b70ef87a526e7c96b8b9e64504f2244ea..ea833cac78d6e66c0b84ed86976ddd2db663ed2f 100644 (file)
@@ -66,7 +66,7 @@ $button-hover-border-color: #000 !important;
 #navigation li.s > a.selected:after,
 #navigation li.s > a.leaf:after
 {
-  content: "\f0ab";
+  content: "\f0a8";
   padding-left: .5em;
   margin-right: -.5em;
   font-family: 'Font Awesome 5 Free';
@@ -83,8 +83,8 @@ $button-hover-border-color: #000 !important;
 {
   color: #fff;
 }
-#navigation li.s.sub > a.selected,
-#navigation li.s.sub > a.leaf
+#navigation li.s.sub > a.selected:after,
+#navigation li.s.sub > a.leaf:after
 {
-  content: "\f0a8";
+  content: "\f0ab";
 }