-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
105 lines (89 loc) · 1.69 KB
/
styles.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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header {
background-color: #232F3E;
color: white;
padding: 20px;
text-align: center;
}
.product-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
padding: 20px;
}
.product {
background-color: white;
border: 1px solid #ddd;
border-radius: 5px;
padding: 20px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transform: scale(0.95);
transition: transform 0.3s ease;
cursor: pointer;
}
.product img {
max-width: 100%;
height: auto;
margin-bottom: 15px;
transition: transform 0.3s ease;
}
.product h2 {
font-size: 1.5rem;
margin-bottom: 10px;
}
.product p {
color: #555;
margin-bottom: 15px;
}
.product button {
background-color: #FF9900;
color: white;
padding: 10px 20px;
border: none;
border-radius: 3px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s ease;
}
.product button:hover {
background-color: #F90;
}
.product:hover {
transform: scale(1.05);
}
.product:hover img {
transform: scale(1.1);
}
/* Stile per desktop */
@media (min-width: 1024px) {
.product-grid {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
}
/* Stile per mobile */
@media (max-width: 768px) {
.product-grid {
grid-template-columns: 1fr 1fr;
gap: 10px;
padding: 10px;
}
.product {
padding: 15px;
}
.product h2 {
font-size: 1.2rem;
}
.product p {
font-size: 0.9rem;
}
.product button {
padding: 8px 16px;
font-size: 0.9rem;
}
}