-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
57 lines (52 loc) · 1.13 KB
/
style.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
body{
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: goldenrod;
}
#puzzle {
display: flex;
flex-wrap: wrap;
width: 300px;
height: 300px;
margin: 20px auto;
border: 1px solid #000;
box-shadow: 3px 5px 2px 5px rgba(0,0,0,0.5);
.piece {
width: 100px;
height: 100px;
border: 1px solid #000;
box-sizing: border-box;
cursor: pointer;
font-size: 32px;
display: flex;
justify-content: center;
align-items: center;
transition: background-color 0.3s;
&:hover {
background-color: #f0f0f0;
}
&.empty {
background-color: #f0f0f0;
}
}
}
button {
display: block;
margin: 0 auto;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border: 1px solid #000;
background-color:transparent;
color: #fff;
border-radius: 5px;
transition: background-color 0.3s;
&:hover {
background-color: #fff;
color: #000;
}
}