Dotclear

source: themes/ductile/mediaqueries.css @ 623:ad4c30d7c240

Revision 623:ad4c30d7c240, 7.1 KB checked in by kozlika, 14 years ago (diff)

Ductile - Debug, trad manquante.

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

Sites map