-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
75 lines (67 loc) · 1.45 KB
/
style.css
File metadata and controls
75 lines (67 loc) · 1.45 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
/* Grid container in breeds.html */
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
padding: 20px;
}
/* Style for each pet card */
.pet-card {
border-radius: 15px;
padding: 20px;
color: #333;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
text-align: center;
transition: transform .2s;
}
.pet-card:hover {
transform: translateY(-4px);
}
/* Search bar style */
.filters input#search {
width: 200px;
padding: 8px 12px;
border: 1px solid #ccc;
border-radius: 8px;
outline: none;
font-size: 14px;
}
.filters input#search::placeholder {
color: #aaa;
}
/* Filter button default and active styles */
.filters .filter {
padding: 6px 12px;
margin-left: 8px;
border: 1px solid #bbb;
border-radius: 8px;
background-color: #fff;
color: #333;
cursor: pointer;
transition: background-color 0.2s, color 0.2s;
}
.filters .filter:hover {
background-color: #eee;
}
.filters .filter.active {
background-color: #333;
color: #fff;
border-color: #333;
}
/* Modal background and positioning */
.modal {
position: fixed;
z-index: 999;
left: 0; top: 0;
width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.4);
display: flex; justify-content: center; align-items: center;
}
/* Modal content style */
.modal-content {
background: white;
padding: 20px;
border-radius: 12px;
width: 90%;
max-width: 400px;
}