Dotclear

source: themes/ductile/mediaqueries.css @ 681:4a4d866f3b8c

Revision 681:4a4d866f3b8c, 8.2 KB checked in by Franck <carnet.franck.paul@…>, 14 years ago (diff)

Merge branche themes dans la branche default

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          -webkit-border-radius: 0 0 0 4px;
192          -moz-border-radius: 0 0 0 4px;
193          -o-border-radius: 0 0 0 4px;
194          -ms-border-radius: 0 0 0 4px;
195          -khtml-border-radius: 0 0 0 4px;
196          border-radius: 0 0 0 4px;     
197          }
198     .supranav li a span {
199          display: block;
200          }
201     .post-title {
202          font-size: 2.5em;
203          font-weight: normal;
204          }
205     .post-title a {
206          font-style: italic;
207          font-weight: normal;
208          }
209     #stickers {
210          position: absolute;
211          top: 0;
212          right: 0;
213          padding-right: 3%;
214          font-size: .75em;
215          }
216     #stickers li {
217          display: block;
218          float: left;
219          text-align: center;
220          width: 60px;
221          padding: 0;
222          }
223     #stickers span {
224          display: block;
225          text-align: center;
226          position: absolute;
227          top: -500px;
228          }
229     #stickers a:hover, #stickers a:focus {
230          background: #fff !important;
231          }
232     #stickers a:hover span, #stickers a:focus span {
233          color: #686867;
234          position: static;
235          top: 0;
236          }
237     .comment-info { 
238          clear: left;
239          float: left;
240          width: 10em;
241          }
242     .comment-content {
243          margin-left: 11.5em;
244          }
245}
246
247/* ------------------------------------------------------ special redimensionnement paysage */
248@media screen and (max-width:640px) and (orientation: landscape) { 
249  body { 
250   -webkit-text-size-adjust: 70%; 
251  } 
252}
253
254/* ------------------------------------------------------ règles communes < 640px */
255@media only screen and (max-width:639px) {
256     body {
257          -webkit-text-size-adjust: none;
258          }
259     #wrapper {
260          padding: 0 2%;
261          }
262     img {
263          max-width: 97%;
264          height: auto;
265          width: auto\9; /* pour ie8 */
266          }
267}
268
269/* ------------------------------------------------------ spécifique 640px à 1024px */
270@media only screen and (min-width: 640px) and (max-width: 1023px) {
271     #wrapper {
272          padding: 0 10%;
273          }
274     #blognav, #blogextra { 
275          width: 48%; float:left;
276          }
277     #blognav {
278          margin-right: 4%;
279          }
280     #stickers {
281          padding-right: 10%;
282          }
283}
284
285/* ------------------------------------------------------ spécifique 840px à 1024px */
286@media only screen and (min-width: 840px) and (max-width: 1023px) {
287     #wrapper {
288          padding: 0 13%;
289          }
290     #stickers {
291          padding-right: 13%;
292          }   
293}
294
295/* ------------------------------------------------------
296     au-delà de 1024px on passe à deux colonnes
297------------------------------------------------------ */
298@media only screen and (min-width: 1024px) {
299     #wrapper {
300          padding: 0 7%;
301          }
302     #main {
303          width : 100%;
304          margin : 0 -17em 0 0;
305          float : left;
306          display: inline;
307          }
308     #content {
309          margin : 0 20em 0 0;
310          padding : 0 0 2em 0;
311          }
312     #sidebar {
313          width : 17em;
314          float : right;
315          }
316     #blognav, #blogextra {
317          margin : 0;
318          }
319     #stickers {
320          padding-right: 7%;
321          }
322     #sidebar #blognav div:first-child {
323          margin-top: 4.66em;
324          }
325     #sidebar div#search:first-child { 
326          background: none;
327          margin-top: 0;
328          margin-bottom: 2em;
329          padding-bottom: 2px;
330          font-size: 1em;
331          border: 1px solid #ddd;
332          border-top: none 0;
333          }
334     #sidebar div#search:first-child h2 {
335          font-size: 1em;
336          text-transform: uppercase;
337          text-shadow: 0 1px 1px rgba(0,0,0,.2);
338          vertical-align: top;
339          color: #666;
340          }
341     #sidebar div#search:first-child p {
342          margin: .33em 0;
343          }
344     .dc-archive #content {
345          margin: 0 17em 0 0;
346          }
347}
348
349/* ------------------------------------------------------
350     au-delà de 1280px on décale le post-info à gauche
351------------------------------------------------------- */
352@media only screen and (min-width: 1280px) {
353     #content {
354          margin : 0 20em 0 220px;
355          }
356     .full .post-attr,
357     .simple .post-attr {
358          margin-left: -220px;
359          margin-top: 0; 
360          float: left; 
361          width: 180px; 
362          text-align: right;
363          }
364     .post-attr a, .post-info, .post-tags {
365          padding-right: 0 !important;
366          }
367     #content-info, .navlinks, .pagination {
368          margin-left: -220px !important;
369          }
370     .dc-archive #content-info {
371          margin-left: 0 !important;
372          }
373     #content-info a.feed { 
374          white-space: nowrap;
375          }   
376}
377
378/* ------------------------------------------------------ au-delà de 1600px */
379@media only screen and (min-width: 1600px) {
380     #wrapper {
381          padding: 0 10%;
382          }
383     #stickers {
384          padding-right: 10%;
385          }
386}
Note: See TracBrowser for help on using the repository browser.

Sites map