-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
131 lines (110 loc) · 1.88 KB
/
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
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
131
/* esercizio8 - ecommerce */
* {
box-sizing: border-box;
margin: 0px;
}
html, body {
background-color: lightgrey;
font-family: 'Roboto', sans-serif;
}
header {
text-align: center;
padding: 20px;
border-bottom: 1px solid grey;
}
h1 {
font-style: oblique;
font-weight: bold;
}
h2 {
font-size: 18px;
font-style: italic;
font-weight: 500;
text-align: center;
color: white;
background-color: black;
}
.griglia-prodotti {
width: 100%;
height: 600px;
background: white;
margin: 0px auto;
text-align: center;
padding-top: 60px;
}
.riga-prodotti {
margin-top: 10px;
position: relative;
}
.img {
width: 160px;
height: 200px;
}
.prod1 {
margin-bottom: 10px;
background-image: url('pd1.jpg');
background-size: cover;
background-repeat: no-repeat;
display: inline-block;
position: relative;
}
.prod2 {
margin-bottom: 10px;
background-image: url('pd2.jpg');
background-size: cover;
background-repeat: no-repeat;
display: inline-block;
position: relative;
}
.prod3 {
margin-bottom: 10px;
background-image: url('pd3.jpg');
background-size: cover;
background-repeat: no-repeat;
display: inline-block;
position: relative;
}
.sconto-green {
padding: 1px 5px;
position: absolute;
right: 0px;
bottom: 0px;
background: green;
text-align: center;
color: white;
}
.sconto-red {
padding: 1px 5px;
position: absolute;
right: 0px;
bottom: 0px;
background: red;
text-align: center;
color: white;
}
span {
display: none;
color: red;
font-size: 100px;
position: absolute;
top: 30px;
left: 30px
}
.prod1:hover span, .prod2:hover span, .prod3:hover span {
display: block;
}
footer>p {
text-align: center;
border-top: 1px solid grey;
padding: 25px;
}
/* mobile */
@media (max-width: 500px) {
.griglia-prodotti {
height: 1350px;
}
.prod1, .prod2, .prod3 {
display: block;
margin: 0px auto;
}
}