-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
117 lines (108 loc) · 1.96 KB
/
index.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
112
113
114
115
116
117
main {
display: flex;
grid-template-columns: auto;
grid-template-rows: auto;
flex-direction: column;
}
#control {
display: block;
margin-bottom: 2em;
padding: 0px 2em;
}
.products {
margin: 0 auto;
display: grid;
width: 95%;
height: auto;
grid-gap: 1%;
row-gap: 1em;
grid-template-columns: 1fr 1fr 1fr;
justify-content: space-evenly;
margin-bottom: 50px;
}
.product {
border: 2px solid black;
box-sizing: border-box;
padding: 0.5em;
background-color: var(--product-bg-color);
box-shadow: 10px 10px 5px #aaaaaa;
}
.product-image-price {
display: flex;
align-items: center;
margin-bottom: 1em;
}
.product-image-price img {
height: 125px;
width: 125px;
object-fit: cover;
margin-right: 10px;
cursor: pointer;
}
.product-image-price .price {
color: var(--price-color);
font-weight: 600;
}
.product-info {
height: 6em;
text-align: center;
font-weight: 700;
}
.buy-cart {
margin-top: 3em;
display: flex;
flex-direction: column;
}
.buy-cart > .button {
margin-bottom: 1em;
border: none;
background-color: var(--main-button-bg-color);
border-radius: 10px;
height: 2.5em;
cursor: pointer;
transition: 0.3s;
box-shadow: 0px 0px 5px #aaaaaa;
}
.buy-cart > a {
text-decoration: none;
color: white;
font-weight: 700;
}
.buy-cart > .button:hover {
transform: scale(1.05);
filter: brightness(110%);
}
.special_quantity_modifier {
position: absolute;
z-index: 1;
top: 50%;
left: 50%;
}
@media only screen and (min-width: 1400px) {
.products {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
.product-info {
height: 3.5em;
text-align: center;
font-weight: 700;
}
.product-image-price img {
height: 200px;
width: 200px;
}
}
@media only screen and (max-width: 770px) {
.product-image-price img {
height: 75px;
width: 75px;
}
.products {
grid-template-columns: 1fr 1fr;
}
.product-info {
height: 6em;
text-align: center;
font-weight: 600;
}
}