Changeset 386:c309e69e93ae
- Timestamp:
- 06/18/11 08:42:01 (14 years ago)
- Branch:
- themes
- Location:
- themes/ductile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
themes/ductile/mediaqueries.css
r367 r386 2 2 3 3 /* seuils retenus : 4 480px 5 640px 6 1024px 7 1280px 8 ----------------- */ 9 4 jusqu'à 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 Téléphones (moins de 480px) 13 -------------------------------------------------------------------- */ 10 14 @media only screen and (max-width:480px) { 11 15 #prelude, #blogdesc, #supranav span { 12 16 display: none !important; 13 17 } 14 15 18 h1 { 16 19 font-size: 1.8em; … … 25 28 border-bottom: 1px solid #ccc; 26 29 } 27 28 30 #supranav { 29 31 border:none; … … 36 38 border-bottom: 1px solid #ccc; 37 39 } 38 39 40 h2.post-title { 40 font-size: 2.5em; 41 } 42 41 font-size: 2em; 42 } 43 43 #stickers { 44 44 margin: 0; … … 52 52 padding-left: 0; 53 53 border: 2px solid #fff; 54 border-left: 8px solid #fff;55 border-right: 8px solid #fff;54 border-left: 6px solid #fff; 55 border-right: 6px solid #fff; 56 56 } 57 57 #stickers img { … … 67 67 } 68 68 } 69 70 /* -------------------------------------------------------------------- 71 Autres (plus de 480px) 72 -------------------------------------------------------------------- */ 69 73 70 74 @media only screen and (min-width: 481px) { … … 78 82 margin-left: 32px; 79 83 } 80 81 84 #supranav { 82 85 margin: 36px 0 0; … … 95 98 display: block; 96 99 } 97 98 100 #stickers { 99 101 position: absolute; … … 113 115 } 114 116 h2.post-title { 115 font-size: 2. 8em;117 font-size: 2.6em; 116 118 } 117 119 #stickers li a:hover, … … 123 125 } 124 126 127 /* ------------------------------------------------------ special redimensionnement paysage */ 128 @media screen and (max-width:640px) and (orientation: landscape) { 129 body { 130 -webkit-text-size-adjust: 70%; 131 } 132 } 133 134 /* ------------------------------------------------------ règles communes > 640px */ 125 135 @media only screen and (max-width:639px) { 126 html{136 body { 127 137 -webkit-text-size-adjust: none; 128 138 } … … 137 147 } 138 148 149 /* ------------------------------------------------------ spécifique 640px à 1024px */ 139 150 @media only screen and (min-width: 640px) and (max-width: 1023px) { 140 151 #wrapper { … … 152 163 } 153 164 165 /* ------------------------------------------------------ spécifique 840px à 1024px */ 154 166 @media only screen and (min-width: 840px) and (max-width: 1023px) { 155 167 #wrapper { … … 161 173 } 162 174 175 /* ------------------------------------------------------ 176 au-delà de 1024px on passe à deux colonnes 177 ------------------------------------------------------ */ 163 178 @media only screen and (min-width: 1024px) { 164 179 #wrapper { … … 167 182 #main { 168 183 width : 100%; 169 margin : 0 - 22%0 0;184 margin : 0 -17em 0 0; 170 185 float : left; 171 186 display: inline; 172 187 } 173 188 #content { 174 margin : 0 30%0 0;189 margin : 0 20em 0 0; 175 190 padding : 0 0 2em 0; 176 191 } 177 192 #sidebar { 178 width : 22%;193 width : 17em; 179 194 float : right; 180 195 } … … 185 200 padding-right: 7%; 186 201 } 187 188 202 #sidebar #blognav div:first-child { 189 203 margin-top: 4.66em; … … 205 219 color: #666; 206 220 } 207 #sidebar div#search p {221 #sidebar div#search:first-child p { 208 222 margin: .33em 0; 209 223 } 210 224 } 211 225 226 /* ------------------------------------------------------ 227 au-delà de 1280px on décale le post-info à gauche 228 ------------------------------------------------------- */ 212 229 @media only screen and (min-width: 1280px) { 213 230 #content { 214 margin : 0 30%0 200px;231 margin : 0 20em 0 200px; 215 232 } 216 233 p.post-info { … … 228 245 } 229 246 247 /* ------------------------------------------------------ au-delà de 1600px */ 230 248 @media only screen and (min-width: 1600px) { 231 249 #wrapper { 232 padding: 0 1 2%;233 } 234 #stickers { 235 padding-right: 1 2%;236 } 237 } 250 padding: 0 10%; 251 } 252 #stickers { 253 padding-right: 10%; 254 } 255 } -
themes/ductile/style.css
r360 r386 25 25 Liens: #666 courant, #ad3f4c titre billet et Lire la suite 26 26 Fond formulaire comm: #eef 27 Fond sidebar: #ededed 27 28 28 29 Thanks to: … … 89 90 h1 a { 90 91 text-decoration: none; 92 color: #333; 91 93 } 92 94 #prelude { … … 104 106 #prelude a, #prelude a:hover, #prelude a:visited { 105 107 position:absolute; 106 left:0 px;108 left:0; 107 109 top:-500px; 108 110 width:1px; … … 123 125 } 124 126 #supranav { 127 font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; 125 128 padding: 0 0 0 4px; 126 129 list-style-type: none; … … 129 132 } 130 133 #supranav li { 131 font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif;132 134 text-transform: uppercase; 133 135 vertical-align: top; … … 547 549 #blognav > div, 548 550 #blogextra > div { 549 background: # f3f2e9;551 background: #ededed; 550 552 margin-bottom: 1em; 551 553 padding: 4px 8px;
Note: See TracChangeset
for help on using the changeset viewer.