-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminesweeper.css
111 lines (90 loc) · 2.51 KB
/
minesweeper.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
body {
font: 14px "Helvetica Neue", Helvetica, Arial, sans-serif
}
a {
color: #888888;
}
div, table { /* center by default */
text-align: center;
margin: auto;
}
h1#title {
text-align: center;
margin: .5em 0;
}
div#controls {
margin: .5em 0;
}
button {
padding: .5em 1.5em;
font-weight: bold;
-wekit-border-radius: 1em;
-moz-border-radius: 1em;
border-radius: 1em;
border: 1px solid #ccc;
background-color: #eee;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#fff), to(#f1f1f1));
background-image: -moz-linear-gradient(top, #fff, #f1f1f1);
background-image: -ms-linear-gradient(top, #fff, #f1f1f1);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #f1f1f1));
background-image: -webkit-linear-gradient(top, #fff, #f1f1f1);
background-image: -o-linear-gradient(top, #fff, #f1f1f1);
background-image: linear-gradient(top, #fff, #f1f1f1);
-moz-box-shadow: 0px 1px 4px rgba(0, 0, 0, .3);
-webkit-box-shadow: 0px 1px 4px rgba(0, 0, 0, .3);
box-shadow: 0px 1px 4px rgba(0, 0, 0, .3);
}
button:hover {
background-position: 0 -15px;
}
button:active {
background-position: 0 -50px;
}
table#grid {
border-collapse: collapse;
}
table#grid tr td {
width: 50px;
height: 50px;
text-align: center;
padding: 0;
outline: 1px ridge #555;
border: 0 none;
box-shadow: inset -3px -3px 3px #555;
background-color: #DDDDDD;
background-image: url("img/flag.png"), url("img/question_mark.png"), url("img/bomb.png");
background-size: 100% 100%, 100% 100%, 100% 100%;
background-position: -999px -999px, -999px -999px, -999px -999px;
background-repeat: no-repeat;
overflow: hidden;
}
table#grid tr td:hover {
background-color: #EEEEEE;
}
table#grid tr td.mined {
background-position: -999px -999px, -999px -999px, left top;
}
table#grid tr td.flagged {
background-position: left top, -999px -999px, -999px -999px;
}
table#grid tr td.marked {
background-position: -999px -999px, left top, -999px -999px;
}
table#grid tr td.mined.flagged {
background-position: left top, -999px -999px, left top;
}
table#grid tr td.mined.marked {
background-position: -999px -999px, left top, left top;
}
table#grid tr td.revealed {
box-shadow: none;
background-color: #CCCCCC;
}
#status {
text-align: center;
}
#credits {
margin-top: 20px;
margin-bottom: 20px;
}