From 7654bcc6be740276477eb2f2d6d8d90c4a63ff83 Mon Sep 17 00:00:00 2001 From: 53hornet <53hornet@gmail.com> Date: Fri, 13 Jul 2018 18:03:47 -0400 Subject: Navbar working. --- md/53hor.net/include/nav.inc | 9 +++++-- md/53hor.net/include/styles.css | 57 ++++++++++++++++++++++++++++++++++++----- 2 files changed, 57 insertions(+), 9 deletions(-) (limited to 'md') diff --git a/md/53hor.net/include/nav.inc b/md/53hor.net/include/nav.inc index 5150512..1022fc5 100644 --- a/md/53hor.net/include/nav.inc +++ b/md/53hor.net/include/nav.inc @@ -1,4 +1,9 @@ diff --git a/md/53hor.net/include/styles.css b/md/53hor.net/include/styles.css index 3222b01..f7322a7 100644 --- a/md/53hor.net/include/styles.css +++ b/md/53hor.net/include/styles.css @@ -1,32 +1,75 @@ +/* stylesheet for 53hor.net */ + +:root { + /* custom colors */ + --balboa:#1a5a72; +} + #TOC { position: fixed; + width: 25%; + height: 100%; } #TOC ul { + list-style-type: disc; + color: var(--balboa); + overflow: hidden; + padding-left: 1em; +} + +#TOC li a { + text-decoration: none; + display: block; + color: black; +} + +#topnav { + +} + +#topnav ul { list-style-type: none; margin: 0; padding: 0; - width: 25%; + overflow: hidden; position: fixed; - height: 100%; - overflow: auto; + top: 0; + width: 100%; + background-color: var(--balboa); } -#TOC li a { +#topnav li { + float: left; + padding: 0; +} + +#topnav li a { display: block; + text-align: center; padding: 1em 1em; text-decoration: none; + color: white; } -#topnav { - display: inline-block; - +#topnav li a:hover { + color: var(--balboa); + background-color: white; } article { margin-left: 25%; + margin-top: 4em; } body { padding: 0; + margin: 0; +} + +p { + font-size: 0.8em; + font-weight 400; + text-align: justify; + text-indent: 1em; } -- cgit v1.2.3