aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/reading/component/index/style/Books.scala
blob: 33e1cb3cd01d9c11c50930903bb7d42aaf53b1a5 (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
34
package reading.component.index.style

import scalacss.Defaults._

import reading.Media

object Books extends StyleSheet.Inline {
  import dsl._

  val books = style(
    display.flex,
    flexWrap.wrap,
    justifyContent.center
  )

  val book = style(
    Media.desktop(width(250.px)),
    Media.mobile(width(150.px)),
    paddingBottom(60.px),
    textAlign.center
  )

  val cover = style(
    Media.desktop(
      height(250.px),
      maxWidth(200.px)
    ),
    Media.mobile(
      height(150.px),
      maxWidth(120.px)
    ),
    cursor.pointer
  )
}