summaryrefslogtreecommitdiff
path: root/main.css
diff options
context:
space:
mode:
Diffstat (limited to 'main.css')
-rw-r--r--main.css221
1 files changed, 221 insertions, 0 deletions
diff --git a/main.css b/main.css
new file mode 100644
index 0000000..d9d7328
--- /dev/null
+++ b/main.css
@@ -0,0 +1,221 @@
1body
2{
3 font-size: 100%;
4 font-family: sans;
5 /* pour enlever la bande de la couleur du fond en haut et en bas de la page */
6 margin: 0;
7 background-color: #F0EC41;
8}
9
10#bloc_page
11{
12 max-width: 1200px;
13 /* la largeur max indiquée sert à réduire la variété des largeurs d'écran à prendre en compte */
14 margin: auto;
15 padding: 0 20px 30px 20px;
16 background-color: white;
17}
18
19h1
20{
21 font-weight: normal;
22 display: inline-block;
23 margin: 5px;
24 border: 2px #008100 solid;
25 border-radius: 12px;
26 padding: 3px;
27 background-color: #F4F02D;
28 font-size: 120%;
29}
30
31p
32{
33 margin: 10px;
34}
35
36a
37{
38 color: black;
39 /* les liens déjà cliqués restent noirs */
40}
41
42a:hover /* liens survolés par la souris */
43{
44 color: #004F00;
45}
46
47a:hover
48{
49 font-weight: bold;
50}
51
52/* En-tête. */
53header
54{
55 background-color: white;
56 display: flex;
57 flex-direction: column;
58 align-items: center;
59 margin-bottom: 20px;
60}
61
62header div, header p
63{
64 margin-top: 5px;
65}
66
67#logohaut
68{
69 width: 200px;
70
71 /* cacher petit logo */
72 display: none;
73}
74
75#logotitre
76{
77 height: 90px;
78}
79
80/* Menu de navigation. */
81nav
82{
83 position: fixed;
84 z-index: 2; /* pour être dessus des prestations */
85 text-align: center;
86}
87
88nav a
89{
90 display: inline-block; /* menu horizontal */
91 border: 2px #008100 solid;
92 border-radius: 12px;
93 padding: 3px;
94 margin: 2px;
95 background-color: #F4F02D;
96 font-size: 110%;
97 text-decoration: none;
98}
99
100/* "vous êtes ici" */
101#actuelle
102{
103 color: #004F00;
104 border: 3px #004F00 solid;
105}
106
107/* Corps de page. */
108article
109{
110 margin-left: 20px;
111}
112
113.photo
114{
115 border: 2px #008100 solid;
116 border-radius: 10px;
117}
118
119h3
120{
121 margin: 10px;
122 border: 2px #008100 solid;
123 border-radius: 12px;
124 padding: 3px;
125 text-align: center;
126 font-size: 100%;
127 background-color: white;
128}
129
130h3 a
131{
132 text-decoration: none;
133}
134
135
136caption span
137{
138 font-size: 110%;
139 text-decoration: underline;
140}
141
142caption i
143{
144 font-size: 90%;
145}
146
147pre
148{
149 font-family: sans-serif;
150 font-size: 90%;
151 white-space: pre-wrap;
152 margin: 0 10px 10px 10px;
153 padding: 4px;
154 background-color: #f0f0f0;
155}
156
157a img
158{
159 border: none;
160 /* retire la bordure bleue sur certains navigateurs */
161}
162
163/* lien fixe en bas */
164footer
165{
166 display: flex;
167 flex-direction: column;
168 align-items: center;
169}
170
171footer h1
172{
173 position: fixed;
174 bottom: 0;
175 margin: 2px; /* de 5 par défaut */
176 text-align: center;
177}
178footer a
179{
180 text-decoration: none;
181}
182
183/* design responsive */
184@media screen and (max-width: 710px)
185{
186 nav a
187 {
188 font-size: 100%;
189 }
190
191 h1
192 {
193 font-size: 110%;
194 }
195
196 textarea
197 {
198 width: 400px;
199 height: 150px;
200 }
201}
202
203@media screen and (max-width: 500px)
204{
205 #logohaut
206 {
207 /* afficher petit logo */
208 display: inline;
209 }
210 #logotitre
211 {
212 /* cacher grand logo */
213 display: none;
214 }
215
216 textarea
217 {
218 width: 270px;
219 height: 100px;
220 }
221}