-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
158 lines (132 loc) · 2.51 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
body {
font-family: monospace;
background-color: #000;
color: #fff;
margin: 0;
padding: 0;
background-image: url('wal2.png');
/* Replace 'your-image.jpg' with the path to your image */
background-size: cover;
/* Cover the entire background */
background-position: center;
/* Center the background image */
background-repeat: no-repeat;
/* Do not repeat the background image */
background-attachment: fixed;
/* Keep the background image fixed when scrolling */
}
@keyframes shake {
0% {
transform: translateX(0);
}
20% {
transform: translateX(-10px);
}
40% {
transform: translateX(10px);
}
60% {
transform: translateX(-10px);
}
80% {
transform: translateX(10px);
}
100% {
transform: translateX(0);
}
}
.shake {
animation: shake 0.5s ease;
}
main {
padding: 10px;
}
#collection {
margin-top: 20px;
}
#collection h1 {
margin-top: 80px;
font-size: 50px;
text-align: center;
}
#gameList {
list-style-type: none;
padding: 0;
}
#gameList li a {
display: block;
padding: 10px;
color: #009900;
text-decoration: none;
font-size: 40px;
border-radius: 5px;
text-align: left;
transition: background-color 0.3s, transform 0.3s;
width: calc(100% - 20px);
/* Subtract arrow width from total width */
}
#collection li {
margin-bottom: 10px;
position: relative;
}
.arrow {
position: absolute;
left: 40px;
top: 50%;
transform: translateY(-50%);
width: 10px;
/* Adjust the width of the arrow */
height: auto;
/* Automatically adjust the height */
background-image: url('arrow.png');
background-size: cover;
display: none;
}
#gameList li {
margin-bottom: 10px;
position: relative;
}
#gameList li.selected .arrow {
display: inline-block;
}
/* CSS for the overlap div */
/* CSS for the overlap div */
/* CSS for the overlap div */
/* CSS for the game item */
.game-item {
display: flex;
align-items: center;
padding-left: 30%;
}
.game-image {
width: 50px;
/* Adjust size as needed */
height: auto;
/* Maintain aspect ratio */
margin-right: 10px;
/* Add spacing between image and game title */
}
.game-details {
display: flex;
align-items: center;
}
/* CSS for the arrow */
.arrow {
width: 8%;
/* Adjust the size of the arrow */
}
/* CSS for the game link */
.game-item a {
width: 75%;
/* Adjust the width of the game name */
/* Add margin to separate arrow from game name */
}
/* CSS for the game list */
#gameList {
list-style-type: none;
padding: 0;
margin: 0 auto;
/* Center the game list horizontally */
max-width: 600px;
/* Adjust the maximum width as needed */
}