Files
copyparty/contrib/plugins/minimal-up2k.html

47 lines
1.4 KiB
HTML
Raw Normal View History

2021-05-12 23:06:13 +02:00
<!--
2023-01-30 22:53:27 +00:00
NOTE: DEPRECATED; please use the javascript version instead:
https://github.com/9001/copyparty/blob/hovudstraum/contrib/plugins/minimal-up2k.js
----
2021-05-14 16:38:07 +02:00
save this as .epilogue.html inside a write-only folder to declutter the UI, makes it look like
2021-05-14 20:07:48 +02:00
https://user-images.githubusercontent.com/241032/118311195-dd6ca380-b4ef-11eb-86f3-75a3ff2e1332.png
only works if you disable the prologue/epilogue sandbox with --no-sb-lg
which should probably be combined with --no-dot-ren to prevent damage
(`no_sb_lg` can also be set per-volume with volflags)
2021-05-12 23:06:13 +02:00
-->
<style>
/* make the up2k ui REALLY minimal by hiding a bunch of stuff: */
2023-01-30 22:53:27 +00:00
#ops, #tree, #path, #wfp, /* main tabs and navigators (tree/breadcrumbs) */
2021-05-12 23:06:13 +02:00
2021-11-10 20:57:45 +01:00
#u2conf tr:first-child>td[rowspan]:not(#u2btn_cw), /* most of the config options */
2021-05-12 23:06:13 +02:00
#srch_dz, #srch_zd, /* the filesearch dropzone */
2021-08-25 08:26:38 +02:00
#u2cards, #u2etaw /* and the upload progress tabs */
2021-05-12 23:06:13 +02:00
2021-05-13 00:43:25 +02:00
{display: none !important} /* do it! */
2021-05-12 23:06:13 +02:00
/* add some margins because now it's weird */
.opview {margin-top: 2.5em}
2021-08-25 08:26:38 +02:00
#op_up2k {margin-top: 6em}
2021-05-12 23:06:13 +02:00
/* and embiggen the upload button */
#u2conf #u2btn, #u2btn {padding:1.5em 0}
2021-05-13 01:36:14 +02:00
/* adjust the button area a bit */
2021-10-23 16:59:11 +02:00
#u2conf.w, #u2conf.ww {width: 35em !important; margin: 5em auto}
2021-05-13 00:43:25 +02:00
/* a */
#op_up2k {min-height: 0}
2021-05-12 23:06:13 +02:00
</style>
<a href="#" onclick="this.parentNode.innerHTML='';">show advanced options</a>