diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 8e90c14f..a561350f 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -18,7 +18,7 @@ --btn-bg-a: rgba(128,128,128,0.15); --btn-bg-a: color-mix(in oklab, var(--bg-max) 85%, var(--fg-max) 20%); --btn-bg: rgba(128,128,128,0.15); - --btn-bg: linear-gradient(-5deg, color-mix(in oklab, var(--btn-bg-a) 40%, transparent), color-mix(in oklab, var(--btn-bg-a)70%, var(--a-gray))); + --btn-bg: color-mix(in oklab, var(--bg-u5), transparent); --btn-h-fg: var(--a-hil); --btn-h-bg: color-mix(in oklab, var(--a-gray) 45%, var(--bg-max)); --btn-1-fg: var(--bg); @@ -129,6 +129,7 @@ html.y { html.b { --op-aa-sh: 0 0 .2em var(--bg-d3) inset; + --btn-bg: linear-gradient(-5deg, color-mix(in oklab, var(--btn-bg-a) 40%, transparent), color-mix(in oklab, var(--btn-bg-a)70%, var(--a-gray))); --btn-bs: .1em .2em .1em var(--mp-sh); } html.bz { @@ -141,7 +142,6 @@ html.by { html.a { --btn-bs: 0 .05em 0 var(--bg-d3) inset; --btn-1-bs: 0 .05em 0 var(--btn-1h-bg) inset; - --btn-bg: color-mix(in oklab, var(--bg-u5), transparent); --tree-bg: var(--bg); @@ -1705,6 +1705,7 @@ html.b #mu_outer { .opview.splitsub { margin-bottom: 0; } +#acc_cbopen:checked+span, .opview.act { display: block; } @@ -1812,6 +1813,9 @@ html.y #ops svg circle { .pfp.placeholder { text-shadow: 1px 1px 0 var(--bg-half), 1px -1px 0 var(--bg-half), -1px -1px 0 var(--bg-half), -1px 1px 0 var(--bg-half); } +#op_acc:not(.act) { + display: none; +} .opbox { padding: .5em; border-radius: 5px; @@ -2308,6 +2312,9 @@ html.b .btn { #u2tdate { opacity: .3; } +.disabled { + cursor: default; +} #up_quick.disabled { display: none; } @@ -5078,6 +5085,9 @@ html.e #wtc { margin-top: .3em; text-align: right; } +#opa_acc label { + cursor: pointer !important; +} #ops input[type=submit], #ops #goh { font-size: medium; diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index 0135ed2e..20e9e9d5 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -37,18 +37,6 @@
- - -
-

-
-
- control-panel -
- - -
-
@@ -68,17 +56,32 @@
- 🔎 - 🧯 - 🚀 - 🎈 -

+

📂
- 📟 - ⚙️ - 👤 -
+ 🔎 + 🧯 + 🚀 + 🎈 +

+

📂
+ 📟 + ⚙️ + + +
+ + + +

Login

+
+
{{ srv_info }}
+ control-panel +
+ + +
+
+
+
diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 51b77b76..3cd73f8e 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1531,7 +1531,6 @@ ebi('rcm').innerHTML = ( ops[a].href = '#v=' + v; } - ebi('opa_acc').appendChild(ebi('op_acc')); ebi('op_acc').onclick = function (e){ e.stopPropagation(); }; @@ -8987,18 +8986,20 @@ function apply_perms(res) { ebi('acc_pfp').innerHTML = acct.substring(0, 1); ebi('accessType').innerHTML = ''; ebi('blogout').value = L.logout; - ebi('acc_button').onclick = function(){}; } else{ ebi('blogout').style.display = 'none'; ebi('acc_name').innerHTML = L.login; ebi('acc_pfp').innerHTML = fun_tgl ? '👤' : 'acc'; - ebi('acc_button').onclick = goHome; } clmod(ebi('acc_pfp'), 'placeholder', acct == '*'); - var o = QSA('#ops>a[data-perm]'); + var o = QSA('#ops>a'); for (var a = 0; a < o.length; a++) { + if(!o[a].hasAttribute('data-perm')){ + clmod(o[a], 'disabled', false); + continue; + } var display = ''; var enabled = true; var needed = o[a].getAttribute('data-perm').split(' ');