blob: 97c14794b210d7e726049a97b2fab82db439932e (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
package reading.component.index.style
import scalacss.Defaults._
import reading.component.style.Col
object Books extends StyleSheet.Inline {
import dsl._
val books = style(
display.flex,
flexWrap.wrap
)
val count = style(
marginBottom(30.px)
)
val book = style(
media.minWidth(1300.px)(
width(50.%%)
),
media.maxWidth(1300.px)(
width(100.%%)
),
paddingBottom(60.px),
paddingRight(60.px)
)
val title = style(
display.inlineBlock,
fontWeight.bold,
marginBottom(20.px),
color(Col.congoBrown)
)
val author = style(
display.inlineBlock
)
val detail = style(
display.flex
)
val cover = style(
height(150.px),
marginRight(40.px)
)
val item = style(
lineHeight(25.px),
marginBottom(4.px)
)
val itemKey = style(
fontWeight.bold,
marginRight(10.px)
)
val itemValue = style()
}
|