blob: 4020eb080c8f9409c6646b9951e5b7f560a91994 (
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
62
63
64
65
66
67
68
69
70
71
72
73
|
module Design.Modal
( design
) where
import Clay
import Data.Monoid ((<>))
import qualified Design.View.Payment.Add as Add
import qualified Design.View.Payment.Delete as Delete
import qualified Design.View.Payment.Form as Form
design :: Css
design = do
appearKeyframe
".g-Modal" ? do
display none
appearAnimation
transition "all" (sec 0.2) ease (sec 0)
opacity 0
".g-Modal--Show" & do
display block
opacity 1
".g-Modal--Hiding" & do
display block
".g-Modal__Curtain" ? do
position fixed
top (px 0)
left (px 0)
width (pct 100)
height (pct 100)
backgroundColor (rgba 0 0 0 0.6)
zIndex 1
".g-Modal__Content" ? do
minWidth (px 300)
position fixed
top (pct 25)
left (pct 50)
"transform" -: "translate(-50%, -25%)"
zIndex 1
backgroundColor white
sym borderRadius (px 5)
boxShadow . pure . bsColor (rgba 0 0 0 0.5) $ shadowWithBlur (px 0) (px 0) (px 15)
".add" ? Add.design
".form" ? Form.design
".delete" ? Delete.design
".paymentModal" & do
".radioGroup" ? ".title" ? display none
".selectInput" ? do
select ? width (pct 100)
marginBottom (em 1)
".deletePaymentModal" <> ".deleteIncomeModal" ? do
h1 ? marginBottom (em 1.5)
appearAnimation :: Css
appearAnimation = do
animationName "appear"
animationDuration (sec 0.15)
animationTimingFunction easeIn
appearKeyframe :: Css
appearKeyframe = keyframes
"appear"
[ (0, "opacity" -: "0")
]
|