blob: 2612257e813422e2b1d529eabdf02549d163be07 (
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
|
module Design.Modal
( design
) where
import Data.Monoid ((<>))
import Clay
design :: Css
design = do
".curtain" ? do
position fixed
cursor pointer
top (px 0)
left (px 0)
width (pct 100)
height (pct 100)
backgroundColor (rgba 0 0 0 0.5)
zIndex 1000
opacity 1
transition "all" (sec 0.2) ease (sec 0)
".content" ? do
minWidth (px 270)
position fixed
top (pct 25)
left (pct 50)
"transform" -: "translate(-50%, -25%)"
zIndex 1000
backgroundColor white
sym padding (px 20)
sym borderRadius (px 5)
boxShadow (px 0) (px 0) (px 15) (rgba 0 0 0 0.5)
".paymentModal" & do
".radioGroup" ? ".title" ? display none
".selectInput" ? do
select ? width (pct 100)
marginBottom (em 1)
".deletePaymentModal" <> ".deleteIncomeModal" ? do
h1 ? marginBottom (em 1.5)
|