-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.css
104 lines (91 loc) · 2.05 KB
/
archive.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
/* archive.css */
/* Base styles */
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f9f9f9;
}
h1 {
text-align: center;
}
#back-button {
display: block;
margin: 0 auto 20px;
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
background-color: #4CAF50; /* Green background */
color: white;
border: none;
border-radius: 5px;
transition: background-color 0.3s;
}
#back-button:hover {
background-color: #45a049; /* Darker green on hover */
}
#audio-grid {
display: grid;
grid-gap: 10px;
/* Default grid for small screens (portrait mobile) */
grid-template-columns: repeat(2, 1fr);
}
.audio-rectangle {
position: relative;
height: 160px; /* Increased height */
background-color: #e0e0e0;
cursor: pointer;
overflow: hidden;
border: 1px solid #ccc;
border-radius: 5px;
transition: background-color 0.3s;
}
.audio-rectangle .title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: bold;
font-size: 24px; /* Increased font size */
color: #333;
text-align: center;
z-index: 1;
user-select: none;
}
.audio-rectangle .progress-overlay {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 0%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 0;
transition: width 0.1s linear;
}
@media (hover: hover) {
.audio-rectangle:hover {
background-color: #d0d0d0;
}
}
/* Adjust grid for larger screens (4 columns) */
/* @media (min-width: 800px) {
#audio-grid {
grid-template-columns: repeat(4, 1fr);
}
} */
/* Adjust grid for larger screens (6 columns) */
/* @media (min-width: 1100px) {
#audio-grid {
grid-template-columns: repeat(6, 1fr);
}
} */
/* Adjust grid for extra large screens (8 columns) */
/* @media (min-width: 1400px) {
#audio-grid {
grid-template-columns: repeat(8, 1fr);
}
} */
/* Allow scrolling if content overflows */
body {
overflow-y: auto;
}