Compare commits
No commits in common. "6e500cf07b73360d15955fa4bb686abab3432af1" and "f976c85e487f62294a399aa75e2b0534b2133773" have entirely different histories.
6e500cf07b
...
f976c85e48
|
@ -7,6 +7,6 @@ RUN cargo install cargo-watch && \
|
||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install nodejs npm -y --no-install-recommends && \
|
apt install nodejs npm -y --no-install-recommends && \
|
||||||
npm i -g uglify-js html-minifier
|
npm i -g uglify-js
|
||||||
|
|
||||||
CMD [ "/opt/code/dev-entry.sh" ]
|
CMD [ "/opt/code/dev-entry.sh" ]
|
||||||
|
|
|
@ -8,24 +8,8 @@
|
||||||
const root_drag_rop = document.getElementsByClassName('file-drag-n-drop')[0];
|
const root_drag_rop = document.getElementsByClassName('file-drag-n-drop')[0];
|
||||||
|
|
||||||
// make the root drag&drop element an ideal circle
|
// make the root drag&drop element an ideal circle
|
||||||
|
root_drag_rop.style.width = root_drag_rop.offsetWidth + 'px';
|
||||||
function updateDragNDrop() {
|
root_drag_rop.style.height = root_drag_rop.offsetWidth + 'px';
|
||||||
|
|
||||||
if (document.body.scrollWidth < 667) {
|
|
||||||
// mobile
|
|
||||||
delete root_drag_rop.style.width;
|
|
||||||
delete root_drag_rop.style.height;
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const width = root_drag_rop.offsetWidth;
|
|
||||||
|
|
||||||
root_drag_rop.style.width = width + 'px';
|
|
||||||
root_drag_rop.style.height = width + 'px';
|
|
||||||
}
|
|
||||||
|
|
||||||
updateDragNDrop();
|
|
||||||
document.onresize = updateDragNDrop();
|
|
||||||
|
|
||||||
/** @type {HTMLElement} */
|
/** @type {HTMLElement} */
|
||||||
const drag_rop = document.getElementsByClassName('file-drag-n-drop-inside')[0];
|
const drag_rop = document.getElementsByClassName('file-drag-n-drop-inside')[0];
|
||||||
|
|
|
@ -16,22 +16,6 @@
|
||||||
<title>{{ conf.brand.instance_name }}</title>
|
<title>{{ conf.brand.instance_name }}</title>
|
||||||
|
|
||||||
<style> .footer svg { height: 32px; margin: 10px 0 } </style>
|
<style> .footer svg { height: 32px; margin: 10px 0 } </style>
|
||||||
<style>
|
|
||||||
.header .header-text, .header .header-home, .header .header-bg { transition: 250ms ease; }
|
|
||||||
@media (max-width:667px) {
|
|
||||||
|
|
||||||
.header .header-text { text-align: center }
|
|
||||||
.header .header-home { width: 100% }
|
|
||||||
.header .header-bg { left: 50% !important; transform: translateX(-50%); -webkit-mask-image: linear-gradient(90deg, #0000, #000, #0000); }
|
|
||||||
|
|
||||||
{%- if conf.brand.instance_motto.len() != 0 -%}
|
|
||||||
.header .header-home-motto {
|
|
||||||
display:none
|
|
||||||
}
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
{%- if cfg!(debug_assertions) -%}
|
{%- if cfg!(debug_assertions) -%}
|
||||||
<link rel="stylesheet" href="/alert.css" />
|
<link rel="stylesheet" href="/alert.css" />
|
||||||
|
@ -49,7 +33,7 @@
|
||||||
{{- conf.brand.instance_name -}}
|
{{- conf.brand.instance_name -}}
|
||||||
{%- if conf.brand.instance_motto.len() != 0 -%}
|
{%- if conf.brand.instance_motto.len() != 0 -%}
|
||||||
{#- Whitespace control is stupid -#}
|
{#- Whitespace control is stupid -#}
|
||||||
<span class="header-home-motto">{{- " - " -}}{{- conf.brand.instance_motto -}}</span>
|
{{- " - " -}}{{- conf.brand.instance_motto -}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue