Dotclear

source: themes/ductile/mediaqueries.css @ 3731:3770620079d4

Revision 3731:3770620079d4, 7.7 KB checked in by franck <carnet.franck.paul@…>, 8 years ago (diff)

Simplify licence block at the beginning of each file

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

Sites map