Dotclear

source: themes/ductile/mediaqueries.css @ 502:d002906f0b30

Revision 502:d002906f0b30, 6.8 KB checked in by kozlika, 14 years ago (diff)

[Ductile] Jour 7 ready ou quasi

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

Sites map