Fixes to buttons

This commit is contained in:
Oliver Rümpelein 2021-09-25 17:26:24 +02:00
parent 56670755d4
commit b4c0fa9c66
2 changed files with 4 additions and 4 deletions

View file

@ -61,11 +61,11 @@ fun HTML.createPlayerDocument() {
xOn("mousedown", "clicked = true") xOn("mousedown", "clicked = true")
xOn("touchstart", "clicked = true") xOn("touchstart", "clicked = true")
xBind("class", "{'active': clicked}") xBind("class", "{'active': clicked}")
+"I'm " p { +"I'm" }
span { p {
xText("playerName") xText("playerName")
} }
+" and I know this!" p { +"and I know this!" }
} }
} }
} }

View file

@ -56,7 +56,7 @@ div > .submit {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
white-space: pre; flex-direction: column;
} }
div > button.active { div > button.active {