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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
package reading.component.index.style
import scalacss.Defaults._
import reading.Media
import reading.component.style.{ Color => C, Button, Count }
object Header extends StyleSheet.Inline {
import dsl._
val header = style(
Media.desktop(margin(40.px)),
Media.mobile(margin(30.px))
)
val showFiltersMenu = style(
Media.desktop(display.none),
Media.mobile(
Button.simple,
marginBottom(20.px)
)
)
val filtersCount = style(
Count.major,
marginLeft(20.px)
)
val filters = style(
display.flex,
flexWrap.wrap,
marginBottom(15.px),
Media.mobile(display.none)
)
private val box = style(
display.flex,
alignItems.center,
padding(15.px),
marginRight(20.px),
marginBottom(15.px),
borderRadius(2.px),
border(1.px, solid, C.gray.lighten(60).value),
fontSize(18.px),
&.hover(cursor.pointer)
)
val clear = style(
box,
backgroundColor(C.mickado.value),
color(C.white.value),
&.hover(backgroundColor(C.mickado.lighten(30).value))
)
val filter = style(
box,
&.hover(borderColor(C.gray.lighten(80).value))
)
val name = style(
marginRight(10.px)
)
val cross = style(
width(15.px),
height(15.px)
)
val searchAndCount = style(
display.flex,
flexWrap.wrap,
alignItems.center,
Media.mobile(justifyContent.center)
)
val search = style(
Media.mobile(display.none),
Media.desktop(marginRight(30.px))
)
val booksCount = style(
fontSize(20.px),
color(C.gray.value),
Media.mobile(textAlign.center)
)
}
|