-
Notifications
You must be signed in to change notification settings - Fork 0
/
product.css
111 lines (93 loc) · 1.7 KB
/
product.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
105
106
107
108
109
110
111
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f0f0f0;
<<<<<<< HEAD
background-image: url('bgimgs/p\ \(3\).jpg');
=======
background-image: url('./bgimgs/p3.jpg');
>>>>>>> origin/main
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.products-container {
max-width: 1200px;
margin: 20px auto;
padding: 20px;
box-sizing: border-box;
padding-top: 7%;
}
.product {
border: 1px solid #ccc;
padding: 10px;
margin-bottom: 20px;
width: calc(33.33% - 20px);
height: 60vh;
box-sizing: border-box;
background-color:#fff;
backdrop-filter: blur(10px);
transition: transform 0.3s ease-in-out;
float: left;
margin-right: 20px;
border-radius: 10px;
color: #000;
}
.products-container .product:nth-child(3n+1) {
animation: pulse 2s;
}
.product img {
max-width: 200px;
display: block;
margin: 0 auto;
aspect-ratio: 7/6;
object-fit: contain;
mix-blend-mode: darken;
}
.product h2 {
text-align: center;
margin-top: 10px;
}
.product p {
text-align: center;
margin-top: 5px;
font-size: 16px;
color: #333;
}
/* Animation on hover */
.product:hover {
transform: scale(1.05);
}
/* Clearfix for float elements */
.clearfix::after {
content: "";
display: table;
clear: both;
}
/* Responsive styles */
@media screen and (max-width: 768px) {
.product {
width: calc(50% - 20px);
<<<<<<< HEAD
/* Adjust for smaller screens */
}
=======
height: 45vh;
margin-left: 3%;
}
.products-container {
padding-top: 20%;
}
>>>>>>> origin/main
}
@media screen and (max-width: 480px) {
.product {
width: calc(100% - 20px);
<<<<<<< HEAD
/* Full width for smaller screens */
=======
>>>>>>> origin/main
margin-right: 0;
}
}