diff options
author | polo <ordipolo@gmx.fr> | 2021-08-10 02:11:20 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2021-08-10 02:13:54 +0200 |
commit | 48e4b0bf8796dcd6a80c8f443a31832c512424fd (patch) | |
tree | 06b639e0226f5896285d3cd8292b969dfa90508b /public | |
parent | 86c2a611e55c9e35384febecf34964e214c0296e (diff) | |
download | melaine-48e4b0bf8796dcd6a80c8f443a31832c512424fd.zip |
disco
Diffstat (limited to 'public')
-rw-r--r-- | public/discographie.css | 202 | ||||
-rw-r--r-- | public/main.js | 15 | ||||
-rw-r--r-- | public/melaine.css | 55 |
3 files changed, 217 insertions, 55 deletions
diff --git a/public/discographie.css b/public/discographie.css new file mode 100644 index 0000000..326cfbb --- /dev/null +++ b/public/discographie.css | |||
@@ -0,0 +1,202 @@ | |||
1 | /* public/discographie.css */ | ||
2 | |||
3 | .police_titre | ||
4 | { | ||
5 | color: #c9a068; | ||
6 | } | ||
7 | |||
8 | #multicolonnes | ||
9 | { | ||
10 | /*display: flex;*/ | ||
11 | } | ||
12 | |||
13 | aside | ||
14 | { | ||
15 | display: flex; | ||
16 | flex-direction: column; | ||
17 | align-items: flex-end; | ||
18 | font-size: 80%; | ||
19 | font-family: 'Monospace'; | ||
20 | /*margin-right: 10px;*/ | ||
21 | /*position: absolute;*/ | ||
22 | } | ||
23 | |||
24 | aside div | ||
25 | { | ||
26 | position: absolute; | ||
27 | } | ||
28 | |||
29 | #bouton_chronologie | ||
30 | { | ||
31 | width: 200px; | ||
32 | text-align: center; | ||
33 | font-size: large; | ||
34 | font-weight: bold; | ||
35 | /*text-decoration: underline;*/ | ||
36 | /*border: 1px red solid;*/ | ||
37 | margin: 13px 0 0 0; | ||
38 | } | ||
39 | |||
40 | #chronologie | ||
41 | { | ||
42 | width: 200px; | ||
43 | font-weight: bold; | ||
44 | /*padding: 5px;*/ | ||
45 | display: none; | ||
46 | z-index: 1; /* placer le menu déroulant au dessus */ | ||
47 | background-color: #9fa8d0; | ||
48 | } | ||
49 | |||
50 | #chronologie p | ||
51 | { | ||
52 | margin: 8px; | ||
53 | } | ||
54 | |||
55 | /* PC uniquement, pour les smartphones prévoir un clic | ||
56 | => :checked et une checkbox | ||
57 | => ou la balise select qui crée un menu déroulant */ | ||
58 | aside:hover #chronologie | ||
59 | { | ||
60 | display: block; | ||
61 | } | ||
62 | |||
63 | section | ||
64 | { | ||
65 | /*border: 1px red solid;*/ | ||
66 | } | ||
67 | |||
68 | h3 | ||
69 | { | ||
70 | margin-top: 45px; | ||
71 | } | ||
72 | |||
73 | form p | ||
74 | { | ||
75 | margin: 0px; | ||
76 | } | ||
77 | |||
78 | input | ||
79 | { | ||
80 | margin: 2px 0; | ||
81 | } | ||
82 | |||
83 | .boutonAlbum | ||
84 | { | ||
85 | margin-top: 45px; | ||
86 | padding-bottom: 20px; | ||
87 | border-bottom: 1px black solid; | ||
88 | } | ||
89 | .boutonAlbum a | ||
90 | { | ||
91 | padding: 2px; | ||
92 | border: 4px black groove; | ||
93 | } | ||
94 | |||
95 | article | ||
96 | { | ||
97 | margin: 5px 0px; | ||
98 | } | ||
99 | |||
100 | figure | ||
101 | { | ||
102 | margin: 0px; | ||
103 | display: inline-block; | ||
104 | } | ||
105 | |||
106 | figcaption | ||
107 | { | ||
108 | margin: 2px; | ||
109 | color: #666; | ||
110 | font-size: small; | ||
111 | font-weight: bold; | ||
112 | text-align: center; | ||
113 | } | ||
114 | |||
115 | a | ||
116 | { | ||
117 | |||
118 | display: inline-block; | ||
119 | } | ||
120 | |||
121 | article a:hover | ||
122 | { | ||
123 | border: 2px blue solid; | ||
124 | } | ||
125 | |||
126 | |||
127 | a:hover figure figcaption | ||
128 | { | ||
129 | text-decoration: underline; | ||
130 | } | ||
131 | |||
132 | @media screen and (min-width: 700px) | ||
133 | { | ||
134 | #titre | ||
135 | { | ||
136 | width: 630px; | ||
137 | height: 171px; | ||
138 | background-image: url("mouette.png"); | ||
139 | } | ||
140 | |||
141 | #contenu | ||
142 | { | ||
143 | position: relative; | ||
144 | bottom: 35px; | ||
145 | } | ||
146 | } | ||
147 | |||
148 | @media screen and (max-width: 699px) | ||
149 | { | ||
150 | #titre | ||
151 | { | ||
152 | width: 480px; | ||
153 | height: 131px; | ||
154 | background-image: url("mouette_petit.png"); | ||
155 | margin: auto; | ||
156 | } | ||
157 | |||
158 | #contenu | ||
159 | { | ||
160 | position: relative; | ||
161 | bottom: 24px; | ||
162 | } | ||
163 | } | ||
164 | |||
165 | @media screen and (max-width: 479px) | ||
166 | { | ||
167 | #titre | ||
168 | { | ||
169 | width: 320px; | ||
170 | height: 88px; | ||
171 | background-image: url("mouette_mini.png"); | ||
172 | margin: auto; | ||
173 | } | ||
174 | |||
175 | #multicolonnes | ||
176 | { | ||
177 | flex-direction: column; | ||
178 | } | ||
179 | |||
180 | aside | ||
181 | { | ||
182 | width: 320px; | ||
183 | } | ||
184 | |||
185 | #chronologie | ||
186 | { | ||
187 | display: flex; | ||
188 | |||
189 | } | ||
190 | |||
191 | #chronologie p | ||
192 | { | ||
193 | max-width: 80px; | ||
194 | margin: 2px; | ||
195 | } | ||
196 | |||
197 | #contenu | ||
198 | { | ||
199 | position: relative; | ||
200 | bottom: 15px; | ||
201 | } | ||
202 | } | ||
diff --git a/public/main.js b/public/main.js index d4fb43a..1c04dec 100644 --- a/public/main.js +++ b/public/main.js | |||
@@ -1,6 +1,6 @@ | |||
1 | // public/main.js | 1 | // public/main.js |
2 | 2 | ||
3 | function accueil_vers_menu() | 3 | function versMenu() |
4 | { | 4 | { |
5 | // ergonomique | 5 | // ergonomique |
6 | window.setTimeout("location=('index.php?page=menu');", 10000); | 6 | window.setTimeout("location=('index.php?page=menu');", 10000); |
@@ -15,6 +15,19 @@ function deconnexionAutomatique() | |||
15 | //window.setTimeout("location=('index.php?action=deconnexion');", 600000); | 15 | //window.setTimeout("location=('index.php?action=deconnexion');", 600000); |
16 | } | 16 | } |
17 | 17 | ||
18 | // fonction appelée avec onClick dans un lien, | ||
19 | // si on sélectionne pas "oui", on ne doit pas suivre le lien | ||
20 | // si javascript est désactivé, le lien fonctionne | ||
21 | function confirmerSuppression(page) | ||
22 | { | ||
23 | // ne suivre le lien "href" que si on clique sur oui | ||
24 | var oui = confirm('Confirmer la suppression de cet article.'); | ||
25 | if(!oui) | ||
26 | { | ||
27 | event.preventDefault(); | ||
28 | } | ||
29 | } | ||
30 | |||
18 | // bouton "mailto", le visiteur ne quitte pas la page | 31 | // bouton "mailto", le visiteur ne quitte pas la page |
19 | function clientCourriel() | 32 | function clientCourriel() |
20 | { | 33 | { |
diff --git a/public/melaine.css b/public/melaine.css index 97872da..9736147 100644 --- a/public/melaine.css +++ b/public/melaine.css | |||
@@ -18,7 +18,7 @@ pre | |||
18 | 18 | ||
19 | figure | 19 | figure |
20 | { | 20 | { |
21 | margin: 5px; | 21 | /*margin: 5px;*/ |
22 | } | 22 | } |
23 | .boutonArticle | 23 | .boutonArticle |
24 | { | 24 | { |
@@ -106,56 +106,3 @@ figure | |||
106 | max-width: 320px; | 106 | max-width: 320px; |
107 | } | 107 | } |
108 | } | 108 | } |
109 | |||
110 | |||
111 | /* CONTENU */ | ||
112 | |||
113 | /*.article1_elem1 | ||
114 | { | ||
115 | color: #2e5487; | ||
116 | font-size: 150%; | ||
117 | } | ||
118 | |||
119 | .article1_elem2 | ||
120 | { | ||
121 | color: #006ffd; | ||
122 | font-size: 90%; | ||
123 | font-weight: bold; | ||
124 | } | ||
125 | |||
126 | .article7_elem1 | ||
127 | { | ||
128 | color: #141aff; | ||
129 | } | ||
130 | |||
131 | .article8_elem1 | ||
132 | { | ||
133 | color: #141aff; | ||
134 | } | ||
135 | |||
136 | .article9_elem1 | ||
137 | { | ||
138 | color: #2a5971; | ||
139 | } | ||
140 | |||
141 | .article10_elem1 | ||
142 | { | ||
143 | color: #ad8b15; | ||
144 | } | ||
145 | |||
146 | .article10_elem2 | ||
147 | { | ||
148 | color: #ad240a; | ||
149 | } | ||
150 | |||
151 | .article11_elem1 | ||
152 | { | ||
153 | color: #ad8b15; | ||
154 | } | ||
155 | |||
156 | .article12_elem1 | ||
157 | { | ||
158 | color: #2878aa; | ||
159 | font-size: 125%; | ||
160 | font-weight: normal; | ||
161 | }*/ \ No newline at end of file | ||