From adba57970e9193a463aa6cd19e4c09cbfad19da8 Mon Sep 17 00:00:00 2001 From: RochDLY Date: Tue, 20 Feb 2024 11:26:27 +0100 Subject: modification du template nav MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit modification de la structure du nav, remplacement de la div par une liste non ordonnée. Modification du css en conséquence. Modification du makefile dans la génération de l'indexc. --- static/css/styles.css | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'static/css') diff --git a/static/css/styles.css b/static/css/styles.css index e6cf450..cbd82b1 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -64,12 +64,19 @@ footer { grid-row: 1; } -.navbar { +.navbar ul { + list-style-type: none; + margin: 0; + padding: 0; + overflow: hidden; background-color: white; } -.navbar a { +.navbar li { float: left; +} + +.navbar li a { display: block; color: black; text-align: center; @@ -77,15 +84,25 @@ footer { text-decoration: none; } -.navbar a.right { +.navbar li.right { float: right; } -.navbar a:hover { +.navbar li.right a:hover { + background-color: white; + cursor: default; +} + +.navbar li a:hover { background-color: #333; color: white; } +.easteregg a:hover { + background-color: white; + cursor: default; +} + .posts-list { grid-column: 1; grid-row: 2; @@ -139,4 +156,4 @@ footer a:hover, footer a:active { .toc a:hover, .toc a:active { text-decoration: underline; -} \ No newline at end of file +} -- cgit v1.2.3