summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea89/website/Styles.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea89/website/Styles.kt')
-rw-r--r--src/main/kotlin/moe/nea89/website/Styles.kt18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/main/kotlin/moe/nea89/website/Styles.kt b/src/main/kotlin/moe/nea89/website/Styles.kt
index a6d7c1f..e1470d7 100644
--- a/src/main/kotlin/moe/nea89/website/Styles.kt
+++ b/src/main/kotlin/moe/nea89/website/Styles.kt
@@ -8,13 +8,13 @@ import styled.StyleSheet
import styled.animation
-object Styles : StyleSheet("Styles") {
+object Styles : StyleSheet("DefaultConsoleStyles") {
val consoleClass = "Console"
val promptClass = "prompt"
val bgColor = CustomColor.BLACK.color
val fgColor = CustomColor.WHITE.color
- val comicMono = "\"Comic Mono\", monospace"
+ val monospacedFont = "monospace"
val global by css {
"*" {
@@ -22,13 +22,6 @@ object Styles : StyleSheet("Styles") {
margin(0.px)
boxSizing = BoxSizing.borderBox
}
- body {
- width = 100.pct
- height = 100.pct
- backgroundColor = bgColor
- color = fgColor
- fontFamily = comicMono
- }
".$promptClass" {
width = LinearDimension.fitContent
@@ -49,8 +42,13 @@ object Styles : StyleSheet("Styles") {
".$consoleClass" {
width = 100.pct
height = 100.pct
+ backgroundColor = bgColor
+ color = fgColor
+ fontFamily = monospacedFont
+ width = 100.pct
+ height = 100.pct
pre {
- fontFamily = comicMono
+ fontFamily = monospacedFont
}
}
}