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
|
package reading.component.widget.style
import scalacss.Defaults._
import reading.component.style.{ Color => C }
object Input extends StyleSheet.Inline {
import dsl._
val parent = style(
position.relative
)
val input = style(
height(45.px),
border(1.px, solid, C.mickado.value),
borderRadius(2.px),
padding(10.px),
&.hover(borderColor(C.gray.value))
)
val clear = style(
position.absolute,
top(0.px),
right(10.px),
display.flex,
height(100.%%),
alignItems.center,
cursor.pointer,
opacity(0),
transition := "opacity 0.2s ease-in-out"
)
val showClear = style(
opacity(1)
)
val empty = style()
}
|