Dotclear

source: themes/ductile/mediaqueries.css @ 699:c503e64b7577

Revision 699:c503e64b7577, 8.2 KB checked in by kozlika, 14 years ago (diff)

Ductile : correction du sprite des listes

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

Sites map