From 3b780ac8bdf1c2ee4c4e3f96b6624d402b931b7f Mon Sep 17 00:00:00 2001 From: Ramon Dantas Date: Mon, 15 May 2017 22:49:34 -0300 Subject: [PATCH] Make file lists collapsable (#536) --- public/css/style.css | 11 +++++++++++ templates/view.html | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index dfb5f837..20bc665a 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -426,6 +426,17 @@ select#bottom_language_selector { hyphens: auto; } +.filelist-control { + cursor: pointer; +} + +.filelist-control::before { + content: "\25B6 "; +} + +.filelist-control[aria-expanded="true"]::before { + content: "\25BC "; +} /*Comments*/ diff --git a/templates/view.html b/templates/view.html index 7b49895c..b7ccce14 100644 --- a/templates/view.html +++ b/templates/view.html @@ -90,10 +90,10 @@ {{ if gt (len .FileList) 0 }} -
+
-

{{T "files"}}

-
+ +
{{T "filename"}}