-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
175 lines (157 loc) · 3.3 KB
/
Copy pathstyle.css
File metadata and controls
175 lines (157 loc) · 3.3 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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Segoe UI", Tahoma, sans-serif;
}
body {
background: #f5f6f8;
padding: 2rem;
}
#main {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1.5rem;
justify-items: center;
}
.card {
background: #fff;
border-radius: 12px;
width: 240px;
padding: 1rem;
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
text-align: center;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
transform: translateY(-6px);
box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
.card img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 0.75rem;
}
.card h1 {
font-size: 1.2rem;
color: #333;
margin-bottom: 0.4rem;
}
.card p {
color: #555;
font-size: 0.9rem;
margin-bottom: 0.5rem;
}
.card p strike {
color: #999;
margin-left: 0.25rem;
font-size: 0.85rem;
}
/* --- Button --- */
.card button {
margin-top: 0.5rem;
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
background: #4caf50;
color: #fff;
font-size: 0.95rem;
cursor: pointer;
transition: background 0.2s ease;
}
.card button:hover {
background: #43a047;
}
.filterBar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 1rem 1.5rem;
margin-bottom: 1.5rem;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
/* Inputs */
.filterBar input[type="number"] {
width: 140px;
padding: 0.55rem 0.75rem;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 0.95rem;
outline: none;
transition: border 0.2s ease, box-shadow 0.2s ease;
}
.filterBar input[type="number"]:focus {
border-color: #4caf50;
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
}
/* Button */
.filterBar button {
padding: 0.6rem 1.2rem;
border: none;
border-radius: 8px;
background: #4caf50;
color: #fff;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
transition: background 0.2s ease;
}
.filterBar button:hover {
background: #43a047;
}
/* Mobile responsiveness */
@media (max-width: 500px) {
.filterBar input[type="number"] {
width: 100px;
}
}
/* Container of the category nav */
#categoryNav {
margin: 20px auto;
padding: 0;
text-align: center; /* center the list */
background: #f8f8f8; /* light background strip */
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Remove default list styles */
#categoryNav ul {
list-style: none;
margin: 0;
padding: 10px 0;
display: flex; /* horizontal tabs */
justify-content: center;
gap: 20px; /* space between tabs */
flex-wrap: wrap; /* wrap on small screens */
}
/* Each <li> acts like a tab/button */
#categoryNav li {
cursor: pointer;
padding: 8px 16px;
background: #ffffff;
border: 1px solid #ddd;
border-radius: 20px;
font-size: 16px;
color: #333;
transition: all 0.3s ease;
}
/* Hover effect */
#categoryNav li:hover {
background: #4cafef; /* highlight color */
color: white;
border-color: #4cafef;
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
/* Optional: active/selected tab class you can add dynamically */
#categoryNav li.active {
background: #4cafef;
color: #fff;
border-color: #4cafef;
font-weight: bold;
}