-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
122 lines (109 loc) · 2.19 KB
/
style.css
File metadata and controls
122 lines (109 loc) · 2.19 KB
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
/* Body & general text */
body {
font-family: Arial, sans-serif;
background-color: #121212; /* Dark background */
color: #e0e0e0; /* Light text */
margin: 0;
padding: 20px;
}
.guff{
position: relative;
left: 50%;
transform: translate(-50%, 0);
text-align: center;
margin-top: 20px;
margin-bottom: 60px;
width: 600px;
color: #ccc;
justify-content: center;
align-items: center;
}
h1 {
text-align: center;
margin-bottom: 40px;
color: #ffffff;
}
/* Grid container for entries */
#entries {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
overflow: visible;
}
/* Each entry card */
.entry {
background-color: #121212; /* Dark card background */
padding: 20px;
border-radius: 2px;
display: flex;
flex-direction: column;
align-items: center;
overflow: visible;
position: relative;
}
.entry h2 {
margin-top: 0;
margin-bottom: 15px;
font-size: 1.2em;
color: #ffffff;
text-align: center;
}
/* Images container */
.images {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
/* Thumbnail styling */
.images img {
border: 2px solid #333;
border-radius: 2px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
max-width: 400px;
height: auto;
}
.images img:hover {
transform: scale(1.05);
box-shadow: 0 0px 20px rgb(255, 229, 172);
}
/* Vote button */
a.vote-button {
display: inline-block;
margin-top: 10px;
padding: 8px 16px;
background-color: #4caf50; /* Green button */
color: #fff;
border-radius: 2px;
text-decoration: none;
font-weight: bold;
transition: background-color 0.2s, transform 0.2s;
}
a.vote-button:hover {
background-color: #45a049;
transform: scale(1.05);
}
/* Responsive for small screens */
@media (max-width: 600px) {
.images img {
max-width: 100px;
}
}
/* Hidden images container for expansion */
.hidden-images {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease, opacity 0.5s ease;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
opacity: 0;
z-index: 4;
}
/* Expanded state */
.hidden-images.show {
max-height: 2700px; /* large enough to fit all images */
opacity: 1;
}