-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.scss
138 lines (114 loc) · 2.52 KB
/
styles.scss
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
$color-background: whitesmoke;
$color-covered-cells: gray;
$color-uncovered-cells: lightgray;
body {
text-align: center;
margin: auto;
margin-top: 20px;
background-color: $color-uncovered-cells;
}
/* Cross wrong flags at end of game */
.crossed-out {
/*Found in https://stackoverflow.com/a/42737232/21044513 */
position: relative;
&::before,
&::after {
content: '';
width: 100%;
position: absolute;
left: -1px;
top: 45%;
opacity: 0.7;
}
&::before {
border-bottom: 2px solid black;
-webkit-transform: skewY(-45deg);
transform: skewY(-45deg);
}
&::after {
border-bottom: 2px solid black;
-webkit-transform: skewY(45deg);
transform: skewY(45deg);
}
}
#game{
max-width: fit-content;
border: 2px solid black;
margin: auto;
#game-header {
width: 100%;
text-align: center;
font-size: 20px;
display: inline-grid;
grid-template-columns: 60px auto 60px;
}
#game-table {
button {
font-weight: bold;
background-color: $color-covered-cells;
display: block;
padding: 0;
}
button:disabled{
color: black;
}
table {
margin: 0;
border-top: 2px solid black;
table-layout: fixed;
border-spacing: 0;
border-collapse: collapse;
background-color: $color-uncovered-cells;
}
}
}
.flag-button{
background-color: red;
height: 30px;
width: 30px;
font-size: 15px;
margin: auto;
}
#options-content{
display: none;
width: 350px;
margin: auto;
margin-top: 30px ;
#size-cells-settings {
height: 50px;
display: grid;
grid-template-columns: 150px 150px 50px;
gap: 10px;
#sample-cell {
background-color: $color-covered-cells;
}
}
#difficulty-settings{
height: 50px;
display: grid;
grid-template-columns: 150px 150px 50px;
gap: 10px;
}
}
#help-content{
display: none;
text-align: left;
width: 60%;
margin: auto;
}
#bottom {
display: grid;
grid-template-columns: 100px 150px 100px;
width: 350px;
margin: auto;
margin-top: 10px;
button {
background-color: $color-covered-cells;
margin-left: 10px;
margin-right: 10px;
height: 30px;
}
button:hover{
background-color: $color-uncovered-cells;
}
}