Dotclear

source: themes/ductile/mediaqueries.css @ 401:7d2fed1d603b

Revision 401:7d2fed1d603b, 5.5 KB checked in by kozlika, 14 years ago (diff)

Stickers enhancement.

Line 
1@charset "UTF-8";
2
3/* seuils retenus :
4jusqu'à 480px: tout en une colonne, sidebar et stickers en bas
5480px: stickers en haut
6640px: sidebar toujours en bas mais divisé en deux colonnes
71024px: passage à deux colonnes, sidebar à droite
81280px: décalage du post-info vers la gauche
91600px: marges plus grandes */
10
11/* --------------------------------------------------------------------
12     Téléphones (moins de 480px)
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          }
121     #stickers li {
122          display: inline;
123          padding: 0 4px;
124          }
125     #stickers li.last {
126          padding-right: 0;
127          }
128     #stickers li span {
129          font-size: 1px;
130          display: inline-block;
131          height:1px;
132          width: 1px;
133          overflow:hidden;
134          }
135     #stickers li a:hover,
136     #stickers li a:active,
137     #stickers li a:focus {
138          background-color: #fff;
139          border-bottom: 4px solid #ad3f4c;
140          }
141}
142
143/* ------------------------------------------------------ special redimensionnement paysage */
144@media screen and (max-width:640px) and (orientation: landscape) { 
145  body { 
146   -webkit-text-size-adjust: 70%; 
147  } 
148}
149
150/* ------------------------------------------------------ règles communes > 640px */
151@media only screen and (max-width:639px) {
152     body {
153          -webkit-text-size-adjust: none;
154          }
155     #wrapper {
156          padding: 0 2%;
157          }
158     img {
159          max-width: 100%;
160          height: auto;
161          width: auto\9; /* pour ie8 */
162          }
163}
164
165/* ------------------------------------------------------ spécifique 640px à 1024px */
166@media only screen and (min-width: 640px) and (max-width: 1023px) {
167     #wrapper {
168          padding: 0 10%;
169          }
170     #blognav, #blogextra { 
171          width: 48%; float:left;
172          }
173     #blognav {
174          margin-right: 4%;
175          }
176     #stickers {
177          padding-right: 10%;
178          }
179}
180
181/* ------------------------------------------------------ spécifique 840px à 1024px */
182@media only screen and (min-width: 840px) and (max-width: 1023px) {
183     #wrapper {
184          padding: 0 13%;
185          }
186     #stickers {
187          padding-right: 13%;
188          }   
189}
190
191/* ------------------------------------------------------
192     au-delà de 1024px on passe à deux colonnes
193------------------------------------------------------ */
194@media only screen and (min-width: 1024px) {
195     #wrapper {
196          padding: 0 7%;
197          }
198     #main {
199          width : 100%;
200          margin : 0 -17em 0 0;
201          float : left;
202          display: inline;
203          }
204     #content {
205          margin : 0 20em 0 0;
206          padding : 0 0 2em 0;
207          }
208     #sidebar {
209          width : 17em;
210          float : right;
211          }
212     #blognav, #blogextra {
213          margin : 0;
214          }
215     #stickers {
216          padding-right: 7%;
217          }
218     #sidebar #blognav div:first-child {
219          margin-top: 4.66em;
220          }
221     #sidebar div#search:first-child { 
222          background: none;
223          margin-top: 0;
224          margin-bottom: 2em;
225          padding-bottom: 2px;
226          font-size: 1em;
227          border: 1px solid #ddd;
228          border-top: none 0;
229          }
230     #sidebar div#search:first-child h2 {
231          font-size: 1em;
232          text-transform: uppercase;
233          text-shadow: 0 1px 1px rgba(0,0,0,.2);
234          vertical-align: top;
235          color: #666;
236          }
237     #sidebar div#search:first-child p {
238          margin: .33em 0;
239          }
240}
241
242/* ------------------------------------------------------
243     au-delà de 1280px on décale le post-info à gauche
244------------------------------------------------------- */
245@media only screen and (min-width: 1280px) {
246     #content {
247          margin : 0 20em 0 200px;
248          }
249     p.post-info { 
250          margin-left: -200px; 
251          float: left; 
252          width: 150px; 
253          text-align: right;
254          }
255     .dc-archive-month p.post-info {
256          margin-left: 0;
257          float:none;
258          width: auto;
259          text-align: left;
260          }
261}
262
263/* ------------------------------------------------------ au-delà de 1600px */
264@media only screen and (min-width: 1600px) {
265     #wrapper {
266          padding: 0 10%;
267          }
268     #stickers {
269          padding-right: 10%;
270          }
271}
Note: See TracBrowser for help on using the repository browser.

Sites map