From 7bc23687e3a2dd50393b45cbf2e7b0ca01938e6e Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 28 Aug 2021 00:02:59 +0200 Subject: [PATCH] this kinda broke ellipsing, hopefully not too expensive --- copyparty/web/browser.css | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 3f962e27..cd8dcb9b 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -922,11 +922,18 @@ html.light #ghead { margin: 0 auto; display: block; } -#ggrid span.dir:before { +#ggrid>a.dir:before { content: '📂'; - line-height: 0; +} +#ggrid>a:before { + display: block; + position: absolute; + padding: .3em 0; + margin: -.4em; + text-shadow: 0 0 .1em #000; + background: linear-gradient(135deg,rgba(255,255,255,0) 50%,rgba(255,255,255,0.2)); + border-radius: .3em; font-size: 2em; - margin: -.7em .1em -.5em -.3em; } #ggrid a:hover { background: #444;