-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
109 lines (92 loc) · 1.78 KB
/
styles.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
* {
box-sizing: border-box;
font-family: 'Rubik', sans-serif;
}
/* Extra small devices*/
@media only screen and (max-width: 600px) {
.gameboard {
min-width: 400px;
}
}
/* Base rules */
body {
align-items: stretch;
display: flex;
height: 100vh;
justify-content: center;
}
.sidebar {
align-items: baseline;
background-image: URL("assets/background_image.png");
background-position: center;
display: flex;
flex-grow: 1;
justify-content: center;
margin-top: 25px;
}
.gameboard {
display: flex;
flex-direction: column;
flex-grow: 2;
justify-content: space-evenly;
max-width: 600px;
}
.gameboard__grid-container {
background-image: linear-gradient(#43BDBB, #2B0D44);
color: black;
display: grid;
grid-gap: 5px;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 165px 165px 165px;
}
.cell {
align-items: center;
background-color: white;
cursor: pointer;
display: flex;
justify-content: center;
}
button {
background-image: linear-gradient(#43BDBB, #2B0D44);
padding: 8px;
border-radius: 25px;
color: white;
cursor: pointer;
position: absolute;
top: 80%;
}
button:hover {
background-image: linear-gradient(#2B0D44, #43BDBB);
}
h1,
h2 {
text-align: center;
}
h1 {
font-size: 250%;
font-weight: bold;
padding: 0px 50px 50px 50px;
}
img.small {
width: 75px;
}
img.medium {
width: 110px;
}
img.large {
width: 125px;
}
/* State & special rules */
.hidden {
display: none;
}
.wiggle {
animation: wiggle 2s;
}
@keyframes wiggle {
0% { transform: translate(1px, 1px) rotate(5deg); }
10% { transform: translate(1px, -1px) rotate(-5deg); }
20% { transform: translate(1px, 2px) rotate(5deg); }
30% { transform: translate(-3px, 1px) rotate(-5deg); }
40% {transform: translate(-1px, -1px) rotate(5deg); }
}