styling WIP
This commit is contained in:
parent
4139a8f3a5
commit
895d93c1c1
BIN
assets/cutive.ttf
Normal file
BIN
assets/cutive.ttf
Normal file
Binary file not shown.
@ -157,6 +157,9 @@ class LineAdder extends Button {
|
||||
}
|
||||
|
||||
class PoemRegenner extends Button {
|
||||
connectedCallback() {
|
||||
this.setAttribute("title", "regenerate unpinnned lines");
|
||||
}
|
||||
click() {
|
||||
$("div[is=poem-lines]").regenerate();
|
||||
}
|
||||
|
1
main.go
1
main.go
@ -46,6 +46,7 @@ func main() {
|
||||
"upper": strings.ToUpper,
|
||||
})
|
||||
r.LoadHTMLFiles("templates/index.tmpl")
|
||||
r.StaticFile("/cutive.ttf", "./assets/cutive.ttf")
|
||||
r.StaticFile("/favicon.ico", "./assets/favicon.ico")
|
||||
r.StaticFile("/main.js", "./assets/main.js")
|
||||
|
||||
|
@ -3,6 +3,20 @@
|
||||
<head>
|
||||
<title>Trunkless</title>
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: "cutive";
|
||||
src: url("/cutive.ttf");
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "cutive", monospace;
|
||||
font-size:125%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
}
|
||||
|
||||
div.line:not(.unpinned) > .linetext {
|
||||
font-weight: bold;
|
||||
}
|
||||
@ -39,7 +53,7 @@ div.line:not(.unpinned) > .linetext {
|
||||
<button>save as image</button>
|
||||
</p>
|
||||
<div style="margin-bottom: 5px">
|
||||
<button is="poem-regenner">regenerate unpinned lines</button>
|
||||
<button is="poem-regenner">↺</button>
|
||||
</div>
|
||||
<div is="poem-lines"></div>
|
||||
<div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user