Dotclear

source: themes/ductile/mediaqueries.css @ 599:03506a6a7fc9

Revision 599:03506a6a7fc9, 7.0 KB checked in by kozlika, 14 years ago (diff)

Ductile: solo, first step.

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

Sites map