-
Notifications
You must be signed in to change notification settings - Fork 2
/
game.css
149 lines (128 loc) · 2.4 KB
/
game.css
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
html,
body {
width: 100%;
height: 100%;
text-align: center;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
margin: 0;
padding: 0;
}
h1 {
font-weight: 300;
font-family: 'Open Sans', sans-serif;
font-size: 3rem;
color: #efbd62;
}
a {
text-decoration: none;
display: block;
color: #aaa;
font-size: 1rem;
}
.select-style {
padding: 0;
margin: 0;
margin-bottom: 1rem;
display: inline-block;
border-radius: .2rem;
overflow: hidden;
background-color: #fff;
background: #fff url('images/arrowdown.gif') no-repeat 90% 50%;
}
.select-style select {
padding: .5rem 2rem;
border: none;
box-shadow: none;
background-color: transparent;
background-image: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
font-size: .8rem;
font-family: 'Open Sans', sans-serif;
color: #777;
}
.select-style select:focus {
outline: none;
}
.clearfix {
clear: both;
}
.game-wrapper {
background: #eee;
min-width: 250px;
display: inline-block;
margin: 0 auto;
padding: 2rem;
border-radius: .2rem;
margin-bottom: 2rem;
}
.game-screen {
background: #fff;
padding: 1rem;
border-radius: .2rem;
}
.game-screen .game-header {
display: flex;
margin-bottom: 1rem;
color: #bbb;
}
.game-screen .game-header > div {
flex-grow: 1;
}
.game-screen .game-board {
margin-bottom: 1rem;
}
.game-screen .game-footer .game-restart-button {
border: 0;
background: #efbd62;
color: #846c3e;
border-radius: .2em;
padding: .5rem 2rem;
font-size: .9rem;
cursor: pointer;
outline: 0;
}
.zone {
background: #eee;
background-size: contain !important;
background-position: center center !important;
background-repeat: no-repeat !important;
width: 25px;
height: 25px;
line-height: 25px;
float: left;
text-align: center;
box-sizing: border-box;
display: inline-block;
border-radius: .2em;
margin: .2rem;
font-weight: bold;
cursor: pointer;
}
.zone.is-revealed,
.zone:hover {
background: #ddd;
}
.zone.is-mine {
background-image: url(images/mine.png);
}
.zone.is-mine.is-clicked {
background-color: #d44646;
}
.zone.is-flagged {
background: url(images/flag.png);
}
.zone.is-empty {
background: rgba(239, 189, 98, 0.27);
}
.zone.is-low {
color: #58a4de;
}
.zone.is-medium {
color: #52c5a7;
}
.zone.is-high {
color: #d44646;
}