WIP:bulma:neu:flex
authorKai Moritz <kai@juplo.de>
Fri, 26 Feb 2021 20:47:01 +0000 (21:47 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 26 Feb 2021 20:47:01 +0000 (21:47 +0100)
dist/templates/layout.html
sass/juplo.scss

index 86a500d..14718da 100644 (file)
@@ -17,8 +17,8 @@
       th:fragment="body(uri, maincontent, marginalcontent)"
       thymeproxy:variables="${json}"
       th:with="crumbs=${_crumbs.get(uri)}">
-    <div id="page" class="columns">
-      <main class="column content section" th:include="${maincontent}" th:fragment="maincontent">
+    <div id="page" class="">
+      <main class="content section" th:include="${maincontent}" th:fragment="maincontent">
         <h1 th:text="${_titles.get(uri)}">TEMPLATE: Layout</h1>
         <p>
           <strong>Lorem ipsum</strong> dolor
@@ -63,7 +63,7 @@
           anim id est laborum.
         </p>
       </main>
-      <nav class="column section is-3 has-text-right">
+      <nav class="section has-text-right">
         <a href="../index.html" th:href="@{/}" title="Home">
           <img src="/img/logo.svg" alt="juplo" class="logo">
         </a>
index 45389f3..540cf1e 100644 (file)
@@ -111,8 +111,15 @@ body
 #page
 {
   flex: 1 0 auto;
+  display: flex;
 }
 footer
 {
   flex-shrink: 0;
 }
+main {
+  flex-grow: 1;
+}
+nav {
+  flex-grow: 1;
+}