Dotclear

source: themes/ductile/mediaqueries.css @ 446:b88b130165e1

Revision 446:b88b130165e1, 5.6 KB checked in by kozlika, 14 years ago (diff)

Bugfix (clearer), update version number for the next day.

(Je cause super bien anglais moi, je me demande si je ne vais pas proposer mes services de traductrice à l'unesco)

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     .nomobile {
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 {
31          border:none;
32          margin: 8px 0 0;
33          }
34     #supranav li a {
35          border-right: 0;
36          display: block;
37          padding: 4px 8px;
38          border-bottom: 1px solid #ccc;
39          }
40     .post-title {
41          font-size: 1.5em;
42          font-weight: bold;
43          font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif;
44          }
45     .post-title a {
46          font-style: normal;
47          font-weight: bold;
48          }
49     #stickers {
50          margin: 0;
51          padding: 0;
52          border-bottom: 8px solid #fff;
53          }
54     #stickers li {
55          position: relative;
56          padding: .5em 0;
57          margin-left: 0;
58          border-style: solid;
59          border-color: #fff;
60          border-width: 2px 6px;
61          overflow: hidden;
62          }
63     #stickers img {
64          position: absolute;
65          top: -2px;
66          clip: rect(0 32px 36px 0);
67          clip: rect(0, 32px, 36px, 0);
68          }
69     #stickers span {
70          margin-left: 40px;
71          }
72     #stickers a {
73          text-decoration: none;
74          }
75}
76
77/* --------------------------------------------------------------------
78     Autres (plus de 480px)
79-------------------------------------------------------------------- */
80
81@media only screen and (min-width: 481px) {
82     #top {
83          padding-top: 24px;
84          }
85     h1 {
86          font-size: 2em;
87          padding-right: 240px;
88          padding-bottom: 4px;
89          margin-left: 32px;
90          }
91     #supranav {
92          margin: 36px 0 0;
93          border-bottom: 1px solid #ccc;
94          }
95     #supranav li {
96          display: inline;
97          padding: 8px 0;
98          }
99     #supranav li a {
100          display: inline-block;
101          padding: 8px 32px 8px 28px;
102          border-right: 1px solid #ccc;
103          }
104     #supranav li a span {
105          display: block;
106          }
107     .post-title {
108          font-size: 2.5em;
109          font-weight: normal;
110          }
111     .post-title a {
112          font-style: italic;
113          font-weight: normal;
114          }
115     #stickers {
116          position: absolute;
117          top: 0;
118          right: 0;
119          padding-right: 3%;
120          font-size: .875em;
121          }
122     #stickers li {
123          display: block;
124          float: right;
125          text-align: center;
126          width: 60px;
127          padding: 0;
128          }
129     #stickers li span {
130          display: block;
131          text-align: center;
132          }
133     #stickers li a:hover,
134     #stickers li a:active,
135     #stickers li a:focus {
136          background-color: #fff;
137          }
138     #stickers a:hover, #stickers a:focus {
139          color: #000;
140          background: #fff;
141          }
142}
143
144/* ------------------------------------------------------ special redimensionnement paysage */
145@media screen and (max-width:640px) and (orientation: landscape) { 
146  body { 
147   -webkit-text-size-adjust: 70%; 
148  } 
149}
150
151/* ------------------------------------------------------ règles communes > 640px */
152@media only screen and (max-width:639px) {
153     body {
154          -webkit-text-size-adjust: none;
155          }
156     #wrapper {
157          padding: 0 2%;
158          }
159     img {
160          max-width: 100%;
161          height: auto;
162          width: auto\9; /* pour ie8 */
163          }
164}
165
166/* ------------------------------------------------------ spécifique 640px à 1024px */
167@media only screen and (min-width: 640px) and (max-width: 1023px) {
168     #wrapper {
169          padding: 0 10%;
170          }
171     #blognav, #blogextra { 
172          width: 48%; float:left;
173          }
174     #blognav {
175          margin-right: 4%;
176          }
177     #stickers {
178          padding-right: 10%;
179          }
180}
181
182/* ------------------------------------------------------ spécifique 840px à 1024px */
183@media only screen and (min-width: 840px) and (max-width: 1023px) {
184     #wrapper {
185          padding: 0 13%;
186          }
187     #stickers {
188          padding-right: 13%;
189          }   
190}
191
192/* ------------------------------------------------------
193     au-delà de 1024px on passe à deux colonnes
194------------------------------------------------------ */
195@media only screen and (min-width: 1024px) {
196     #wrapper {
197          padding: 0 7%;
198          }
199     #main {
200          width : 100%;
201          margin : 0 -17em 0 0;
202          float : left;
203          display: inline;
204          }
205     #content {
206          margin : 0 20em 0 0;
207          padding : 0 0 2em 0;
208          }
209     #sidebar {
210          width : 17em;
211          float : right;
212          }
213     #blognav, #blogextra {
214          margin : 0;
215          }
216     #stickers {
217          padding-right: 7%;
218          }
219     #sidebar #blognav div:first-child {
220          margin-top: 4.66em;
221          }
222     #sidebar div#search:first-child { 
223          background: none;
224          margin-top: 0;
225          margin-bottom: 2em;
226          padding-bottom: 2px;
227          font-size: 1em;
228          border: 1px solid #ddd;
229          border-top: none 0;
230          }
231     #sidebar div#search:first-child h2 {
232          font-size: 1em;
233          text-transform: uppercase;
234          text-shadow: 0 1px 1px rgba(0,0,0,.2);
235          vertical-align: top;
236          color: #666;
237          }
238     #sidebar div#search:first-child p {
239          margin: .33em 0;
240          }
241}
242
243/* ------------------------------------------------------
244     au-delà de 1280px on décale le post-info à gauche
245------------------------------------------------------- */
246@media only screen and (min-width: 1280px) {
247     #content {
248          margin : 0 20em 0 220px;
249          }
250     .post-attr { 
251          margin-left: -220px; 
252          float: left; 
253          width: 180px; 
254          text-align: right;
255          }
256     .post-attr a, .post-info, .post-tags {
257          padding-right: 0 !important;
258          }
259     .dc-archive-month .post-attr {
260          margin-left: 0;
261          float:none;
262          width: auto;
263          text-align: left;
264          }
265}
266
267/* ------------------------------------------------------ au-delà de 1600px */
268@media only screen and (min-width: 1600px) {
269     #wrapper {
270          padding: 0 10%;
271          }
272     #stickers {
273          padding-right: 10%;
274          }
275}
Note: See TracBrowser for help on using the repository browser.

Sites map