diff options
Diffstat (limited to 'public/css')
-rw-r--r-- | public/css/body.css | 6 | ||||
-rw-r--r-- | public/css/head.css | 33 | ||||
-rw-r--r-- | public/css/nav.css | 60 |
3 files changed, 93 insertions, 6 deletions
diff --git a/public/css/body.css b/public/css/body.css index c3f518a..a03510f 100644 --- a/public/css/body.css +++ b/public/css/body.css | |||
@@ -67,8 +67,12 @@ section > h3 | |||
67 | grid-template-columns: repeat(2, 1fr); | 67 | grid-template-columns: repeat(2, 1fr); |
68 | } | 68 | } |
69 | } | 69 | } |
70 | @media screen and (max-width: 550px) | 70 | @media screen and (max-width: 600px) |
71 | { | 71 | { |
72 | article | ||
73 | { | ||
74 | /*margin: 5px;*/ | ||
75 | } | ||
72 | .grid_columns | 76 | .grid_columns |
73 | { | 77 | { |
74 | display: block; | 78 | display: block; |
diff --git a/public/css/head.css b/public/css/head.css index a55449a..be938bb 100644 --- a/public/css/head.css +++ b/public/css/head.css | |||
@@ -3,7 +3,6 @@ header | |||
3 | text-align: center; | 3 | text-align: center; |
4 | /*padding-top: 5px;*/ | 4 | /*padding-top: 5px;*/ |
5 | /*padding-bottom: 10px;*/ | 5 | /*padding-bottom: 10px;*/ |
6 | background-image: url('../assets/fond-piscine.jpg'); | ||
7 | background-size: cover; /* largeur du bloc_page */ | 6 | background-size: cover; /* largeur du bloc_page */ |
8 | } | 7 | } |
9 | #nav_zone | 8 | #nav_zone |
@@ -14,14 +13,35 @@ header | |||
14 | /*align-items: center;*/ /* conflit possible avec .social align-self */ | 13 | /*align-items: center;*/ /* conflit possible avec .social align-self */ |
15 | justify-content: center; | 14 | justify-content: center; |
16 | } | 15 | } |
16 | .nav_button{ | ||
17 | display: none; | ||
18 | } | ||
17 | 19 | ||
18 | .header-content | 20 | .header-content |
19 | { | 21 | { |
20 | padding: 20px 0; | 22 | padding: 20px 0; |
21 | display: grid; | 23 | display: grid; |
22 | grid-template-columns: repeat(3, 1fr); | 24 | grid-template-columns: 1fr 1fr 1fr; |
23 | align-items: end; | 25 | align-items: end; |
24 | } | 26 | } |
27 | @media screen and (max-width: 1000px){ | ||
28 | .header-content{ | ||
29 | padding: 18px 0; | ||
30 | } | ||
31 | } | ||
32 | @media screen and (max-width: 450px){ | ||
33 | .header-content | ||
34 | { | ||
35 | /*grid-template-columns: 1fr 2fr 1fr;*/ | ||
36 | display: block; | ||
37 | padding: 18px; | ||
38 | } | ||
39 | .head_logo | ||
40 | { | ||
41 | display: none; | ||
42 | } | ||
43 | } | ||
44 | |||
25 | .site_title | 45 | .site_title |
26 | { | 46 | { |
27 | background-color: #ffffff7f; | 47 | background-color: #ffffff7f; |
@@ -37,6 +57,12 @@ header h2 | |||
37 | font-size: medium; /* défaut = x-large */ | 57 | font-size: medium; /* défaut = x-large */ |
38 | margin: 10px; | 58 | margin: 10px; |
39 | } | 59 | } |
60 | @media screen and (max-width: 1000px){ | ||
61 | header h1, header h2 | ||
62 | { | ||
63 | margin: 8px; | ||
64 | } | ||
65 | } | ||
40 | header img | 66 | header img |
41 | { | 67 | { |
42 | vertical-align: bottom; /* supprime espace sous l'image */ | 68 | vertical-align: bottom; /* supprime espace sous l'image */ |
@@ -50,7 +76,8 @@ header a | |||
50 | } | 76 | } |
51 | .social | 77 | .social |
52 | { | 78 | { |
53 | align-self: end; | 79 | /*align-self: end;*/ |
80 | /*padding: 4px;*/ | ||
54 | } | 81 | } |
55 | .social img | 82 | .social img |
56 | { | 83 | { |
diff --git a/public/css/nav.css b/public/css/nav.css index 3ccdb1f..17b30c9 100644 --- a/public/css/nav.css +++ b/public/css/nav.css | |||
@@ -1,7 +1,8 @@ | |||
1 | /*-- menu principal --*/ | 1 | /*-- menu principal --*/ |
2 | #nav_zone | 2 | #nav_zone |
3 | { | 3 | { |
4 | height: 33px; | 4 | /*height: 33px;*/ |
5 | /*width: 100%;*/ | ||
5 | } | 6 | } |
6 | .nav_main | 7 | .nav_main |
7 | { | 8 | { |
@@ -121,11 +122,13 @@ li:not(.current){ | |||
121 | nav > ul > li > ul | 122 | nav > ul > li > ul |
122 | { | 123 | { |
123 | position: absolute; /* retire du flux, positionnement par rapport à la fenêtre */ | 124 | position: absolute; /* retire du flux, positionnement par rapport à la fenêtre */ |
125 | margin-left: -7px; /* annuler le déplacement dû au padding: 7px; dans ".nav_main li" */ | ||
126 | margin-top: 7px; | ||
124 | } | 127 | } |
125 | /* élément du menu survolé, le positionnement relatif en fait la référence du positionnement suivant */ | 128 | /* élément du menu survolé, le positionnement relatif en fait la référence du positionnement suivant */ |
126 | .drop-right | 129 | .drop-right |
127 | { | 130 | { |
128 | position: relative; | 131 | /*position: relative;*/ |
129 | } | 132 | } |
130 | .drop-right .sub-menu | 133 | .drop-right .sub-menu |
131 | { | 134 | { |
@@ -133,3 +136,56 @@ nav > ul > li > ul | |||
133 | left: 100%; | 136 | left: 100%; |
134 | top: -3px; /* la bordure bleue fait 3px */ | 137 | top: -3px; /* la bordure bleue fait 3px */ |
135 | } | 138 | } |
139 | |||
140 | @media screen and (max-width: 1000px){ | ||
141 | #nav_zone | ||
142 | { | ||
143 | /*height: 29px;*/ | ||
144 | } | ||
145 | .nav_main li | ||
146 | { | ||
147 | padding: 5px; | ||
148 | } | ||
149 | .nav_main p | ||
150 | { | ||
151 | /*font-size: smaller;*/ | ||
152 | font-size: 90%; | ||
153 | } | ||
154 | nav > ul > li > ul | ||
155 | { | ||
156 | margin-left: -5px; | ||
157 | margin-top: 5px; | ||
158 | } | ||
159 | } | ||
160 | @media screen and (max-width: 450px){ | ||
161 | .nav_button | ||
162 | { | ||
163 | /*display: block;*/ | ||
164 | } | ||
165 | #nav_zone | ||
166 | { | ||
167 | /*position: fixed; | ||
168 | justify-content: left;*/ | ||
169 | } | ||
170 | .nav_main | ||
171 | { | ||
172 | /*top: 0px;*/ | ||
173 | } | ||
174 | .nav_main > ul | ||
175 | { | ||
176 | /*flex-direction: column;*/ | ||
177 | } | ||
178 | .nav_main li | ||
179 | { | ||
180 | /**/ | ||
181 | } | ||
182 | .sub-menu p | ||
183 | { | ||
184 | font-size: smaller; | ||
185 | } | ||
186 | .drop-down > .sub-menu | ||
187 | { | ||
188 | /*flex-direction: row;*/ | ||
189 | /*position: static;*/ | ||
190 | } | ||
191 | } \ No newline at end of file | ||