about summary refs log tree commit diff
path: root/users/fcuny/blog/static
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-04-22 12:44:27 -0700
committerFranck Cuny <franck@fcuny.net>2021-04-22 12:44:27 -0700
commitef3fa6ba26fcf11fdd2325764147f56c90b94a7b (patch)
tree4da9b40592d68d96f24c188cded6853c0f8b77bd /users/fcuny/blog/static
parenttoml: re-configure markup (diff)
downloadworld-ef3fa6ba26fcf11fdd2325764147f56c90b94a7b.tar.gz
layout: add a navbar
I want to differentiate blog's entries from more general notes. For
this, we create two menu entries, and add a navbar at the top.

The nav bar let us select between the two kind of articles: blogs or
notes. For now we have a single blog entry, and no notes.

The page to list entries is simplified: we use the same layout for all
lists (tags, notes, blogs).

The CSS is updated to support the new nav bar.
Diffstat (limited to 'users/fcuny/blog/static')
-rw-r--r--users/fcuny/blog/static/css/custom.css41
1 files changed, 40 insertions, 1 deletions
diff --git a/users/fcuny/blog/static/css/custom.css b/users/fcuny/blog/static/css/custom.css
index 7592e8e..f363bee 100644
--- a/users/fcuny/blog/static/css/custom.css
+++ b/users/fcuny/blog/static/css/custom.css
@@ -38,7 +38,7 @@ h2 {
 }
 
 span.published, span.updated {
-    display: block;
+    display: center;
     font-style: oblique;
 }
 
@@ -92,3 +92,42 @@ blockquote {
     padding-left: 5px;
     font-style: italic;
 }
+
+nav {
+    display: flex;
+    flex: 2 0px;
+    justify-content: flex-end;
+    padding-left: 1em;
+    margin: 0 auto;
+    line-height: 0.2rem;
+}
+
+nav ul {
+    display: flex;
+    list-style-type: none;
+    margin: 0
+}
+
+nav a {
+    padding: 1em;
+    display: inline-block;
+    color: black;
+    font-family: sans-serif;
+    text-decoration: none;
+    transition: all 75ms ease-in;
+}
+
+nav a:hover {
+    color: #fff;
+    background-color: #007d9c;
+}
+
+nav a.menu-active:hover {
+    color: #fff;
+    background-color: #007d9c;
+}
+
+nav a.menu-active {
+    color: #007d9c;
+}
+