diff options
author | polo <ordipolo@gmx.fr> | 2025-10-20 18:11:35 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-10-20 18:11:35 +0200 |
commit | 426a1a69cb73007538336debc31b34c4348e1ba1 (patch) | |
tree | 44f1f15c892cc012bfdc5bdc42bb406934867298 /public/css/body.css | |
parent | 8bc4814fc83001d02ab3298e06596f0bd2a99f44 (diff) | |
download | cms-426a1a69cb73007538336debc31b34c4348e1ba1.zip |
un peu de nettoyage et d'uniformisation du CSS
Diffstat (limited to 'public/css/body.css')
-rw-r--r-- | public/css/body.css | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/public/css/body.css b/public/css/body.css index dee806b..95f30d4 100644 --- a/public/css/body.css +++ b/public/css/body.css | |||
@@ -52,6 +52,7 @@ main | |||
52 | section | 52 | section |
53 | { | 53 | { |
54 | margin: 10px 0; | 54 | margin: 10px 0; |
55 | padding: 15px; | ||
55 | } | 56 | } |
56 | section > h3 | 57 | section > h3 |
57 | { | 58 | { |
@@ -63,16 +64,25 @@ section .fetch_articles | |||
63 | { | 64 | { |
64 | margin-left: 15px; | 65 | margin-left: 15px; |
65 | } | 66 | } |
66 | .login_form, .basic_section | 67 | .basic_div |
67 | { | 68 | { |
68 | background-color: white; | 69 | background-color: white; |
69 | margin: 15px; | ||
70 | padding: 10px; | 70 | padding: 10px; |
71 | } | 71 | } |
72 | 72 | ||
73 | .section_child | ||
74 | { | ||
75 | gap: 15px; /* fonctionne avec flexbox et grid */ | ||
76 | margin-top: 15px; | ||
77 | } | ||
78 | .fullwidth > .section_child | ||
79 | { | ||
80 | display: flex; | ||
81 | flex-direction: column; | ||
82 | } | ||
73 | .grid > .section_child | 83 | .grid > .section_child |
74 | { | 84 | { |
75 | display: grid; /* et c'est tout */ | 85 | display: grid;/* et c'est tout */ |
76 | /* la règle grid-template-columns est ajoutée dynamiquement par PHP ou JS*/ | 86 | /* la règle grid-template-columns est ajoutée dynamiquement par PHP ou JS*/ |
77 | } | 87 | } |
78 | .mosaic > .section_child | 88 | .mosaic > .section_child |
@@ -83,7 +93,7 @@ section .fetch_articles | |||
83 | } | 93 | } |
84 | .mosaic > .section_child article | 94 | .mosaic > .section_child article |
85 | { | 95 | { |
86 | max-width: 300px; | 96 | max-width: 350px; |
87 | } | 97 | } |
88 | .mosaic > .section_child img /* règle ciblant un élément généré par l'éditeur */ | 98 | .mosaic > .section_child img /* règle ciblant un élément généré par l'éditeur */ |
89 | { | 99 | { |
@@ -94,8 +104,8 @@ section .fetch_articles | |||
94 | article | 104 | article |
95 | { | 105 | { |
96 | background-color: white; | 106 | background-color: white; |
97 | margin: 15px; | 107 | /*margin: 10px;*/ /* rêmplacé par gap */ |
98 | padding: 15px; | 108 | padding: 10px; |
99 | /*min-height: 150px;*/ | 109 | /*min-height: 150px;*/ |
100 | } | 110 | } |
101 | article .logo2 | 111 | article .logo2 |
@@ -218,6 +228,7 @@ article a:hover | |||
218 | flex-wrap: wrap; | 228 | flex-wrap: wrap; |
219 | justify-content: space-between;*/ | 229 | justify-content: space-between;*/ |
220 | display: grid; | 230 | display: grid; |
231 | gap: 15px; | ||
221 | grid-template-columns: repeat(2, 1fr); | 232 | grid-template-columns: repeat(2, 1fr); |
222 | } | 233 | } |
223 | @media screen and (max-width: 900px) | 234 | @media screen and (max-width: 900px) |