-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
116 lines (95 loc) · 1.94 KB
/
styles.css
File metadata and controls
116 lines (95 loc) · 1.94 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
/* css styles */
.listing-title {
text-transform: capitalize;
}
/* Photo Album Carousel */
.photo-album {
margin: 2rem 0;
overflow: hidden;
}
.photo-album-container {
display: flex;
overflow-x: auto;
scroll-behavior: smooth;
gap: 1.5rem;
padding: 1rem 0;
scrollbar-width: thin;
scrollbar-color: #888 #f1f1f1;
}
.photo-album-container::-webkit-scrollbar {
height: 8px;
}
.photo-album-container::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
.photo-album-container::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
.photo-album-container::-webkit-scrollbar-thumb:hover {
background: #555;
}
.photo-item {
flex: 0 0 auto;
width: 400px;
max-width: 90vw;
display: flex;
flex-direction: column;
}
.photo-item img {
width: 100%;
height: 300px;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.photo-item img:hover {
transform: scale(1.02);
}
.photo-caption {
margin-top: 0.75rem;
font-size: 0.95rem;
color: #555;
text-align: center;
line-height: 1.4;
}
/* Dark mode styles */
html[data-bs-theme="dark"] .photo-album-container {
scrollbar-color: #666 #2b2b2b;
}
html[data-bs-theme="dark"] .photo-album-container::-webkit-scrollbar-track {
background: #2b2b2b;
}
html[data-bs-theme="dark"] .photo-album-container::-webkit-scrollbar-thumb {
background: #666;
}
html[data-bs-theme="dark"] .photo-album-container::-webkit-scrollbar-thumb:hover {
background: #888;
}
html[data-bs-theme="dark"] .photo-item img {
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
html[data-bs-theme="dark"] .photo-caption {
color: #aaa;
}
@media (max-width: 768px) {
.photo-item {
width: 300px;
}
.photo-item img {
height: 225px;
}
}
@media (max-width: 480px) {
.photo-item {
width: 250px;
}
.photo-item img {
height: 190px;
}
.photo-caption {
font-size: 0.85rem;
}
}