Initial commit

This commit is contained in:
Magnus Åhall 2023-06-15 07:24:23 +02:00
commit 79288b0483
78 changed files with 1810 additions and 0 deletions

11
static/less/Makefile Normal file
View file

@ -0,0 +1,11 @@
less = $(wildcard *.less)
_css = $(less:.less=.css)
css = $(addprefix ../css/, $(_css) )
../css/%.css: %.less theme.less
lessc $< ../css/$@
all: $(css)
clean:
rm -vf $(css)

26
static/less/login.less Normal file
View file

@ -0,0 +1,26 @@
@import "theme.less";
#login {
display: grid;
justify-items: center;
height: 100%;
div {
max-width: 300px;
input {
margin-bottom: 32px;
width: 100%;
border: 0px;
border-bottom: 1px solid #fff;
font-size: 18pt;
color: #fff;
background-color: @background;
&:focus {
outline: none;
}
}
}
}

15
static/less/loop_make.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
while true
do
# inotifywait -q -e MOVE_SELF *less
inotifywait -q -e MODIFY *less
#sleep 0.5
clear
if make -j12; then
echo -e "\n\e[32;1mOK!\e[0m"
curl -s http://notes.lan:1371/css_updated
sleep 1
clear
fi
done

19
static/less/main.less Normal file
View file

@ -0,0 +1,19 @@
@import "theme.less";
html, body {
margin: 0px;
padding: 0px;
font-family: 'Liberation Mono', monospace;
font-size: 16pt;
background-color: @background;
}
h1 {
color: @accent_1;
}
#app {
padding: 32px;
color: #fff;
}

2
static/less/theme.less Normal file
View file

@ -0,0 +1,2 @@
@background: #494949;
@accent_1: #ecbf00;