blob: 6e79113fb94c23353b3f6b66f45458d2ded10534 (
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
35
36
37
38
39
40
41
42
43
44
45
46
|
package reading.component.index.style
import scalacss.Defaults._
import reading.Media
import reading.component.style.{ Color => C }
object BookDetail extends StyleSheet.Inline {
import dsl._
val title = style(
display.inlineBlock,
fontSize(18.px),
fontWeight.bold,
marginBottom(20.px),
color(C.congoBrown.value)
)
val author = style(
display.inlineBlock
)
val detail = style(
display.flex,
flexWrap.wrap,
justifyContent.center
)
val cover = style(
height(300.px),
marginRight(30.px),
Media.mobile(marginBottom(30.px))
)
val item = style(
lineHeight(25.px),
marginBottom(4.px)
)
val itemKey = style(
fontWeight.bold,
marginRight(10.px)
)
val itemValue = style()
}
|