aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/reading/component/index/style/Books.scala
blob: 79aea1a51836d654825c094ff696251685f90985 (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
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)),
    Media.mobile(height(150.px)),
    cursor.pointer
  )
}