Dotclear

source: themes/ductile/mediaqueries.css @ 631:c585ca34f513

Revision 631:c585ca34f513, 7.4 KB checked in by kozlika, 14 years ago (diff)

Ductile - Compat IE ≤ 8

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

Sites map