Dotclear

source: themes/ductile/mediaqueries.css @ 2566:9bf417837888

Revision 2566:9bf417837888, 8.1 KB checked in by franck <carnet.franck.paul@…>, 12 years ago (diff)

Add some people in CREDITS, remove trailing spaces and tabs.

Line 
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     .post ul, .post ol, .post dd {
116          margin-left: 1em !important;
117          }
118}
119
120/* --------------------------------------------------------------------
121     Autres (plus de 480px)
122-------------------------------------------------------------------- */
123@media only screen and (min-width: 481px) {
124     .nobig {
125          display: none;
126          }
127     #prelude {
128          position: absolute;
129          margin: 0;
130          padding: 0 0 0 4px;
131          top: 0;
132          left: 3px;
133          color: #fff;
134          list-style-type: none;
135          }
136     #prelude li {
137          display: inline;
138          text-transform: none !important;
139          }
140     #prelude a, #prelude a:hover, #prelude a:visited {
141          position:absolute;
142          left:0;
143          top:-500px;
144          width:1px;
145          height:1px;
146          overflow:hidden;
147          background-image: none !important;
148          }
149     #prelude a:active, #prelude a:focus {
150          position:static;
151          width:auto;
152          height:auto;
153          }
154     #top {
155          padding-top: 24px;
156          }
157     #logo {
158          float:left;
159          margin: 0 32px 0 24px;
160          }
161     #logo a {
162          border: none;
163          background: transparent;
164          text-decoration: none;
165          }
166     h1 {
167          font-size: 2em;
168          padding-right: 240px;
169          padding-bottom: 4px;
170          margin-left: 32px;
171          }
172     #sn-bottom {
173          display: none;
174          }
175     .supranav {
176          margin: 36px 0 0;
177          border-bottom: 1px solid #ccc;
178          padding: 0 0 0 4px;
179          }
180     .supranav li {
181          display: inline;
182          padding: 8px 0;
183          padding-left: 4px;
184          }
185     .supranav li a {
186          display: inline-block;
187          vertical-align: top;
188          padding: 8px 32px 8px 28px;
189          border-right: 1px solid #ccc;
190          min-height: 2.5em;
191          border-radius: 0 0 0 4px;
192          }
193     .supranav li a span {
194          display: block;
195          }
196     .post-title {
197          font-size: 2.5em;
198          font-weight: normal;
199          }
200     .post-title a {
201          font-style: italic;
202          font-weight: normal;
203          }
204     #blogcustom {
205          padding: 0 1em;
206          }
207     #stickers {
208          position: absolute;
209          top: 0;
210          right: 0;
211          padding-right: 3%;
212          font-size: .75em;
213          }
214     #stickers li {
215          display: block;
216          float: left;
217          text-align: center;
218          width: 60px;
219          padding: 0;
220          }
221     #stickers span {
222          display: block;
223          text-align: center;
224          position: absolute;
225          top: -500px;
226          }
227     #stickers a:hover, #stickers a:focus {
228          background: #fff !important;
229          }
230     #stickers a:hover span, #stickers a:focus span {
231          color: #686867;
232          position: static;
233          top: 0;
234          }
235     .comment-info {
236          clear: left;
237          float: left;
238          width: 10em;
239          }
240     .comment-content {
241          margin-left: 11.5em;
242          }
243}
244
245/* ------------------------------------------------------ special redimensionnement paysage */
246@media screen and (max-width:640px) and (orientation: landscape) {
247  body {
248   -webkit-text-size-adjust: 70%;
249  }
250}
251
252/* ------------------------------------------------------ règles communes < 640px */
253@media only screen and (max-width:639px) {
254     body {
255          -webkit-text-size-adjust: none;
256          }
257     #wrapper {
258          padding: 0 2%;
259          }
260     img {
261          max-width: 97%;
262          height: auto;
263          width: auto\9; /* pour ie8 */
264          }
265}
266
267/* ------------------------------------------------------ spécifique 640px à 1024px */
268@media only screen and (min-width: 640px) and (max-width: 1023px) {
269     #wrapper {
270          padding: 0 10%;
271          }
272     #blognav, #blogextra {
273          width: 48%; float:left;
274          }
275     #blognav {
276          margin-right: 4%;
277          }
278     #stickers {
279          padding-right: 10%;
280          }
281}
282
283/* ------------------------------------------------------ spécifique 840px à 1024px */
284@media only screen and (min-width: 840px) and (max-width: 1023px) {
285     #wrapper {
286          padding: 0 13%;
287          }
288     #stickers {
289          padding-right: 13%;
290          }
291}
292
293/* ------------------------------------------------------
294     au-delà de 1024px on passe à deux colonnes
295------------------------------------------------------ */
296@media only screen and (min-width: 1024px) {
297     #wrapper {
298          padding: 0 7%;
299          }
300     #main {
301          width : 100%;
302          margin : 0 -17em 0 0;
303          float : left;
304          display: inline;
305          }
306     #content {
307          margin : 0 20em 0 0;
308          padding : 0 0 2em 0;
309          }
310     #sidebar {
311          width : 17em;
312          float : right;
313          }
314     #blognav, #blogextra {
315          margin : 0;
316          }
317     #stickers {
318          padding-right: 7%;
319          }
320     #sidebar #blognav div:first-child {
321          margin-top: 4.66em;
322          }
323     #sidebar div#search:first-child {
324          background: none;
325          margin-top: 0;
326          margin-bottom: 2em;
327          padding-bottom: 2px;
328          font-size: 1em;
329          border: 1px solid #ddd;
330          border-top: none 0;
331          }
332     #sidebar div#search:first-child h2 {
333          font-size: 1em;
334          text-transform: uppercase;
335          text-shadow: 0 1px 1px rgba(0,0,0,.2);
336          vertical-align: top;
337          color: #666;
338          }
339     #sidebar div#search:first-child p {
340          margin: .33em 0;
341          }
342     .dc-archive #content {
343          margin: 0 17em 0 0;
344          }
345}
346
347/* ------------------------------------------------------
348     au-delà de 1280px on décale le post-info à gauche
349------------------------------------------------------- */
350@media only screen and (min-width: 1280px) {
351     #content {
352          margin : 0 20em 0 220px;
353          }
354     .full .post-attr,
355     .simple .post-attr {
356          margin-left: -220px;
357          margin-top: 0;
358          float: left;
359          width: 180px;
360          text-align: right;
361          }
362     .post-attr a, .post-info, .post-tags {
363          padding-right: 0 !important;
364          }
365     #content-info, .navlinks, .pagination {
366          margin-left: -220px !important;
367          }
368     .dc-archive #content-info {
369          margin-left: 0 !important;
370          }
371     #content-info a.feed {
372          white-space: nowrap;
373          }
374}
375
376/* ------------------------------------------------------ au-delà de 1600px */
377@media only screen and (min-width: 1600px) {
378     #wrapper {
379          padding: 0 10%;
380          }
381     #stickers {
382          padding-right: 10%;
383          }
384}
Note: See TracBrowser for help on using the repository browser.

Sites map