From c7d950dd5e57577cd909718d9ff85f8f6aa793f5 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 27 Nov 2022 22:07:28 +0000 Subject: [PATCH] ux tweaks + devdocs --- copyparty/web/splash.css | 14 +++++++++----- copyparty/web/svcs.js | 2 +- docs/devnotes.md | 1 + 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/copyparty/web/splash.css b/copyparty/web/splash.css index bbd557c2..902fc6cb 100644 --- a/copyparty/web/splash.css +++ b/copyparty/web/splash.css @@ -44,6 +44,11 @@ a.r { color: #c04; border-color: #c7a; } +a.g { + color: #2b0; + border-color: #3a0; + box-shadow: 0 .3em 1em #4c0; +} #repl { border: none; background: none; @@ -106,9 +111,6 @@ html.z code { color: #9e0; background: rgba(0,16,0,0.2); } -.ossel a.r { - box-shadow: 0 .3em 1em #c04; -} .os { line-height: 1.5em; } @@ -147,8 +149,10 @@ html.z a.r { background: #804; border-color: #c28; } -html.z .ossel a.r { - box-shadow: 0 .3em 1em #704, 0 .3em 1em #704; +html.z a.g { + background: #470; + border-color: #af4; + box-shadow: 0 .3em 1em #7d0; } html.z input { color: #fff; diff --git a/copyparty/web/svcs.js b/copyparty/web/svcs.js index 28b05b5d..53de0fdb 100644 --- a/copyparty/web/svcs.js +++ b/copyparty/web/svcs.js @@ -28,7 +28,7 @@ function setos(os) { oa = QSA('.ossel a'); for (var a = 0; a < oa.length; a++) - clmod(oa[a], 'r', oa[a].id.slice(1) == os); + clmod(oa[a], 'g', oa[a].id.slice(1) == os); } setos(WINDOWS ? 'win' : LINUX ? 'lin' : MACOS ? 'mac' : ''); diff --git a/docs/devnotes.md b/docs/devnotes.md index b74292f0..bdad5ebc 100644 --- a/docs/devnotes.md +++ b/docs/devnotes.md @@ -95,6 +95,7 @@ python3 -m venv .venv pip install jinja2 strip_hints # MANDATORY pip install mutagen # audio metadata pip install pyftpdlib # ftp server +pip install impacket # smb server -- disable Windows Defender if you REALLY need this on windows pip install Pillow pyheif-pillow-opener pillow-avif-plugin # thumbnails pip install black==21.12b0 click==8.0.2 bandit pylint flake8 isort mypy # vscode tooling ```