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

RevLine 
[300]1@charset "UTF-8";
[631]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 ----------------------------------------- */
[300]11
[308]12/* seuils retenus :
[422]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 */
[308]19
[386]20/* --------------------------------------------------------------------
[422]21     Moins de 480px (téléphones)
[386]22-------------------------------------------------------------------- */
[308]23@media only screen and (max-width:480px) {
[497]24     .nosmall {
[359]25          display: none !important;
26          }
[308]27     h1 {
28          font-size: 1.8em;
[346]29          }
30     h1 a {
[359]31          display: block;
32          padding: 6px 8px;
33          background: #f4f4f5;
[670]34          background-image: -webkit-gradient(linear, left top, left bottom, from( #f4f4f5), to(#d7d7dC));
35          background: -webkit-linear-gradient(top,  #f4f4f5,  #d7d7dC);
[359]36          background: -moz-linear-gradient(top,  #f4f4f5,  #d7d7dC);
[670]37          background: -o-linear-gradient(top,  #f4f4f5,  #d7d7dC);
38          background: -ms-linear-gradient(top,  #f4f4f5,  #d7d7dC);
39          background: linear-gradient(top,  #f4f4f5,  #d7d7dC);
[359]40          border-right: 1px solid #aaa;
41          border-bottom: 1px solid #ccc;
[346]42          }
[497]43     .supranav, #prelude {
[670]44          border: none;
[359]45          margin: 8px 0 0;
[497]46          background: #fff;
[670]47          padding-left: 0;
[315]48          }
[497]49     .supranav li a, #prelude li a {
[359]50          border-right: 0;
51          display: block;
52          padding: 4px 8px;
53          border-bottom: 1px solid #ccc;
[497]54          text-decoration: none;
55          white-space: nowrap;
56          margin-bottom: 4px;
57          }
58     #gotop li {
[670]59          border-top: 1px solid #ccc;
[497]60          text-transform: none;
[670]61          padding-top: 6px;
[497]62          }
[632]63     #prelude {
64          margin: .5em 0 !important;
65          }
[497]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;
[339]74          }
[391]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;
[354]83          }
[670]84     #other-criteria .arch-block, #more-criteria .arch-block {
85          margin-left: 0 !important;
86          }
[354]87     #stickers {
88          margin: 0;
89          padding: 0;
[670]90          border-bottom: 1px solid #fff;
[354]91          }
92     #stickers li {
93          position: relative;
[401]94          padding: .5em 0;
[354]95          margin-left: 0;
[401]96          border-style: solid;
[670]97          border-width: 1px 0 0 0;
[401]98          overflow: hidden;
[359]99          }
[354]100     #stickers img {
101          position: absolute;
[401]102          top: -2px;
103          clip: rect(0 32px 36px 0);
104          clip: rect(0, 32px, 36px, 0);
[354]105          }
106     #stickers span {
107          margin-left: 40px;
108          }
109     #stickers a {
110          text-decoration: none;
111          }
[623]112     ul, ol, dd {
[640]113          padding: 0;
[623]114          }
[675]115     .post ul, .post ol, .post dd {
116          margin-left: 1em !important;
117          }
[315]118}
119
[386]120/* --------------------------------------------------------------------
121     Autres (plus de 480px)
122-------------------------------------------------------------------- */
[315]123@media only screen and (min-width: 481px) {
[497]124     .nobig {
125          display: none;
126          }
127     #prelude {
128          position: absolute;
129          margin: 0;
[670]130          padding: 0 0 0 4px;
[497]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          }
[354]154     #top {
155          padding-top: 24px;
[346]156          }
[670]157     #logo {
[599]158          float:left; 
[670]159          margin: 0 32px 0 24px;   
[599]160          }
161     #logo a {
162          border: none;
163          background: transparent;
164          text-decoration: none;
165          }
[315]166     h1 {
[354]167          font-size: 2em;
[359]168          padding-right: 240px;
[367]169          padding-bottom: 4px;
[360]170          margin-left: 32px;
[304]171          }
[497]172     #sn-bottom {
173          display: none;
174          }
175     .supranav {
[359]176          margin: 36px 0 0;
177          border-bottom: 1px solid #ccc;
[670]178          padding: 0 0 0 4px;
[359]179          }
[497]180     .supranav li {
[359]181          display: inline;
182          padding: 8px 0;
[672]183          padding-left: 4px;
[359]184          }
[497]185     .supranav li a {
[359]186          display: inline-block;
[658]187          vertical-align: top;
[360]188          padding: 8px 32px 8px 28px;
[359]189          border-right: 1px solid #ccc;
[549]190          min-height: 2.5em;
[672]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;     
[359]197          }
[497]198     .supranav li a span {
[359]199          display: block;
200          }
[391]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          }
[699]209     #blogcustom {
210          padding: 0 1em;
211          }
[354]212     #stickers {
213          position: absolute;
214          top: 0;
215          right: 0;
[360]216          padding-right: 3%;
[470]217          font-size: .75em;
[354]218          }
219     #stickers li {
[446]220          display: block;
[608]221          float: left;
[446]222          text-align: center;
223          width: 60px;
224          padding: 0;
[354]225          }
[658]226     #stickers span {
[446]227          display: block;
228          text-align: center;
[658]229          position: absolute;
230          top: -500px;
[446]231          }
232     #stickers a:hover, #stickers a:focus {
[658]233          background: #fff !important;
234          }
235     #stickers a:hover span, #stickers a:focus span {
[670]236          color: #686867;
[658]237          position: static;
238          top: 0;
[359]239          }
[660]240     .comment-info { 
241          clear: left;
242          float: left;
243          width: 10em;
244          }
245     .comment-content {
246          margin-left: 11.5em;
247          }
[300]248}
249
[386]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
[599]257/* ------------------------------------------------------ règles communes < 640px */
[308]258@media only screen and (max-width:639px) {
[386]259     body {
[304]260          -webkit-text-size-adjust: none;
261          }
262     #wrapper {
[360]263          padding: 0 2%;
[304]264          }
265     img {
[670]266          max-width: 97%;
[304]267          height: auto;
[308]268          width: auto\9; /* pour ie8 */
[304]269          }
270}
271
[386]272/* ------------------------------------------------------ spécifique 640px à 1024px */
[367]273@media only screen and (min-width: 640px) and (max-width: 1023px) {
[308]274     #wrapper {
275          padding: 0 10%;
276          }
[346]277     #blognav, #blogextra { 
278          width: 48%; float:left;
279          }
280     #blognav {
281          margin-right: 4%;
[360]282          }
[354]283     #stickers {
284          padding-right: 10%;
285          }
[308]286}
287
[386]288/* ------------------------------------------------------ spécifique 840px à 1024px */
[367]289@media only screen and (min-width: 840px) and (max-width: 1023px) {
[308]290     #wrapper {
[359]291          padding: 0 13%;
[308]292          }
[360]293     #stickers {
294          padding-right: 13%;
295          }   
296}
297
[386]298/* ------------------------------------------------------
299     au-delà de 1024px on passe à deux colonnes
300------------------------------------------------------ */
[367]301@media only screen and (min-width: 1024px) {
[360]302     #wrapper {
[367]303          padding: 0 7%;
[360]304          }
[346]305     #main {
306          width : 100%;
[386]307          margin : 0 -17em 0 0;
[346]308          float : left;
309          display: inline;
310          }
311     #content {
[386]312          margin : 0 20em 0 0;
[360]313          padding : 0 0 2em 0;
[346]314          }
315     #sidebar {
[386]316          width : 17em;
[346]317          float : right;
318          }
319     #blognav, #blogextra {
320          margin : 0;
321          }
[354]322     #stickers {
[367]323          padding-right: 7%;
[360]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;
[367]334          border: 1px solid #ddd;
335          border-top: none 0;
[360]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          }
[386]344     #sidebar div#search:first-child p {
[360]345          margin: .33em 0;
[354]346          }
[502]347     .dc-archive #content {
348          margin: 0 17em 0 0;
349          }
[346]350}
351
[386]352/* ------------------------------------------------------
353     au-delà de 1280px on décale le post-info à gauche
354------------------------------------------------------- */
[346]355@media only screen and (min-width: 1280px) {
[367]356     #content {
[446]357          margin : 0 20em 0 220px;
[350]358          }
[535]359     .full .post-attr,
[609]360     .simple .post-attr {
[535]361          margin-left: -220px;
362          margin-top: 0; 
[350]363          float: left; 
[446]364          width: 180px; 
[350]365          text-align: right;
366          }
[440]367     .post-attr a, .post-info, .post-tags {
368          padding-right: 0 !important;
369          }
[535]370     #content-info, .navlinks, .pagination {
371          margin-left: -220px !important;
[609]372          }
[535]373     .dc-archive #content-info {
374          margin-left: 0 !important;
[609]375          }
[535]376     #content-info a.feed { 
377          white-space: nowrap;
[609]378          }   
[367]379}
380
[386]381/* ------------------------------------------------------ au-delà de 1600px */
[367]382@media only screen and (min-width: 1600px) {
383     #wrapper {
[386]384          padding: 0 10%;
[367]385          }
[354]386     #stickers {
[386]387          padding-right: 10%;
[354]388          }
[670]389}
Note: See TracBrowser for help on using the repository browser.

Sites map