-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
44 lines (38 loc) · 859 Bytes
/
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
.produtos {
display: flex;
flex-wrap: wrap;
list-style-type: none;
padding: 0;
}
.produtos li {
transition: transform 0.2s, box-shadow 0.2s;
flex: 1 1 calc(33.333% - 10px);
/* 3 itens por linha - web */
box-sizing: border-box;
margin: 5px;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
text-align: center;
}
.produtos li:hover {
transform: scale(1.05);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
@media (max-width: 992px) {
.produtos li {
flex: 1 1 calc(50% - 10px);
/* 2 itens por linha - tablet */
}
}
@media (max-width: 576px) {
.produtos li {
flex: 1 1 calc(100% - 10px);
/* 1 item por linha - celular */
}
}
.descricao img {
max-width: 100%;
height: auto;
margin-bottom: 10px;
}