-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathstyles.css
More file actions
229 lines (203 loc) · 7.54 KB
/
styles.css
File metadata and controls
229 lines (203 loc) · 7.54 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
:root {
--bg: #0f1115;
--panel: #141821;
--text: #e6eaf2;
--muted: #9aa5b1;
--tile: #252c3a;
--tile-hover: #323b4f;
--accent: #7aa2f7;
--radius: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
color: var(--text);
background: radial-gradient(1200px 600px at 20% -10%, #1a2030 10%, transparent 60%),
radial-gradient(1000px 800px at 120% 0%, #1b2436 10%, transparent 70%),
var(--bg);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 24px 20px;
}
/* Two-column layout: sticky filters on the left */
.layout {
display: grid;
grid-template-columns: 290px 1fr;
gap: 20px;
align-items: start;
}
.sidebar { position: sticky; top: 16px; height: fit-content; }
.content { min-width: 0; }
@media (max-width: 900px) {
.layout { grid-template-columns: 1fr; }
.sidebar { position: static; }
}
h1 { margin: 0 0 8px; font-weight: 700; letter-spacing: 0.2px; }
h2 { margin: 24px 0 12px; font-size: 18px; letter-spacing: 0.2px; }
.sub { margin: 0 0 16px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.filters {
display: flex;
gap: 16px;
flex-wrap: wrap;
align-items: end;
}
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
select {
color: var(--text);
background: var(--panel);
border: 1px solid #2a3244;
padding: 10px 12px;
border-radius: 10px;
min-width: 220px;
outline: none;
}
select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #7aa2f733; }
input[type="text"] {
color: var(--text);
background: var(--panel);
border: 1px solid #2a3244;
padding: 10px 12px;
border-radius: 10px;
outline: none;
}
input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #7aa2f733; }
.search-sort { display: grid; gap: 12px; margin-bottom: 12px; }
.search-group { display: flex; gap: 8px; align-items: center; }
.btn.small { padding: 6px 10px; font-size: 12px; }
.sort-row { display: flex; align-items: center; gap: 8px; }
.sort-toggle { min-width: 110px; text-align: center; }
.sort-toggle.asc { background: #163922; border-color: #22c55e; color: #e8ffe8; box-shadow: inset 0 0 0 2px rgba(34,197,94,.25), 0 0 12px rgba(34,197,94,.12); }
.sort-toggle.desc { background: #3a1616; border-color: #ef4444; color: #ffe8e8; box-shadow: inset 0 0 0 2px rgba(239,68,68,.25), 0 0 12px rgba(239,68,68,.12); }
.tiles {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 12px;
}
.tile {
background: var(--tile);
border: 1px solid #2a3244;
border-radius: var(--radius);
padding: 14px;
display: grid;
gap: 6px;
cursor: pointer;
transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.tile:hover { transform: translateY(-2px); background: var(--tile-hover); border-color: #3a4661; }
.tile .name { font-weight: 600; }
.tile .count { color: var(--muted); font-size: 12px; }
.grid-head {
display: flex;
align-items: baseline;
justify-content: space-between;
}
.active-filters { margin: 6px 0 12px; }
.toolbar { display: grid; gap: 6px; justify-content: start; margin: 8px 0; }
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 16px;
}
.card {
background: var(--panel);
border: 1px solid #22293a;
border-radius: var(--radius);
overflow: hidden;
display: grid;
}
.media {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
background: #0c0f16;
}
.media img, .media video {
position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media video { display: none; }
.media.playing img { opacity: 0; }
.media.playing video { display: block; }
.card-body { padding: 12px 12px 14px; display: grid; gap: 8px; }
.title { font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
border: 1px solid #2a3244;
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
color: var(--muted);
}
/* Color accents per muscle group */
.accent-CHEST { --accent: #ef9a9a; }
.accent-BACK { --accent: #90caf9; }
.accent-LEGS { --accent: #a5d6a7; }
.accent-CORE { --accent: #ffcc80; }
.accent-ARMS { --accent: #ce93d8; }
.accent-SHOULDERS { --accent: #80cbc4; }
.accent-GLUTES { --accent: #f48fb1; }
.accent-NECK { --accent: #b39ddb; }
.accent-FULL_BODY { --accent: #ffd54f; }
.accent-OTHER { --accent: #b0bec5; }
.tile.accent { border-color: color-mix(in oklab, var(--accent), #1a2030 40%); }
.tile.accent:hover { border-color: var(--accent); box-shadow: 0 4px 24px color-mix(in oklab, var(--accent), transparent 80%); }
.pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 2px 10px;
font-size: 12px;
border-radius: 999px;
border: 1px solid #2a3244;
background: #0e121a;
}
.legend {
display: flex; gap: 8px; align-items: center;
}
.swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 1px solid #2a3244; }
/* Filter sections with toggle buttons */
.filters-sections { display: grid; gap: 16px; }
.filter-block { display: grid; gap: 10px; background: #0e121a; border: 1px solid #202739; padding: 12px; border-radius: 12px; }
.block-head { display: flex; justify-content: space-between; align-items: center; }
.block-head .label { font-weight: 600; color: var(--text); }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
background: var(--panel);
color: var(--text);
border: 1px solid #2a3244;
padding: 8px 12px;
border-radius: 999px;
font-size: 12px;
cursor: pointer;
transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.btn:hover { background: #1a2130; border-color: #3a4661; }
.btn.active {
background: #163922;
border-color: #22c55e;
color: #e8ffe8;
box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.25), 0 0 16px rgba(34, 197, 94, 0.12);
}
.btn.subtle { background: transparent; color: var(--muted); }
.btn.subtle:hover { color: var(--text); }
/* AND / OR mode bar */
.modebar { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(-6px); transition: opacity 120ms ease, transform 120ms ease; }
.filter-block:hover .modebar, .modebar.show { opacity: 1; transform: translateY(0); }
.seg { display: inline-flex; align-items: center; background: #121829; border: 1px solid #2a3244; border-radius: 999px; padding: 2px; }
.seg-btn { background: transparent; border: 0; color: var(--muted); padding: 6px 10px; border-radius: 999px; cursor: pointer; font-size: 12px; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: #243252; color: #e6eaf2; }
/* Modal */
.modal { position: fixed; inset: 0; background: #0008; display: grid; place-items: center; z-index: 1000; }
.modal.hidden { display: none; }
.dialog { width: min(1100px, 96vw); background: #0b0e14; border: 1px solid #2a3244; border-radius: 12px; padding: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.close { position: absolute; margin-top: -6px; margin-left: -6px; transform: translate(6px, -6px); border: 1px solid #2a3244; background: #121827; color: var(--text); border-radius: 999px; width: 28px; height: 28px; cursor: pointer; }
.modal-notice { padding-top: 8px; }
/* Back to Top */
.back-to-top { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; border: 1px solid #2a3244; background: #111628; color: var(--text); cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 6px 30px rgba(0,0,0,0.4); }
.back-to-top.show { display: inline-flex; }