-
Notifications
You must be signed in to change notification settings - Fork 0
/
recette.css
199 lines (170 loc) · 3.51 KB
/
recette.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/* '*' dans le css agit comme une propriété globale */
* {
overflow: auto;
}
/* Mon commentaire en CSS */
body {
background-color: #8BA1BB;
font-family: Arial;
margin:0;
}
.centre {
text-align: center;
width: 100%;
}
div.contenu {
background-color: white;
margin: 40px 8px 40px 8px;
padding: 0px 8px 20px 8px;
/* offset-x | offset-y | blur-radius | spread-radius | color */
box-shadow: 0px 0px 8px 8px rgba(0, 0, 0, 0.2);
overflow: visible;
}
h1 {
text-align: center;
margin-top: 10px;
margin-bottom: 16px;
}
p.description{
text-align: center;
max-width: 400px;
display:inline-block;
font-size: 14px;
}
p.categorie {
background-color: black;
color:white;
display: inline-block;
margin-top: -15px;
padding: 8px 18px;
margin-bottom: 0px;
font-weight: bold;
font-size: 16px;
}
div.categorie {
margin-bottom: 0px;
margin-top: 0px;
overflow: visible;
}
div.separateur {
width: 100px;
height: 2px;
background-color: black;
margin-left: auto;
margin-right: auto;
}
div.info {
position: relative;
}
table.info{
position: absolute;
bottom: 0;
width: 100%;
color: white;
background-color: #6C829DC0;
height: 50px;
}
table.info th {
font-size: 14px;
vertical-align: bottom;
padding: 8px;
}
table.info td {
text-align: center;
font-size: 12px;
vertical-align: top;
}
img.info {
display: block;
max-height: 400px;
object-fit: cover;
min-height: 200px;
background-color: lightgrey;
}
div.colonne h2 {
text-align: center;
text-transform: uppercase;
font-size: 15px;
border-bottom: 5px solid #6C829D;
padding-bottom: 5px;
}
div.colonne {
width: 100%;
margin-top: 20px;
}
div.colonne1 {
display: inline-block;
}
div.ingredients p {
text-align: center;
font-size: 14px;
border: 1px solid lightgrey;
padding: 8px 0;
margin-top: 4px;
margin-bottom: 0;
}
table.preparation td {
vertical-align: top;
}
table.preparation tr {
height: 40px;
}
table.preparation p.numero{
background-color: #6C829D;
color: white;
width: 25px;
height: 25px;
text-align: center;
font-size: 14px;
font-weight: bold;
padding-top: 4px;
box-sizing: border-box;
border-radius: 50%;
margin: 0;
}
table.preparation td.etape_preparation {
font-size: 14px;
padding-left: 10px;
padding-bottom: 10px;
}
/* Styles for desktop computers */
@media only screen and (min-width: 768px) {
div.contenu {
min-width: 350px;
margin: 60px 10% 80px 10%;
padding: 0px 30px 30px 30px;
}
table.info{
height: 80px;
}
table.info th {
font-size: 16px;
}
table.info td {
font-size: 14px;
}
div.colonne h2 {
text-align: center;
text-transform: uppercase;
font-size: 15px;
border-bottom: 5px solid #6C829D;
padding-bottom: 5px;
}
div.colonne {
width: 45%;
}
div.colonne1 {
margin-right: 10%;
}
div.colonne2 {
float: right;
}
}
/*Cas des écran très grands*/
@media only screen and (min-width: 900px) {
div.contenu {
margin-left: auto;
margin-right: auto;
width: 645px;
}
}