Abstände zwischen aktiven/nicht-aktiven Menüeinträgen korrigiert
authorKai Moritz <kai@juplo.de>
Mon, 13 Mar 2017 15:34:52 +0000 (16:34 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 14 Mar 2017 10:52:43 +0000 (11:52 +0100)
dist/less/screen/menu.less
dist/thymeleaf/templates/layout.html

index 1dc142e..68d0294 100644 (file)
 }
 #submenu ul.s
 {
-  margin: 1.5em 0 0 0; /** 24px 0 0 0 */
+  margin: 1em 0 0 0; /** 20px 0 0 0 */
   padding: 0;
   list-style-type: none;
 }
+#submenu ul.active
+{
+  margin-top: 1.5em; /** 24px */
+}
 #submenu li.s
 {
   margin: 0 0 .5em 0; /** 0 0 10px 0 */
index 5c72c7a..c9f3ab8 100644 (file)
                     >fix-swf</a>
                 <ul th:if="${selected and childs != null}"
                     class="s active"
-                    th:class="${selected} ? 's active' : 's'"
+                    th:class="${selected && pos == crumbs.size()-1} ? 's active' : 's'"
                     >
                   <li th:replace="templates/layout :: submenu(submenu=${childs}, parent=${entry.key}, pos=${pos + 1})"
                       class="s"