diff options
author | polo <ordipolo@gmx.fr> | 2025-05-10 20:16:56 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-05-10 20:16:56 +0200 |
commit | aa8898ae00beaa0ac7e65e45c5f28199b25a9267 (patch) | |
tree | 19cde1aa42478bc594f4a2ea71b8cecdcdcdda85 /public/css | |
parent | d2bdfa7d0f746f060090a9e8c8ad6e376b5a1480 (diff) | |
download | cms-aa8898ae00beaa0ac7e65e45c5f28199b25a9267.zip |
modification de page en mode modif page, déplacement modif_page js et css et MAJ BDD, vue page nouvelle page
Diffstat (limited to 'public/css')
-rw-r--r-- | public/css/body.css | 147 | ||||
-rw-r--r-- | public/css/modif_page.css | 74 | ||||
-rw-r--r-- | public/css/new_page.css | 30 |
3 files changed, 250 insertions, 1 deletions
diff --git a/public/css/body.css b/public/css/body.css index 87f71f2..20e53e0 100644 --- a/public/css/body.css +++ b/public/css/body.css | |||
@@ -36,4 +36,149 @@ body | |||
36 | .infobulle img | 36 | .infobulle img |
37 | { | 37 | { |
38 | vertical-align: middle; | 38 | vertical-align: middle; |
39 | }*/ \ No newline at end of file | 39 | }*/ |
40 | |||
41 | main | ||
42 | { | ||
43 | margin: auto; | ||
44 | /*max-width: 1200px;*/ | ||
45 | background-color: #E3F3FF; | ||
46 | padding: 15px 0; | ||
47 | } | ||
48 | section > h3 | ||
49 | { | ||
50 | padding: 15px; | ||
51 | margin: 0; | ||
52 | text-align: center; | ||
53 | } | ||
54 | .grid_columns | ||
55 | { | ||
56 | display: grid; | ||
57 | grid-template-columns: repeat(3, 1fr); | ||
58 | } | ||
59 | @media screen and (max-width: 800px) | ||
60 | { | ||
61 | .grid_columns | ||
62 | { | ||
63 | grid-template-columns: repeat(2, 1fr); | ||
64 | } | ||
65 | } | ||
66 | @media screen and (max-width: 550px) | ||
67 | { | ||
68 | .grid_columns | ||
69 | { | ||
70 | display: block; | ||
71 | } | ||
72 | } | ||
73 | .galery_photos | ||
74 | { | ||
75 | display: flex; | ||
76 | flex-wrap: wrap; | ||
77 | justify-content: space-evenly; | ||
78 | } | ||
79 | .galery_photos .html_from_editor img | ||
80 | { | ||
81 | max-width: 300px; | ||
82 | max-height: 200px; | ||
83 | } | ||
84 | article | ||
85 | { | ||
86 | /*display: flex;*/ | ||
87 | background-color: white; | ||
88 | margin: 15px; | ||
89 | padding: 0 15px; | ||
90 | /*min-height: 150px;*/ | ||
91 | } | ||
92 | article .logo2 | ||
93 | { | ||
94 | vertical-align: middle; | ||
95 | max-width: 200px; | ||
96 | max-height: 200px; | ||
97 | margin-right: 15px; | ||
98 | } | ||
99 | .new_content, .article_content | ||
100 | { | ||
101 | width: 100%; | ||
102 | } | ||
103 | .new_content | ||
104 | { | ||
105 | /*max-height: 400;*/ | ||
106 | overflow: hidden; | ||
107 | } | ||
108 | article img | ||
109 | { | ||
110 | max-width: 100%; /* règle compliquée, vérifier selon la page et la taille de l'image */ | ||
111 | height: auto; | ||
112 | } | ||
113 | |||
114 | .action_icon | ||
115 | { | ||
116 | width: 24px; | ||
117 | vertical-align: bottom; | ||
118 | border: transparent 2px solid; /* invisible */ | ||
119 | } | ||
120 | button .action_icon | ||
121 | { | ||
122 | border: none; | ||
123 | } | ||
124 | .action_icon:hover | ||
125 | { | ||
126 | background-color: #ffff00; | ||
127 | border-radius: 4px; | ||
128 | border: lightgrey 2px outset; | ||
129 | cursor: pointer; | ||
130 | } | ||
131 | button .action_icon:hover | ||
132 | { | ||
133 | border: none; | ||
134 | } | ||
135 | |||
136 | .button_zone | ||
137 | { | ||
138 | display: flex; | ||
139 | } | ||
140 | |||
141 | .share | ||
142 | { | ||
143 | float: right; | ||
144 | } | ||
145 | .article_title_zone | ||
146 | { | ||
147 | padding: 10px; | ||
148 | } | ||
149 | .under_an_article | ||
150 | { | ||
151 | display: flex; | ||
152 | justify-content: space-between; | ||
153 | font-size: small; | ||
154 | } | ||
155 | .under_an_article img | ||
156 | { | ||
157 | width: 24px; | ||
158 | margin-right: 5px; | ||
159 | vertical-align: middle; | ||
160 | } | ||
161 | .article_admin_zone | ||
162 | { | ||
163 | display: flex; | ||
164 | justify-content: end; | ||
165 | } | ||
166 | section button | ||
167 | { | ||
168 | color: #ff1d04; | ||
169 | font-size: medium; | ||
170 | border-radius: 4px; | ||
171 | background-color: white; | ||
172 | border: lightgrey 2px outset; /* rend identiques les boutons firefox et chromium */ | ||
173 | } | ||
174 | section button:hover | ||
175 | { | ||
176 | background-color: #ffff00; | ||
177 | border-radius: 4px; | ||
178 | cursor: pointer; | ||
179 | } | ||
180 | |||
181 | article a:hover | ||
182 | { | ||
183 | cursor: pointer; | ||
184 | } \ No newline at end of file | ||
diff --git a/public/css/modif_page.css b/public/css/modif_page.css new file mode 100644 index 0000000..c494221 --- /dev/null +++ b/public/css/modif_page.css | |||
@@ -0,0 +1,74 @@ | |||
1 | /* -- mode modification d'une page -- */ | ||
2 | .page_modification | ||
3 | { | ||
4 | background-color: white; | ||
5 | padding: 10px; | ||
6 | margin: 10px 15px; | ||
7 | } | ||
8 | .page_modification form select, .page_modification form input[type=submit] | ||
9 | { | ||
10 | color: #ff1d04; | ||
11 | font-size: medium; | ||
12 | border-radius: 4px; | ||
13 | background-color: white; | ||
14 | border: lightgrey 2px outset; | ||
15 | } | ||
16 | .page_modificationselect:hover | ||
17 | { | ||
18 | cursor: pointer; | ||
19 | } | ||
20 | .page_modification form input[type=submit]:hover | ||
21 | { | ||
22 | background-color: #ffff00; | ||
23 | border-radius: 4px; | ||
24 | cursor: pointer; | ||
25 | } | ||
26 | .edit_page_title_zone | ||
27 | { | ||
28 | display: flex; | ||
29 | flex-wrap: wrap; | ||
30 | justify-content: space-evenly; | ||
31 | } | ||
32 | .edit_page_zone, .edit_bloc_zone | ||
33 | { | ||
34 | background-color: #f0f0f0f0; | ||
35 | margin: 5px; | ||
36 | padding: 10px; | ||
37 | } | ||
38 | #edit_description | ||
39 | { | ||
40 | margin: 5px; | ||
41 | display: flex; | ||
42 | flex-wrap: wrap; | ||
43 | justify-content: center; | ||
44 | gap: 5px; | ||
45 | } | ||
46 | #edit_description button | ||
47 | { | ||
48 | vertical-align: top; | ||
49 | } | ||
50 | .edit_bloc_zone | ||
51 | { | ||
52 | display: flex; | ||
53 | justify-content: space-evenly; | ||
54 | flex-wrap: wrap; | ||
55 | } | ||
56 | .edit_page_zone p, .edit_bloc_zone p, .edit_page_zone form | ||
57 | { | ||
58 | margin: 5px; | ||
59 | } | ||
60 | |||
61 | .new_bloc #bloc_title | ||
62 | { | ||
63 | width: 70%; | ||
64 | max-width: 300px; | ||
65 | } | ||
66 | .modify_bloc > div | ||
67 | { | ||
68 | display: flex; | ||
69 | align-items: baseline; | ||
70 | } | ||
71 | .modify_bloc img | ||
72 | { | ||
73 | vertical-align: middle; | ||
74 | } \ No newline at end of file | ||
diff --git a/public/css/new_page.css b/public/css/new_page.css new file mode 100644 index 0000000..0cc067a --- /dev/null +++ b/public/css/new_page.css | |||
@@ -0,0 +1,30 @@ | |||
1 | /*-- page "Nouvelle page" uniquement --*/ | ||
2 | .new_page | ||
3 | { | ||
4 | padding: 0 20px; | ||
5 | } | ||
6 | .new_page .form_zone | ||
7 | { | ||
8 | background-color: white; | ||
9 | padding: 10px; | ||
10 | } | ||
11 | |||
12 | .new_page #page_location, .new_page input[type=submit] | ||
13 | { | ||
14 | color: #ff1d04; | ||
15 | font-size: medium; | ||
16 | border-radius: 4px; | ||
17 | background-color: white; | ||
18 | border: lightgrey 2px outset; | ||
19 | } | ||
20 | .new_page #page_location:hover, .new_page input[type=submit]:hover | ||
21 | { | ||
22 | background-color: #ffff00; | ||
23 | border-radius: 4px; | ||
24 | border: lightgrey 2px outset; | ||
25 | cursor: pointer; | ||
26 | } | ||
27 | .label_textarea | ||
28 | { | ||
29 | vertical-align: top; | ||
30 | } \ No newline at end of file | ||