styling the footer with flex
authordanix <danix@danix.xyz>
Sun, 26 Feb 2023 17:50:36 +0000 (18:50 +0100)
committerdanix <danix@danix.xyz>
Sun, 26 Feb 2023 17:50:36 +0000 (18:50 +0100)
footer.html
gitweb-danixland/gitweb.css

index 42bc7e3..14ac460 100644 (file)
@@ -1,8 +1,8 @@
 <div class="site-footer">
-       <div class="aknolwledgements">
+       <div class="aknolwledgements footer-columns">
                This repository is powered by git, gitolite and gitweb
        </div>
-       <div class="social-links">
+       <div class="social-links footer-columns">
                <ul>
                        <li>github</li>
                        <li>twitter</li>
@@ -10,7 +10,7 @@
                        <li>spotify</li>
                </ul>
        </div>
-       <div class="rss-links">
+       <div class="rss-links footer-columns">
                <a class="rss" href="https://git.danix.xyz/?a=project_index">RSS</a>
                <a class="opml" href="https://git.danix.xyz/?a=opml">OPML</a>
        </div>
index 3c7a7b1..417face 100644 (file)
@@ -219,9 +219,9 @@ td, th {
 }
 
 .page_footer_text {
-  background-color: var(--accent);
   color: var(--fg);
   text-align: right;
+  padding-right: 2em;
   display: inline;
   float: right;
   width: calc(100% - 2em);
@@ -231,9 +231,23 @@ td, th {
 }
 
 .site-footer {
-
+  display: flex;
+  flex-direction: row;
+  flex-wrap: nowrap;
+  justify-content: space-around;
+  align-items: stretch;
+  align-content: stretch;
 }
 
+.site-footer .columns {
+  width: 30%;
+  display: block;
+  flex-grow: 0;
+  flex-shrink: 1;
+  flex-basis: auto;
+  align-self: auto;
+  order: 0;
+}
 a.rss_logo {
   border: 0;
   clip: rect(1px, 1px, 1px, 1px);