Dotclear

source: themes/ductile/mediaqueries.css @ 359:f8482768790a

Revision 359:f8482768790a, 3.3 KB checked in by kozlika, 14 years ago (diff)

Ductile, jour 4, HTML and CSS for #footer and #header done.

Line 
1@charset "UTF-8";
2
3/* seuils retenus :
4480px
5640px
6960px
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          padding-bottom: 4px;
74          }
75     h1 {
76          font-size: 2em;
77          padding-right: 240px;
78          }
79     h1 a {
80          padding-left: 32px;
81          }
82
83     #supranav {
84          margin: 36px 0 0;
85          border-bottom: 1px solid #ccc;
86          }
87     #supranav li {
88          display: inline;
89          padding: 8px 0;
90          }
91     #supranav li a {
92          display: inline-block;
93          padding: 8px 32px;
94          border-right: 1px solid #ccc;
95          }
96     #supranav li a span {
97          display: block;
98          }
99
100     #stickers {
101          position: absolute;
102          top: 0;
103          right: 0;
104          padding-right: 10%;
105          }
106     #stickers li {
107          display: inline;
108          padding: 0 4px;
109          }
110     #stickers li.last {
111          padding-right: 0;
112          }
113     #stickers li span {
114          display: none;
115          }
116     h2.post-title {
117          font-size: 2.8em;
118          }
119     #stickers li a:hover,
120     #stickers li a:active,
121     #stickers li a:focus {
122          background-color: #fff;
123          border-bottom: 4px solid #ad3f4c;
124          }
125}
126
127@media only screen and (max-width:639px) {
128     html {
129          -webkit-text-size-adjust: none;
130          }
131     #wrapper {
132          padding: 0 3%;
133          }
134     img {
135          max-width: 100%;
136          height: auto;
137          width: auto\9; /* pour ie8 */
138          }
139}
140
141@media only screen and (min-width: 640px) and (max-width: 960px) {
142     #wrapper {
143          padding: 0 10%;
144          }
145     #blognav, #blogextra { 
146          width: 48%; float:left;
147          }
148     #blognav {
149          margin-right: 4%;
150     }
151     #stickers {
152          padding-right: 10%;
153          }
154}
155
156@media only screen and (min-width: 961px) {
157     #wrapper {
158          padding: 0 13%;
159          }
160     #main {
161          width : 100%;
162          margin : 0 -26% 0 0;
163          float : left;
164          display: inline;
165          }
166     #content {
167          margin : 0 32% 0 0;
168          padding : 10px;
169          }
170     #footer {
171          clear : both;
172          text-align:center;
173          }
174     #sidebar {
175          width : 26%;
176          float : right;
177          margin-top: 4.66em;
178          }
179     #blognav, #blogextra {
180          margin : 0;
181          }
182     #stickers {
183          padding-right: 13%;
184          }
185}
186
187@media only screen and (min-width: 1280px) {
188     #wrapper {
189          padding: 0 140px 0 340px;
190          }
191     .dc-tags #wrapper, .dc-archive-month #wrapper, .dc-404 #wrapper {
192          padding: 0 15%;
193          }
194     p.post-info { 
195          margin-left: -200px; 
196          float: left; 
197          width: 140px; 
198          text-align: right;
199          }
200     .dc-archive-month p.post-info {
201          margin-left: 0;
202          float:none;
203          width: auto;
204          text-align: left;
205          }
206     #stickers {
207          padding-right: 140px;
208          }
209}
Note: See TracBrowser for help on using the repository browser.

Sites map