/
style.css
136 lines (129 loc) · 2.19 KB
/
style.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
body {
text-align: center;
font-family: 'Buenard', serif;
}
#board {
position: fixed;
top: 50%;
left: 50%;
border: 2px solid black;
display: inline-block;
background-color: #686a68;
padding: 4px;
box-shadow: 14px 14px 12px 1px #756161;
margin-top: -284px;
margin-left: -269px;
}
.ctrl{
float: left;
text-align: left;
font-size: 20px;
margin: 5px;
font-weight: bold;
}
.timer{
float: right;
text-align: left;
font-size: 50px;
margin-right: 30px;
font-weight: bold;
}
.ctrl span{
font-weight: initial;
}
.cell {
display: block;
float: left;
width: 50px;
height: 50px;
background-color: #9cff9c;
color: black;
margin: 1px;
padding-bottom: 0;
}
.mine.revealed {
background-color: red;
background-size: 50px 50px;
background-image: url("mine.png");
}
.mine.revealed.flagged {
background-color: #b3ff9e;
background-size: 50px 50px;
background-image: url("redflag.png");
}
.revealed {
text-align: center;
font-weight: bold;
font-size: 25px;
background-color: #c9ccc9;
vertical-align: top;
line-height: 50px;
}
.flagged {
background-color: #b3ff9e;
background-size: 50px 50px;
background-image: url("flag.png");
}
.noNumber {
margin: 0;
padding: 1px;
}
#modal {
display: none;
height: 100%;
width: 100%;
left: 0;
top: 0;
z-index: 1;
background-color: rgba(0,0,0,0.8);
position: fixed;
overflow: auto;
}
#modal-content{
border: solid 4px black;
font-size: 30px;
box-shadow: 6px 6px 12px 1px #0c0000;
width: 80%;
margin: 15% auto;
padding-top: 20px;
}
.btn-closeGameOver{
border: solid 2px black;
padding: 10px;
margin: 20px;
background-color: white;
font-size: 20px;
border-radius: 50px;
font-family: 'Buenard', serif;
}
.btn-closeGameOver:hover,
.btn-closeGameOver:focus{
color: white;
background-color: black;
text-decoration: none;
cursor: pointer;
}
.btn-reset{
display: none;
position: fixed;
top: 50%;
left: 50%;
border: solid 3px black;
padding: 10px;
margin-top: 268px;
margin-left: -41px;
background-color: white;
font-size: 20px;
border-radius: 50px;
font-family: 'Buenard', serif;
}
.btn-reset:hover,
.btn-reset:focus{
color: white;
background-color: black;
text-decoration: none;
cursor: pointer;
}
.disable{
pointer-events: none;
}