-
Notifications
You must be signed in to change notification settings - Fork 0
/
Styles.elm
75 lines (58 loc) · 1.4 KB
/
Styles.elm
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
module Styles exposing (..)
import List exposing (append)
type alias Styles =
List ( String, String )
container : Int -> Styles
container size =
[ ( "position", "relative " )
, ( "width", (toString (size * 15)) ++ "vh" )
, ( "margin", "30px auto" )
]
tile : Styles
tile =
[ ( "float", "left" )
, ( "width", "15vh" )
, ( "height", "15vh" )
, ( "box-sizing", "border-box" )
, ( "cursor", "pointer" )
, ( "line-height", "15vh" )
, ( "text-align", "center" )
, ( "font-size", "7vh" )
, ( "font-weight", "bold" )
, ( "border", "1px solid black" )
]
hole : Styles
hole =
append
tile
[ ( "background-color", "#CECECE" )
, ( "cursor", "not-allowed" )
]
lineBreak : Styles
lineBreak =
[ ( "clear", "both" ) ]
victoryOverlay : Styles
victoryOverlay =
[ ( "position", "absolute" )
, ( "z-index", "999" )
, ( "background-color", "rgba(255,255,255,0.95)" )
, ( "top", "0" )
, ( "bottom", "0" )
, ( "left", "0" )
, ( "right", "0" )
, ( "display", "flex" )
, ( "flex-direction", "column" )
, ( "justify-content", "center" )
, ( "align-items", "center" )
]
victoryTitle : Styles
victoryTitle =
[ ( "font-size", "10vh" )
, ( "margin", "0" )
]
replayButton : Styles
replayButton =
[ ( "font-size", "20px" )
, ( "margin", "0" )
, ( "padding", "10px" )
]