Dotclear

source: themes/ductile/mediaqueries.css @ 367:ac02b334e367

Revision 367:ac02b334e367, 3.8 KB checked in by kozlika, 14 years ago (diff)

And the last one (comment ca je l ai deja dit ?)

Line 
1@charset "UTF-8";
2
3/* seuils retenus :
4480px
5640px
61024px
71280px
8----------------- */
9
10@media only screen and (max-width:480px) {
11     #prelude, #blogdesc, #supranav span {
12          display: none !important;
13          }
14
15     h1 {
16          font-size: 1.8em;
17          }
18     h1 a {
19          display: block;
20          padding: 6px 8px;
21          background: #f4f4f5;
22          background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f5), to(#d7d7dC));
23          background: -moz-linear-gradient(top,  #f4f4f5,  #d7d7dC);
24          border-right: 1px solid #aaa;
25          border-bottom: 1px solid #ccc;
26          }
27
28     #supranav {
29          border:none;
30          margin: 8px 0 0;
31          }
32     #supranav li a {
33          border-right: 0;
34          display: block;
35          padding: 4px 8px;
36          border-bottom: 1px solid #ccc;
37          }
38
39     h2.post-title {
40          font-size: 2.5em;
41          }
42
43     #stickers {
44          margin: 0;
45          padding: 0;
46          border-bottom: 8px solid #fff;
47          }
48     #stickers li {
49          position: relative;
50          line-height: 2.5em;
51          margin-left: 0;
52          padding-left: 0;
53          border: 2px solid #fff;
54          border-left: 8px solid #fff;
55          border-right: 8px solid #fff;
56          }
57     #stickers img {
58          display: block;
59          position: absolute;
60          clip: rect(0px,32px,32px,0px);
61          }
62     #stickers span {
63          margin-left: 40px;
64          }
65     #stickers a {
66          text-decoration: none;
67          }
68}
69
70@media only screen and (min-width: 481px) {
71     #top {
72          padding-top: 24px;
73          }
74     h1 {
75          font-size: 2em;
76          padding-right: 240px;
77          padding-bottom: 4px;
78          margin-left: 32px;
79          }
80
81     #supranav {
82          margin: 36px 0 0;
83          border-bottom: 1px solid #ccc;
84          }
85     #supranav li {
86          display: inline;
87          padding: 8px 0;
88          }
89     #supranav li a {
90          display: inline-block;
91          padding: 8px 32px 8px 28px;
92          border-right: 1px solid #ccc;
93          }
94     #supranav li a span {
95          display: block;
96          }
97
98     #stickers {
99          position: absolute;
100          top: 0;
101          right: 0;
102          padding-right: 3%;
103          }
104     #stickers li {
105          display: inline;
106          padding: 0 4px;
107          }
108     #stickers li.last {
109          padding-right: 0;
110          }
111     #stickers li span {
112          display: none;
113          }
114     h2.post-title {
115          font-size: 2.8em;
116          }
117     #stickers li a:hover,
118     #stickers li a:active,
119     #stickers li a:focus {
120          background-color: #fff;
121          border-bottom: 4px solid #ad3f4c;
122          }
123}
124
125@media only screen and (max-width:639px) {
126     html {
127          -webkit-text-size-adjust: none;
128          }
129     #wrapper {
130          padding: 0 2%;
131          }
132     img {
133          max-width: 100%;
134          height: auto;
135          width: auto\9; /* pour ie8 */
136          }
137}
138
139@media only screen and (min-width: 640px) and (max-width: 1023px) {
140     #wrapper {
141          padding: 0 10%;
142          }
143     #blognav, #blogextra { 
144          width: 48%; float:left;
145          }
146     #blognav {
147          margin-right: 4%;
148          }
149     #stickers {
150          padding-right: 10%;
151          }
152}
153
154@media only screen and (min-width: 840px) and (max-width: 1023px) {
155     #wrapper {
156          padding: 0 13%;
157          }
158     #stickers {
159          padding-right: 13%;
160          }   
161}
162
163@media only screen and (min-width: 1024px) {
164     #wrapper {
165          padding: 0 7%;
166          }
167     #main {
168          width : 100%;
169          margin : 0 -22% 0 0;
170          float : left;
171          display: inline;
172          }
173     #content {
174          margin : 0 30% 0 0;
175          padding : 0 0 2em 0;
176          }
177     #sidebar {
178          width : 22%;
179          float : right;
180          }
181     #blognav, #blogextra {
182          margin : 0;
183          }
184     #stickers {
185          padding-right: 7%;
186          }
187
188     #sidebar #blognav div:first-child {
189          margin-top: 4.66em;
190          }
191     #sidebar div#search:first-child { 
192          background: none;
193          margin-top: 0;
194          margin-bottom: 2em;
195          padding-bottom: 2px;
196          font-size: 1em;
197          border: 1px solid #ddd;
198          border-top: none 0;
199          }
200     #sidebar div#search:first-child h2 {
201          font-size: 1em;
202          text-transform: uppercase;
203          text-shadow: 0 1px 1px rgba(0,0,0,.2);
204          vertical-align: top;
205          color: #666;
206          }
207     #sidebar div#search p {
208          margin: .33em 0;
209          }
210}
211
212@media only screen and (min-width: 1280px) {
213     #content {
214          margin : 0 30% 0 200px;
215          }
216     p.post-info { 
217          margin-left: -200px; 
218          float: left; 
219          width: 150px; 
220          text-align: right;
221          }
222     .dc-archive-month p.post-info {
223          margin-left: 0;
224          float:none;
225          width: auto;
226          text-align: left;
227          }
228}
229
230@media only screen and (min-width: 1600px) {
231     #wrapper {
232          padding: 0 12%;
233          }
234     #stickers {
235          padding-right: 12%;
236          }
237}
Note: See TracBrowser for help on using the repository browser.

Sites map