-
Notifications
You must be signed in to change notification settings - Fork 2
/
shopbycat.css
130 lines (114 loc) · 2.42 KB
/
shopbycat.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
118
119
120
121
122
123
124
125
126
127
128
129
130
#shop_category{
/* display: block; */
width: 96%;
margin: auto;
text-align: center;
margin-top: 50px;
}
#shop_category h3{
font-family: 'Vidaloka', serif;
letter-spacing: 0.1em;
font-size: 40px;
}
#category{
display: grid;
width: 100%;
grid-template-columns: repeat(5,1fr);
grid-template-rows: auto;
justify-content: center;
align-items: center;
gap: 25px;
letter-spacing: .2em;
margin-top: 50px;
}
#category>div{
/* width: 250px; */
display: flex;
flex-direction: column;
justify-content: end;
align-items: center;
margin: auto;
height: 300px;
/* border: 1px solid blue; */
margin-bottom: 10px;
}
#category>div>div{
width: 100%;
height: 250px;
/* border: 1px solid black; */
margin-bottom: 10px;
}
#category img{
width: 100%;
height: 100%;
object-fit: fill;
/* max-width: 100%;
height: auto;
max-height: auto ;
object-fit: cover;
transition: 0.3s all ease-in-out; */
}
@media all and (min-width:480px) and (max-width:760px){
#shop_category{
margin: auto;
/* margin-left: 12%; */
}
#category{
grid-template-columns: repeat(2,1fr);
/* grid-template-rows: 600px; */
}
#shop_category h3{
font-size: 30px;
font-weight: 600;
}
#category p{
font-size: 12px;
}
#category>div{
/* width: 80%; */
/* margin-left: 20px; */
/* width: 200px;
height: 250px; */
margin-top: 15px;
}
#category>div>div{
width: 80%;
height: 80%px;
}
#category>div>div>img{
width: 100%;
object-fit: fill;
}
}
@media all and (min-width:120px) and (max-width:480px){
#shop_category{
margin: auto;
/* margin-left: 12%; */
}
#category{
grid-template-columns: repeat(2,1fr);
/* grid-template-rows: 600px; */
}
#shop_category h3{
font-size: 30px;
font-weight: 600;
}
#category p{
font-size: 12px;
}
#category>div{
/* width: 80%; */
/* margin-left: 20px; */
/* width: 200px;
height: 250px; */
margin-top: 15px;
}
#category>div>div{
width: 80%;
height: 80%px;
}
#category>div>div>img{
width: 100%;
object-fit: fill;
}
}