Dotclear

source: themes/ductile/mediaqueries.css @ 660:37daee020536

Revision 660:37daee020536, 7.7 KB checked in by kozlika, 14 years ago (diff)

Ductile - Amélioration de la présentation des entêtes de catégorie et des commentaires sur mobile.

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

Sites map