Dotclear

source: themes/ductile/mediaqueries.css @ 640:708b148b364e

Revision 640:708b148b364e, 7.5 KB checked in by kozlika, 14 years ago (diff)

Ductile - Aide du configurateur, typos.

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

Sites map