Compare commits

..

2 Commits

Author SHA1 Message Date
blek abd77c9bc7
add animation to the header 2023-11-11 18:27:32 +10:00
blek e25bfa4b2a
add html-minifier to rust dev dockerfile 2023-11-11 18:26:56 +10:00
2 changed files with 6 additions and 5 deletions

View File

@ -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 npm i -g uglify-js html-minifier
CMD [ "/opt/code/dev-entry.sh" ] CMD [ "/opt/code/dev-entry.sh" ]

View File

@ -17,14 +17,15 @@
<style> .footer svg { height: 32px; margin: 10px 0 } </style> <style> .footer svg { height: 32px; margin: 10px 0 } </style>
<style> <style>
.header .header-text, .header .header-home, .header .header-bg { transition: 250ms ease; }
@media (max-width:667px) { @media (max-width:667px) {
.header-text { text-align: center } .header .header-text { text-align: center }
.header-home { width: 100% } .header .header-home { width: 100% }
.header-bg { left: 50% !important; transform: translateX(-50%); -webkit-mask-image: linear-gradient(90deg, #0000, #000, #0000); } .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 -%} {%- if conf.brand.instance_motto.len() != 0 -%}
.header-home-motto { .header .header-home-motto {
display:none display:none
} }
{%- endif -%} {%- endif -%}