From 6a526ce7ef87298d6716c6214dd11d937cd2e91d Mon Sep 17 00:00:00 2001 From: Hal Gatewood Date: Fri, 23 Feb 2018 13:25:58 -0600 Subject: [PATCH] Added open class on directory clicking. --- index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 116a65a..c87d45b 100644 --- a/index.php +++ b/index.php @@ -82,7 +82,7 @@ if( !$title ) { $title = clean_title(basename(dirname(__FILE__))); } .block .file { padding-bottom: 5px; } .block .data { line-height: 1.3em; color: #666; } .block a { display: block; padding: 20px; transition: all 0.35s; } - .block a:hover, .block a:focus { text-decoration: none; background: #efefef; } + .block a:hover, .block a.open { text-decoration: none; background: #efefef; } .bold { font-weight: 900; } .upper { text-transform: uppercase; } @@ -114,10 +114,10 @@ if( !$title ) { $title = clean_title(basename(dirname(__FILE__))); } body.dark h1 { color: #fff; } body.dark .wrap { background: #2b2a2a; } body.dark .block { border-top: solid 1px #666; } - body.dark .block a:hover { background: #000; } + body.dark .block a:hover, body.dark .block a.open { background: #000; } body.dark .note { color: #fff; } body.dark .block .data { color: #fff; } - body.dark .sub { border-left: solid 5px #666; } + body.dark .sub { border-left: solid 5px #0e0e0e; } @@ -306,11 +306,12 @@ build_blocks( $items, false ); ?> -