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") {
|
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
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user