aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/reading/component/widget/style/Cross.scala
blob: 2e4b990e4a5ceb1e700c8683fa41c326c1240129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package reading.component.widget.style

import scalacss.Defaults._

object Cross extends StyleSheet.Inline {
  import dsl._

  val cross = style(
    position.relative,
    width(100.%%),
    height(100.%%)
  )

  val line1 = style(
    content := "\"\"",
    position.absolute,
    left(40.%%),
    width(30.%%),
    height(100.%%),

    transform := "rotate(45deg)"
  )

  val line2 = style(
    content := "\"\"",
    position.absolute,
    left(40.%%),
    width(30.%%),
    height(100.%%),

    transform := "rotate(-45deg)"
  )
}