WIP:bulma:neu
[website] / dist / templates / layout.html
index b07be2b..8b9f3da 100644 (file)
@@ -45,6 +45,8 @@
                 th:with="
                     child=${pos == len},
                     selected=${!child and crumbs.get(pos) == entry},
+                    leaf=${pos >= (len - 1) and not selected},
+                    active=${entry == uri},
                     sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)},
                     childs=${entry == parent ? null : _childs.get(entry)}
                     "
@@ -54,7 +56,7 @@
                   th:if="${entry != parent}"
                   th:href="@{${entry}}"
                   class="s selected"
-                  th:class="${selected} ? 's selected' : 's'"
+                  th:class="(${selected} ? 's selected' : 's') + ' len_' + ${len} + ' pos_' + ${pos} + (${leaf}?' leaf':'') + (${active} ? ' active' : '')"
                   th:text="${_titles.get(entry)}">fix-swf</a>
               <ul th:if="${selected and childs != null}"
                   class="s active"