blob: f5deb5333dfb0d88c04624add78c1b9d3152aea1 (
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.spaceAround
)
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
)
}
|