-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
192 lines (161 loc) · 3.16 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
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
*{
overflow: auto;
}
body{
background-color: #8BA1BB;
font-family: Arial, Helvetica, sans-serif;
margin: auto;
}
p.category{
background-color: black;
color: white;
text-align: center;
margin-top: -22px;
padding: 8px 18px;
display: inline-block;
font-weight: bold;
font-size: 1.5rem;
}
div.category{
margin: 0;
padding: 0;
overflow: visible;
}
div.card{
background-color: white;
padding: 0px 8px 20px 8px;
margin: 40px 8px 40px 8px;
box-shadow: 0px 0px 7px 7px rgba(0, 0, 0, 0.2);
overflow: visible;
}
h1{
text-align: center;
margin-bottom: 12px;
margin-top: 10px;
}
/* le texte est centré dans son bloc et pour pouvoir centrer ce bloc, on l'enveloppe d'une div et on utilise display : inline-block */
p.description{
max-width: 400px;
text-align: center;
font-size: 1rem;
display: inline-block;
}
/* on centre le bloc texte contenu dans la div */
.centre{
text-align: center;
width: 100%;
}
div.separator{
background-color: black;
width: 100px;
height: 1px;
margin-left: auto;
margin-right: auto;
}
div.infos{
position: relative;
}
table.infos{
position: absolute;
bottom:0;
width:100%;
color:white;
background-color: #6C829DC0;
height: 50px;
}
/*tous les tds des tables avec la classe infos*/
table.infos td{
text-align: center;
font-size: 12px;
vertical-align: top;
}
table.infos th{
font-size: 14px;
vertical-align: bottom;
padding-bottom: 0.3rem;
}
img.infos{
display: block;
max-height: 400px;
object-fit: cover;
min-height: 200px;
background-color: lightgrey;
}
div.colonne{
width: 100%;
margin-top: 20px;
}
div.colonne h2{
text-align: center;
text-transform: uppercase;
font-size: 1.2rem;
border-bottom: 7px solid #6C829D;
padding-bottom: 5px;
}
div.colonne1{
display: inline-block;
}
div.ingredient p{
text-align: center;
font-size: 1rem;
border: 1px solid lightgray;
padding: 0.6rem 0;
margin: 0.4rem 0;
}
table.preparation p.numero{
background-color: #6C829D;
color: white;
width: 1.5rem;
height: 1.5rem;
text-align: center;
font-size: 1rem;
font-weight: bold;
padding-top: 0.2rem;
box-sizing: border-box;
border-radius: 50%;
margin: 0;
}
table.preparation td{
vertical-align: top;
}
table.preparation tr{
height: 3rem;
}
table.preparation td.etape{
font-size: 1.2rem;
padding-left: 1rem;
padding-bottom: 0.7rem;
}
/* desktop only */
@media only screen and (min-width: 768px){
div.card{
min-width: 350px;
padding: 0px 30px 30px 30px;
margin: 60px 10% 80px 10%;
}
table.infos{
height: 6rem;
}
table.infos td{
font-size: 1rem;
}
table.infos th{
font-size: 1.2rem;
}
div.colonne{
width: 45%;
}
div.colonne1{
margin-right: 10%;
}
div.colonne2{
float:right;
}
}
@media only screen and (min-width: 900px){
div.card{
width: 660px;
margin-left: auto;
margin-right: auto;
}
}