No longer use unsafe for weird CSS selector

This commit is contained in:
kageru 2020-03-12 10:34:00 +01:00
parent 213834c3bb
commit cfffbdccd7
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2
2 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,9 @@ object Css {
rule("html, body, form") {
height = (100 - ceil(bodyPadding.toDouble() / 8)).pct
}
not(textarea.tagName) {
transition(duration = 400.ms)
}
body {
fontFamily = "Hack, Fira Code, Noto Mono, monospace"
fontSize = 13.pt

View File

@ -8,8 +8,8 @@ object Homepage {
val content = HtmlContent(HttpStatusCode.OK) {
head {
link(rel = "stylesheet", href = "/style.css", type = "text/css")
unsafe {
+"<style>:not(textarea){transition-duration: 400ms;}</style>"
meta(content = "Kodeshare – a FOSS pastebin alternative") {
attributes["property"] = "og:title"
}
}
body {