1 | @charset "UTF-8"; |
---|
2 | /* -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
3 | # This file is part of Ductile, a theme for Dotclear |
---|
4 | # |
---|
5 | # Copyright (c) 2011 - Association Dotclear |
---|
6 | # Licensed under the GPL version 2.0 license. |
---|
7 | # See LICENSE file or |
---|
8 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
9 | # |
---|
10 | # -- END LICENSE BLOCK ----------------------------------------- */ |
---|
11 | |
---|
12 | /* seuils retenus : |
---|
13 | < 480px: tout en une colonne, sidebar et stickers en bas |
---|
14 | > 480px: stickers en haut |
---|
15 | > 640px: sidebar toujours en bas mais divisé en deux colonnes |
---|
16 | > 1024px: passage à deux colonnes, sidebar à droite |
---|
17 | > 1280px: décalage du post-info vers la gauche |
---|
18 | > 1600px: marges plus grandes */ |
---|
19 | |
---|
20 | /* -------------------------------------------------------------------- |
---|
21 | Moins de 480px (téléphones) |
---|
22 | -------------------------------------------------------------------- */ |
---|
23 | @media only screen and (max-width:480px) { |
---|
24 | .nosmall { |
---|
25 | display: none !important; |
---|
26 | } |
---|
27 | h1 { |
---|
28 | font-size: 1.8em; |
---|
29 | } |
---|
30 | h1 a { |
---|
31 | display: block; |
---|
32 | padding: 6px 8px; |
---|
33 | background: #f4f4f5; |
---|
34 | background-image: -webkit-gradient(linear, left top, left bottom, from( #f4f4f5), to(#d7d7dC)); |
---|
35 | background: -webkit-linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
36 | background: -moz-linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
37 | background: -o-linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
38 | background: -ms-linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
39 | background: linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
40 | border-right: 1px solid #aaa; |
---|
41 | border-bottom: 1px solid #ccc; |
---|
42 | } |
---|
43 | .supranav, #prelude { |
---|
44 | border: none; |
---|
45 | margin: 8px 0 0; |
---|
46 | background: #fff; |
---|
47 | padding-left: 0; |
---|
48 | } |
---|
49 | .supranav li a, #prelude li a { |
---|
50 | border-right: 0; |
---|
51 | display: block; |
---|
52 | padding: 4px 8px; |
---|
53 | border-bottom: 1px solid #ccc; |
---|
54 | text-decoration: none; |
---|
55 | white-space: nowrap; |
---|
56 | margin-bottom: 4px; |
---|
57 | } |
---|
58 | #gotop li { |
---|
59 | border-top: 1px solid #ccc; |
---|
60 | text-transform: none; |
---|
61 | padding-top: 6px; |
---|
62 | } |
---|
63 | #prelude { |
---|
64 | margin: .5em 0 !important; |
---|
65 | } |
---|
66 | #prelude li a { |
---|
67 | background: transparent url(img/menumobile.png) no-repeat right center; |
---|
68 | } |
---|
69 | #sn-bottom li a { |
---|
70 | background: transparent url(img/menumobile.png) no-repeat right top; |
---|
71 | } |
---|
72 | #gotop li a { |
---|
73 | background: transparent url(img/menumobile.png) no-repeat right -150px; |
---|
74 | } |
---|
75 | .post-title { |
---|
76 | font-size: 1.5em; |
---|
77 | font-weight: bold; |
---|
78 | font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; |
---|
79 | } |
---|
80 | .post-title a { |
---|
81 | font-style: normal; |
---|
82 | font-weight: bold; |
---|
83 | } |
---|
84 | #other-criteria .arch-block, #more-criteria .arch-block { |
---|
85 | margin-left: 0 !important; |
---|
86 | } |
---|
87 | #stickers { |
---|
88 | margin: 0; |
---|
89 | padding: 0; |
---|
90 | border-bottom: 1px solid #fff; |
---|
91 | } |
---|
92 | #stickers li { |
---|
93 | position: relative; |
---|
94 | padding: .5em 0; |
---|
95 | margin-left: 0; |
---|
96 | border-style: solid; |
---|
97 | border-width: 1px 0 0 0; |
---|
98 | overflow: hidden; |
---|
99 | } |
---|
100 | #stickers img { |
---|
101 | position: absolute; |
---|
102 | top: -2px; |
---|
103 | clip: rect(0 32px 36px 0); |
---|
104 | clip: rect(0, 32px, 36px, 0); |
---|
105 | } |
---|
106 | #stickers span { |
---|
107 | margin-left: 40px; |
---|
108 | } |
---|
109 | #stickers a { |
---|
110 | text-decoration: none; |
---|
111 | } |
---|
112 | ul, ol, dd { |
---|
113 | padding: 0; |
---|
114 | } |
---|
115 | } |
---|
116 | |
---|
117 | /* -------------------------------------------------------------------- |
---|
118 | Autres (plus de 480px) |
---|
119 | -------------------------------------------------------------------- */ |
---|
120 | @media only screen and (min-width: 481px) { |
---|
121 | .nobig { |
---|
122 | display: none; |
---|
123 | } |
---|
124 | #prelude { |
---|
125 | position: absolute; |
---|
126 | margin: 0; |
---|
127 | padding: 0 0 0 4px; |
---|
128 | top: 0; |
---|
129 | left: 3px; |
---|
130 | color: #fff; |
---|
131 | list-style-type: none; |
---|
132 | } |
---|
133 | #prelude li { |
---|
134 | display: inline; |
---|
135 | text-transform: none !important; |
---|
136 | } |
---|
137 | #prelude a, #prelude a:hover, #prelude a:visited { |
---|
138 | position:absolute; |
---|
139 | left:0; |
---|
140 | top:-500px; |
---|
141 | width:1px; |
---|
142 | height:1px; |
---|
143 | overflow:hidden; |
---|
144 | background-image: none !important; |
---|
145 | } |
---|
146 | #prelude a:active, #prelude a:focus { |
---|
147 | position:static; |
---|
148 | width:auto; |
---|
149 | height:auto; |
---|
150 | } |
---|
151 | #top { |
---|
152 | padding-top: 24px; |
---|
153 | } |
---|
154 | #logo { |
---|
155 | float:left; |
---|
156 | margin: 0 32px 0 24px; |
---|
157 | } |
---|
158 | #logo a { |
---|
159 | border: none; |
---|
160 | background: transparent; |
---|
161 | text-decoration: none; |
---|
162 | } |
---|
163 | h1 { |
---|
164 | font-size: 2em; |
---|
165 | padding-right: 240px; |
---|
166 | padding-bottom: 4px; |
---|
167 | margin-left: 32px; |
---|
168 | } |
---|
169 | #sn-bottom { |
---|
170 | display: none; |
---|
171 | } |
---|
172 | .supranav { |
---|
173 | margin: 36px 0 0; |
---|
174 | border-bottom: 1px solid #ccc; |
---|
175 | padding: 0 0 0 4px; |
---|
176 | } |
---|
177 | .supranav li { |
---|
178 | display: inline; |
---|
179 | padding: 8px 0; |
---|
180 | } |
---|
181 | .supranav li a { |
---|
182 | display: inline-block; |
---|
183 | vertical-align: top; |
---|
184 | padding: 8px 32px 8px 28px; |
---|
185 | border-right: 1px solid #ccc; |
---|
186 | min-height: 2.5em; |
---|
187 | -moz-border-radius: 0 0 0 7px; |
---|
188 | -webkit-border-radius: 0 0 0 7px; |
---|
189 | border-radius: 0 0 0 7px; |
---|
190 | } |
---|
191 | .supranav li a span { |
---|
192 | display: block; |
---|
193 | } |
---|
194 | .post-title { |
---|
195 | font-size: 2.5em; |
---|
196 | font-weight: normal; |
---|
197 | } |
---|
198 | .post-title a { |
---|
199 | font-style: italic; |
---|
200 | font-weight: normal; |
---|
201 | } |
---|
202 | #stickers { |
---|
203 | position: absolute; |
---|
204 | top: 0; |
---|
205 | right: 0; |
---|
206 | padding-right: 3%; |
---|
207 | font-size: .75em; |
---|
208 | } |
---|
209 | #stickers li { |
---|
210 | display: block; |
---|
211 | float: left; |
---|
212 | text-align: center; |
---|
213 | width: 60px; |
---|
214 | padding: 0; |
---|
215 | } |
---|
216 | #stickers span { |
---|
217 | display: block; |
---|
218 | text-align: center; |
---|
219 | position: absolute; |
---|
220 | top: -500px; |
---|
221 | } |
---|
222 | #stickers a:hover, #stickers a:focus { |
---|
223 | background: #fff !important; |
---|
224 | } |
---|
225 | #stickers a:hover span, #stickers a:focus span { |
---|
226 | color: #686867; |
---|
227 | position: static; |
---|
228 | top: 0; |
---|
229 | } |
---|
230 | .comment-info { |
---|
231 | clear: left; |
---|
232 | float: left; |
---|
233 | width: 10em; |
---|
234 | } |
---|
235 | .comment-content { |
---|
236 | margin-left: 11.5em; |
---|
237 | } |
---|
238 | } |
---|
239 | |
---|
240 | /* ------------------------------------------------------ special redimensionnement paysage */ |
---|
241 | @media screen and (max-width:640px) and (orientation: landscape) { |
---|
242 | body { |
---|
243 | -webkit-text-size-adjust: 70%; |
---|
244 | } |
---|
245 | } |
---|
246 | |
---|
247 | /* ------------------------------------------------------ règles communes < 640px */ |
---|
248 | @media only screen and (max-width:639px) { |
---|
249 | body { |
---|
250 | -webkit-text-size-adjust: none; |
---|
251 | } |
---|
252 | #wrapper { |
---|
253 | padding: 0 2%; |
---|
254 | } |
---|
255 | img { |
---|
256 | max-width: 97%; |
---|
257 | height: auto; |
---|
258 | width: auto\9; /* pour ie8 */ |
---|
259 | } |
---|
260 | } |
---|
261 | |
---|
262 | /* ------------------------------------------------------ spécifique 640px à 1024px */ |
---|
263 | @media only screen and (min-width: 640px) and (max-width: 1023px) { |
---|
264 | #wrapper { |
---|
265 | padding: 0 10%; |
---|
266 | } |
---|
267 | #blognav, #blogextra { |
---|
268 | width: 48%; float:left; |
---|
269 | } |
---|
270 | #blognav { |
---|
271 | margin-right: 4%; |
---|
272 | } |
---|
273 | #stickers { |
---|
274 | padding-right: 10%; |
---|
275 | } |
---|
276 | } |
---|
277 | |
---|
278 | /* ------------------------------------------------------ spécifique 840px à 1024px */ |
---|
279 | @media only screen and (min-width: 840px) and (max-width: 1023px) { |
---|
280 | #wrapper { |
---|
281 | padding: 0 13%; |
---|
282 | } |
---|
283 | #stickers { |
---|
284 | padding-right: 13%; |
---|
285 | } |
---|
286 | } |
---|
287 | |
---|
288 | /* ------------------------------------------------------ |
---|
289 | au-delà de 1024px on passe à deux colonnes |
---|
290 | ------------------------------------------------------ */ |
---|
291 | @media only screen and (min-width: 1024px) { |
---|
292 | #wrapper { |
---|
293 | padding: 0 7%; |
---|
294 | } |
---|
295 | #main { |
---|
296 | width : 100%; |
---|
297 | margin : 0 -17em 0 0; |
---|
298 | float : left; |
---|
299 | display: inline; |
---|
300 | } |
---|
301 | #content { |
---|
302 | margin : 0 20em 0 0; |
---|
303 | padding : 0 0 2em 0; |
---|
304 | } |
---|
305 | #sidebar { |
---|
306 | width : 17em; |
---|
307 | float : right; |
---|
308 | } |
---|
309 | #blognav, #blogextra { |
---|
310 | margin : 0; |
---|
311 | } |
---|
312 | #stickers { |
---|
313 | padding-right: 7%; |
---|
314 | } |
---|
315 | #sidebar #blognav div:first-child { |
---|
316 | margin-top: 4.66em; |
---|
317 | } |
---|
318 | #sidebar div#search:first-child { |
---|
319 | background: none; |
---|
320 | margin-top: 0; |
---|
321 | margin-bottom: 2em; |
---|
322 | padding-bottom: 2px; |
---|
323 | font-size: 1em; |
---|
324 | border: 1px solid #ddd; |
---|
325 | border-top: none 0; |
---|
326 | } |
---|
327 | #sidebar div#search:first-child h2 { |
---|
328 | font-size: 1em; |
---|
329 | text-transform: uppercase; |
---|
330 | text-shadow: 0 1px 1px rgba(0,0,0,.2); |
---|
331 | vertical-align: top; |
---|
332 | color: #666; |
---|
333 | } |
---|
334 | #sidebar div#search:first-child p { |
---|
335 | margin: .33em 0; |
---|
336 | } |
---|
337 | .dc-archive #content { |
---|
338 | margin: 0 17em 0 0; |
---|
339 | } |
---|
340 | } |
---|
341 | |
---|
342 | /* ------------------------------------------------------ |
---|
343 | au-delà de 1280px on décale le post-info à gauche |
---|
344 | ------------------------------------------------------- */ |
---|
345 | @media only screen and (min-width: 1280px) { |
---|
346 | #content { |
---|
347 | margin : 0 20em 0 220px; |
---|
348 | } |
---|
349 | .full .post-attr, |
---|
350 | .simple .post-attr { |
---|
351 | margin-left: -220px; |
---|
352 | margin-top: 0; |
---|
353 | float: left; |
---|
354 | width: 180px; |
---|
355 | text-align: right; |
---|
356 | } |
---|
357 | .post-attr a, .post-info, .post-tags { |
---|
358 | padding-right: 0 !important; |
---|
359 | } |
---|
360 | #content-info, .navlinks, .pagination { |
---|
361 | margin-left: -220px !important; |
---|
362 | } |
---|
363 | .dc-archive #content-info { |
---|
364 | margin-left: 0 !important; |
---|
365 | } |
---|
366 | #content-info a.feed { |
---|
367 | white-space: nowrap; |
---|
368 | } |
---|
369 | } |
---|
370 | |
---|
371 | /* ------------------------------------------------------ au-delà de 1600px */ |
---|
372 | @media only screen and (min-width: 1600px) { |
---|
373 | #wrapper { |
---|
374 | padding: 0 10%; |
---|
375 | } |
---|
376 | #stickers { |
---|
377 | padding-right: 10%; |
---|
378 | } |
---|
379 | } |
---|