-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
109 lines (94 loc) · 1.99 KB
/
style.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
strong {
font-size: 1rem;
margin-right: 1rem;
}
input[type="text"] {
padding: 0.5rem;
margin-top: 1rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
width: 200px;
}
input[type="text"]:hover {
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
border-color: #999;
}
input[type="text"]:focus {
outline: none;
border-color: #007BFF;
box-shadow: 0px 4px 6px rgba(0, 123, 255, 0.25);
}
.input-container {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.input-container strong {
flex-basis: 150px;
flex-shrink: 0; /* Prevent shrinking */
}
.cart-container {
display: grid;
place-items: center;
height: 100%;
width: 100%;
}
.cart-image {
object-fit: cover;
max-width: 100%;
max-height: 100%;
}
@media (max-width: 600px) {
.cart-image {
width: 100%;
height: auto;
}
}
@media (min-width: 601px) {
.cart-image {
width: auto;
height: 100%;
}
}
.product_card {
padding: 20px;
border: 1px solid #ddd;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s ease, transform 0.3s ease;
align-items: center;
gap: 20px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
width: 20%;
}
.product_card img {
max-width: 100%;
border-radius: 4px;
object-fit: cover;
}
/* Apply hover effects to the whole card */
.product_card:hover {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transform: scale(1.03);
}
/* Specific styles for h3 and h5 without transformation */
.product_card h3, .product_card h5 {
margin: 5px 0;
}
.products_container {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
@media screen and (max-width: 500px) {
.product_card {
width: 90%;
}
}