summaryrefslogtreecommitdiff
path: root/blog.css
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-02-09 15:56:55 +0100
committerpolo <ordipolo@gmx.fr>2024-02-09 15:56:55 +0100
commit949737cf5fc2a21b36c4a269a437d0dc2e965441 (patch)
tree5a6962408f833e6e2b04519fed544193e41e6360 /blog.css
downloadlelionetlecolibri-master.zip
1er commitHEADmaster
Diffstat (limited to 'blog.css')
-rw-r--r--blog.css352
1 files changed, 352 insertions, 0 deletions
diff --git a/blog.css b/blog.css
new file mode 100644
index 0000000..0f698a7
--- /dev/null
+++ b/blog.css
@@ -0,0 +1,352 @@
1body
2{
3 /* vire une bande de la couleur du fond au dessus */
4 margin: 0px;
5 /* violet lavande */
6 background-color: #FFEDED;
7 /* marron */
8 color: #661D17;
9 word-wrap: break-word; /* coupe un mot plus long que ce que permet le bloc qui le contient */
10 font-family: sans-serif;
11}
12
13#bloc_page
14{
15 max-width: 980px;
16 margin: auto;
17}
18
19header
20{
21 text-align: center;
22 margin: 0px;
23 /* jaune citron */
24 background-color: #FFFCC2;
25}
26
27img
28{
29 /* supprime la bande en dessous de l'image, <img /> est considérée comme une balise inline et par défaut,
30 le navigateur applique un «vertical-align: baseline;» à cause des g, p, q qui peuvent dépasser en dessous d'un texte */
31 vertical-align: middle;
32 /* image dans le bon sens en regardant les données EXIF */
33 image-orientation: from-image;
34}
35
36p
37{
38 margin: 10px;
39}
40
41i
42{
43 color: red;
44}
45
46h1
47{
48 margin: 0px;
49 font-size: xx-large;
50 font-weight: normal;
51 /* orange curcuma */
52 color: #FC5900;
53
54}
55
56.sakura
57{
58 margin: 15px;
59}
60
61nav
62{
63 width: 100%;
64 padding-top: 5px;
65 padding-bottom: 5px;
66 border-top: 1px purple solid;
67 border-bottom: 1px purple solid;
68 //font-size: large;
69}
70
71h3
72{
73 margin: 0px;
74 padding: 10px 10px 10px 40px;
75 text-align: left;
76}
77
78ul
79{
80 /* annule les marges par défaut */
81 margin: 0px;
82 padding-left: 0px;
83}
84
85li
86{
87 padding: 1px;
88 margin: 10px 20px;
89 text-transform: uppercase;
90 display: inline;
91}
92
93ul li
94{
95 display: inline-block;
96}
97
98li a
99{
100 text-decoration: none;
101}
102
103a
104{
105 color: purple;
106 text-decoration: none;
107}
108
109a:hover
110{
111 /* orange curcuma */
112 color: #FC5900;
113 //text-decoration: underline;
114}
115
116#admin
117{
118 margin: 20px;
119 border: 2px violet solid;
120 display: flex;
121 justify-content: flex-end;
122}
123
124.corps
125{
126 /* jaune citron */
127 background-color: #FFFCC2;
128 display: flex;
129 justify-content: space-between;
130}
131
132article
133{
134 /* rose saumon */
135 border: #FFBD8D 2px solid;
136 margin: 0px 0px 20px 0px;
137 padding: 1px;
138 min-height: 336px;
139 /* violet lavande */
140 background-color: #FFEDED;
141}
142
143h2
144{
145 font-size: x-large;
146 margin: 10px;
147 font-weight: normal;
148}
149
150figure
151{
152 display: flex;
153 width: 180%;
154}
155
156figcaption
157{
158 margin: 10px;
159}
160
161.dateheure
162{
163 font-size: small;
164 font-style: italic;
165}
166
167section img
168{
169 max-width: 300px;
170 max-height: 300px;
171 margin: 0px 10px;
172 float: left;
173}
174
175.contenutexte
176{
177 margin: 10px;
178}
179
180h4
181{
182 /* orange curcuma */
183 color: #FC5900;
184 font-size: large;
185 margin: 20px 0px 0px 0px;
186 text-transform: uppercase;
187 display: inline-block;
188}
189
190
191/* colonne de droite */
192aside
193{
194 text-align: center;
195 width: 200px;
196 display:flex;
197 flex-wrap: wrap;
198 /* quand disposition horizontale*/
199 justify-content: space-around;
200 align-items: flex-start;
201
202}
203
204.aside
205{
206 display:flex;
207 flex-wrap: wrap;
208 justify-content: center;
209}
210
211aside p
212{
213 width: 180px;
214}
215
216.prez
217{
218 display: inline-block;
219}
220
221pre
222{
223 font-family: sans-serif;
224 white-space: pre-wrap;
225 margin: 0px;
226}
227
228aside pre
229{
230 width: 180px;
231}
232
233
234/* pied de page */
235footer
236{
237 display: flex;
238 flex-wrap: wrap;
239 justify-content: space-between;
240}
241
242
243/* grands écrans */
244@media all and (min-width: 980px) /* bloc_page = 980px, aside = 200px, section = 740px et 20 de marge de chaque côté*/
245{
246 section
247 {
248 margin: 20px;
249 width: 740px;
250 }
251}
252
253
254@media all and (min-width: 780px)
255{
256 aside
257 {
258 justify-content: space-around;
259 }
260}
261
262/* petits écrans */
263@media all and (max-width: 979px)
264{
265 #bloc_page
266 {
267 max-width: 780px;
268 }
269
270 #banderole
271 {
272 width: 780px;
273 }
274
275 #bloc_page
276 {
277 max-width: 780px;
278 }
279
280 section /* bloc_page = 780px, aside = 200px, section = 560px et 10 de marge de chaque côté*/
281 {
282 margin: 10px;
283 width: 560px;
284 }
285
286 figcaption
287 {
288 width: 250px;
289 }
290}
291
292
293/* tablettes */
294@media all and (max-width: 779px)
295{
296 #bloc_page
297 {
298 max-width: 580px;
299 }
300
301 #banderole
302 {
303 width: 580px;
304 }
305
306 .corps
307 {
308 flex-wrap: wrap;
309 }
310
311 aside
312 {
313 width: auto;
314 }
315}
316
317@media all and (max-width: 579px)
318{
319 header
320 {
321 width: auto;
322 }
323
324 figure
325 {
326 flex-wrap: wrap;
327 }
328
329 .sakura
330 {
331 display: none;
332 }
333}
334
335/* téléphones */
336@media all and (max-width: 429px)
337{
338 #banderole
339 {
340 width: 429px;
341 }
342
343 .sakura
344 {
345 display: none;
346 }
347
348 figure
349 {
350 flex-wrap: wrap;
351 }
352}