Skip to content

Commit

Permalink
Simulator styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
xian committed Dec 30, 2022
1 parent 0b5f424 commit 3b71a77
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/jsMain/kotlin/baaahs/sim/ui/SimulatorStyles.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package baaahs.sim.ui

import baaahs.app.ui.linearRepeating
import baaahs.ui.important
import kotlinx.css.*
import kotlinx.css.properties.border
Expand Down Expand Up @@ -33,6 +34,8 @@ class ThemedSimulatorStyles(val theme: Theme) : StyleSheet("sim-ui-themed", isSt
}

object SimulatorStyles : StyleSheet("sim-ui", isStatic = true) {
private val headerColor = Color("#f5a542")

val app by css {
display = Display.flex
flexDirection = FlexDirection.column
Expand Down Expand Up @@ -83,7 +86,8 @@ object SimulatorStyles : StyleSheet("sim-ui", isStatic = true) {
flexDirection = FlexDirection.column

header {
backgroundColor = Color("#f5a542")
background = linearRepeating(headerColor, headerColor.darken(15), 7.5.px)
padding(1.5.px, .5.em)
lineHeight = 1.25.em.lh
}
}
Expand All @@ -100,7 +104,8 @@ object SimulatorStyles : StyleSheet("sim-ui", isStatic = true) {
display = Display.flex

header {
backgroundColor = Color("#f5a542")
background = linearRepeating(headerColor, headerColor.darken(15), 7.5.px)
padding(1.5.px, .5.em)
lineHeight = 1.25.em.lh
}
}
Expand Down

0 comments on commit 3b71a77

Please sign in to comment.