Dotclear

source: themes/ductile/mediaqueries.css @ 549:0b15de6541d6

Revision 549:0b15de6541d6, 6.9 KB checked in by kozlika, 14 years ago (diff)

Ductile. Bugfix Items de menu sur une ou deux lignes.

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

Sites map