From 2b27f20a9602549beb36244240c669ba86ecb0b6 Mon Sep 17 00:00:00 2001 From: boasting-squirrel Date: Mon, 4 Mar 2019 22:35:48 +0100 Subject: Added color on hovering row --- src/renderer.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/renderer.rs b/src/renderer.rs index 2cb9ae7..89a9248 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -29,7 +29,7 @@ pub fn page( @if !is_root { @if let Some(parent) = page_parent { tr { - td { + td colspan="3" { span.chevron { (chevron_left()) } a.root href=(parent) { "Parent directory" @@ -185,7 +185,7 @@ fn css() -> Markup { line-height: 1.125rem; width: 33.333%; } - table thead tr th { + table tr th { padding: 0.5rem 0.625rem 0.625rem; font-weight: bold; color: #444444; @@ -193,6 +193,9 @@ fn css() -> Markup { table tr:nth-child(even) { background: #f6f6f6; } + table tr:hover { + background: #deeef7a6; + } a { text-decoration: none; color: #3498db; -- cgit v1.2.3