No longer use unsafe for weird CSS selector
This commit is contained in:
parent
213834c3bb
commit
cfffbdccd7
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user