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") { rule("html, body, form") {
height = (100 - ceil(bodyPadding.toDouble() / 8)).pct height = (100 - ceil(bodyPadding.toDouble() / 8)).pct
} }
not(textarea.tagName) {
transition(duration = 400.ms)
}
body { body {
fontFamily = "Hack, Fira Code, Noto Mono, monospace" fontFamily = "Hack, Fira Code, Noto Mono, monospace"
fontSize = 13.pt fontSize = 13.pt

View File

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