Dotclear

source: themes/ductile/mediaqueries.css @ 350:630bb6e6c29a

Revision 350:630bb6e6c29a, 2.2 KB checked in by kozlika, 14 years ago (diff)

Ductile - cette fois ça devrait être bon.

Line 
1@charset "UTF-8";
2
3/* seuils retenus :
4480px
5640px
6960px
71280px
8----------------- */
9
10@media only screen and (max-width:480px) {
11     h1 {
12          font-size: 1.8em;
13          border: solid 1px #777;
14          -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
15          -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
16          -o-box-shadow: rgba(0,0,0,.2);
17          box-shadow: 0 1px 2px rgba(0,0,0,.2);
18          color: #eee;
19          background: #555;
20          background: -webkit-gradient(linear, left top, left bottom, from(#777), to(#555));
21          background: -moz-linear-gradient(top, #777, #555);
22          filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#777777', endColorstr='#555555'); 
23          }
24     h1 a {
25          display: block;
26          padding: 0 3%;
27          color: #fff;
28          text-shadow: 0 1px 1px #333;
29          }
30     h1 a:hover, h1 a:focus {
31          background: #333;
32          }
33     #prelude {
34          display: none;
35          }
36}
37
38@media only screen and (min-width: 481px) {
39     #page {
40          padding-top: 16px;
41          }
42     h1 {
43     font-size: 2.25em;
44          }
45     h1 a, h1 a:hover, h1 a:focus {
46          background-repeat: no-repeat;
47          background-position: left center;
48          padding-left: 68px;
49          background-image: url(img/home-small.png);
50          }
51}
52
53@media only screen and (max-width:639px) {
54     html {
55          -webkit-text-size-adjust: none;
56          }
57     #wrapper {
58          padding: 0 3%;
59          }
60     img {
61          max-width: 100%;
62          height: auto;
63          width: auto\9; /* pour ie8 */
64          }
65}
66
67@media only screen and (min-width: 640px) and (max-width: 960px) {
68     #wrapper {
69          padding: 0 10%;
70          }
71     #blognav, #blogextra { 
72          width: 48%; float:left;
73          }
74     #blognav {
75          margin-right: 4%;
76     }
77}
78
79@media only screen and (min-width: 961px) {
80     #wrapper {
81          padding: 0 15%;
82          }
83     #main {
84          width : 100%;
85          margin : 0 -26% 0 0;
86          float : left;
87          display: inline;
88          }
89     #content {
90          margin : 0 32% 0 0;
91          padding : 10px;
92          }
93     #footer {
94          clear : both;
95          text-align:center;
96          }
97     #sidebar {
98          width : 26%;
99          float : right;
100          margin-top: 4.66em;
101          }
102     #blognav, #blogextra {
103          margin : 0;
104          }
105}
106
107@media only screen and (min-width: 1280px) {
108     #wrapper {
109          padding: 0 140px 0 340px;
110          }
111     .dc-tags #wrapper, .dc-archive-month #wrapper, .dc-404 #wrapper {
112          padding: 0 15%;
113          }
114     p.post-info { 
115          margin-left: -200px; 
116          float: left; 
117          width: 140px; 
118          text-align: right;
119          }
120     .dc-archive-month p.post-info {
121          margin-left: 0;
122          float:none;
123          width: auto;
124          text-align: left;
125          }
126}
Note: See TracBrowser for help on using the repository browser.

Sites map