-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
175 lines (174 loc) · 4.36 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
@font-face {
font-family: 'DSEG7-Modern';
src: url('./fonts/DSEG7-Modern/DSEG7Modern-Bold.woff2') format('woff2'),
url('./fonts/DSEG7-Modern/DSEG7Modern-Bold.woff') format('woff'),
url('./fonts/DSEG7-Modern/DSEG7Modern-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
html {
font-size: 50px;
}
div,
td {
box-sizing: border-box;
}
h1 {
font-size: 0.8rem;
}
input,
button {
font-size: 0.3rem;
}
.row {
display: flex;
justify-content: center;
}
.top,
.hud {
display: flex;
align-items: center;
}
.top,
.row {
flex-wrap: wrap;
}
.top {
margin: 0.5rem 0;
justify-content: center;
}
.top > h1 {
margin: 0;
}
.hud {
justify-content: space-between;
padding: 0.2rem;
}
.bbox {
display: inline-block;
padding: 0.2rem;
}
table {
border-spacing: 0;
}
.game {
margin-top: 0.2rem;
}
#reset,
.bbox,
.box,
td,
.cell {
border-style: solid;
border-width: 0.1rem;
}
.box {
border-top-color: #757575;
border-left-color: #757575;
border-right-color: white;
border-bottom-color: white;
}
#reset,
td,
.cell,
.bbox {
border-top-color: white;
border-left-color: white;
border-right-color: #757575;
border-bottom-color: #757575;
background-color: #b9b9b9;
}
.smile {
/* background-position: 74.50980392156863% 45.09803921568628%; */
background-position: 60.78431372549019% 74.50980392156863%;
}
.o {
background-position: 60.78431372549019% 35.294117647058826%;
}
.no {
background-position: 60.78431372549019% 49.01960784313726%;
}
.cool {
background-position: 58.8235294117647% 74.50980392156863%;
}
.king {
padding-left: 1rem;
margin: 0 0.25rem 0 0.5rem;
background-size: cover;
background-position: 29.41176470588235% 41.1764705882353%;
}
#reset,
td,
.cell {
cursor: default;
text-align: center;
width: 1rem;
height: 1rem;
line-height: 0.9rem;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-weight: bold;
font-size: 1rem;
}
td,
.cell {
background-size: cover;
background-position: center;
}
.king,
#reset {
background-size: 5200% 5200%;
background-image: url('https://a.slack-edge.com/c00d19/img/emoji_2017_12_06/sheet_apple_64_indexed_256.png');
cursor: default;
}
.clicking,
#reset.clicking {
border-left-color: #757575;
border-top-color: #757575;
border-bottom-color: #b9b9b9;
border-right-color: #b9b9b9;
}
.opened {
background-image: none;
background-color: #b9b9b9;
border: 0.02rem solid #757575 !important;
}
.highlight {
background-color: red;
}
.wrong-flag::before,
.wrong-flag::after {
content: ' ';
display: block;
position: absolute;
width: 80%;
height: 20%;
left: 50%;
top: 50%;
background-color: red;
}
.wrong-flag::before {
transform: translate(-50%, -50%) rotate(-45deg);
}
.wrong-flag::after {
transform: translate(-50%, -50%) rotate(45deg);
}
.mine {
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 924 924' %3e%3cpath d='M427 853v-70H284v-72h-71v72h-72v-72h72v-71h-72V497H0v-70h141V284h72v-71h-72v-70h72v70h71v-70h143V0h70v143h143v70h71v-70h70v70h-70v71h70v143h143v70H781v143h-70v71h70v72h-70v-72h-71v72H497v141h-70zm0-498v-71H284v143h143z'/%3e%3cpath fill='%23fff' d='M282 284h144v143H282z'/%3e%3c/svg%3e");
}
.flagged {
position: relative;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='8.5 8.5 59 59'%3e%3cpath fill='none' d='M8.5 8.5h59v59h-59v-59z'/%3e%3cpath d='M36 55.5v-39h4v39h-4z'/%3e%3cpath fill='red' d='M40 13.9L19.4 27 40 40.1z'/%3e%3cpath d='M28.6 51.6h18.9v5.5H28.6z'/%3e%3cpath d='M20.2 56.5h35.6v7H20.2z'/%3e%3c/svg%3e");
}
.question {
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='8.5 8.5 59 59'%3e%3cpath fill='none' d='M8.5 8.5h59v59h-59v-59z'/%3e%3cpath d='M24.7 28.7a15 15 0 0 1 4.7-11.3 12 12 0 0 1 8.9-3.2c4 0 7.2 1 9.4 3.2 2.4 2.2 3.6 5.1 3.6 8.7 0 3-1 5.5-3.3 7.6l-5.3 5a9.7 9.7 0 0 0-2.5 7.1h-5c0-3.8.7-6.7 2-8.7.9-1.4 2.6-3.3 5.2-5.8 1.5-1.4 2.3-3 2.3-5 0-2.4-.7-4.3-2-5.5-1-1-2.7-1.6-4.7-1.6-1.7 0-3 .5-4.2 1.6-1.8 1.7-2.7 4.4-2.7 7.9h-6.4zm10 24.8h6v6.3h-6v-6.3z'/%3e%3c/svg%3e");
}
.digital {
border-radius: 0.04rem;
font-family: 'DSEG7-Modern';
font-weight: bold;
font-size: 0.9rem;
line-height: 1rem;
height: 1rem;
color: red;
background-color: black;
}