-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
104 lines (96 loc) · 1.61 KB
/
Copy pathstyle.css
File metadata and controls
104 lines (96 loc) · 1.61 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-family: "Poppins", sans-serif;
}
.product_container {
display: flex;
flex-direction: column;
gap: 30px;
align-items: center;
}
.product_card {
box-shadow: 0px 7px 32px rgba(0, 0, 0, 0.25);
width: 600px;
min-height: 150px;
border-radius: 5px;
display: flex;
}
.image_container {
flex: 1;
border-right: 1px solid black;
padding: 10px 30px;
}
.image_container img {
width: 100%;
height: 100%;
object-fit: contain;
}
.product_content {
flex: 5;
padding: 10px 20px;
display: flex;
flex-direction: column;
}
/* Product Content Style */
.product_content h2 {
font-size: 16px;
font-weight: 500;
}
.product_content p {
font-size: 12px;
font-weight: 400;
opacity: 0.8;
}
.product_content button {
font-size: 20px;
background-color: green;
border: none;
color: white;
padding: 5px 20px;
margin-top: 10px;
align-self: end;
}
/* Input Styling */
.input_container {
display: flex;
justify-content: center;
width: 600px;
margin: 10px auto;
}
.input_container input {
width: 100%;
padding-left: 40px;
height: 35px;
border: 2px solid var(--primary);
color: var(--primary);
}
.input_container input::placeholder {
color: var(--primary);
}
.search_icon {
position: relative;
left: 35px;
margin-left: -35px;
display: grid;
place-items: center;
}
@media (max-width: 630px) {
.product_card {
width: 90%;
}
.input_container {
width: 90%;
}
}
@media (max-width: 425px) {
.product_card {
flex-direction: column;
}
.product_content button {
align-self: stretch;
}
}