[300] | 1 | @charset "UTF-8"; |
---|
[631] | 2 | /* -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
| 3 | # This file is part of Ductile, a theme for Dotclear |
---|
| 4 | # |
---|
| 5 | # Copyright (c) 2011 - Association Dotclear |
---|
| 6 | # Licensed under the GPL version 2.0 license. |
---|
| 7 | # See LICENSE file or |
---|
| 8 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
| 9 | # |
---|
| 10 | # -- END LICENSE BLOCK ----------------------------------------- */ |
---|
[300] | 11 | |
---|
[308] | 12 | /* seuils retenus : |
---|
[422] | 13 | < 480px: tout en une colonne, sidebar et stickers en bas |
---|
| 14 | > 480px: stickers en haut |
---|
| 15 | > 640px: sidebar toujours en bas mais divisé en deux colonnes |
---|
| 16 | > 1024px: passage à deux colonnes, sidebar à droite |
---|
| 17 | > 1280px: décalage du post-info vers la gauche |
---|
| 18 | > 1600px: marges plus grandes */ |
---|
[308] | 19 | |
---|
[386] | 20 | /* -------------------------------------------------------------------- |
---|
[422] | 21 | Moins de 480px (téléphones) |
---|
[386] | 22 | -------------------------------------------------------------------- */ |
---|
[308] | 23 | @media only screen and (max-width:480px) { |
---|
[497] | 24 | .nosmall { |
---|
[359] | 25 | display: none !important; |
---|
| 26 | } |
---|
[308] | 27 | h1 { |
---|
| 28 | font-size: 1.8em; |
---|
[346] | 29 | } |
---|
| 30 | h1 a { |
---|
[359] | 31 | display: block; |
---|
| 32 | padding: 6px 8px; |
---|
| 33 | background: #f4f4f5; |
---|
[670] | 34 | background-image: -webkit-gradient(linear, left top, left bottom, from( #f4f4f5), to(#d7d7dC)); |
---|
| 35 | background: -webkit-linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
[359] | 36 | background: -moz-linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
[670] | 37 | background: -o-linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
| 38 | background: -ms-linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
| 39 | background: linear-gradient(top, #f4f4f5, #d7d7dC); |
---|
[359] | 40 | border-right: 1px solid #aaa; |
---|
| 41 | border-bottom: 1px solid #ccc; |
---|
[346] | 42 | } |
---|
[497] | 43 | .supranav, #prelude { |
---|
[670] | 44 | border: none; |
---|
[359] | 45 | margin: 8px 0 0; |
---|
[497] | 46 | background: #fff; |
---|
[670] | 47 | padding-left: 0; |
---|
[315] | 48 | } |
---|
[497] | 49 | .supranav li a, #prelude li a { |
---|
[359] | 50 | border-right: 0; |
---|
| 51 | display: block; |
---|
| 52 | padding: 4px 8px; |
---|
| 53 | border-bottom: 1px solid #ccc; |
---|
[497] | 54 | text-decoration: none; |
---|
| 55 | white-space: nowrap; |
---|
| 56 | margin-bottom: 4px; |
---|
| 57 | } |
---|
| 58 | #gotop li { |
---|
[670] | 59 | border-top: 1px solid #ccc; |
---|
[497] | 60 | text-transform: none; |
---|
[670] | 61 | padding-top: 6px; |
---|
[497] | 62 | } |
---|
[632] | 63 | #prelude { |
---|
| 64 | margin: .5em 0 !important; |
---|
| 65 | } |
---|
[497] | 66 | #prelude li a { |
---|
| 67 | background: transparent url(img/menumobile.png) no-repeat right center; |
---|
| 68 | } |
---|
| 69 | #sn-bottom li a { |
---|
| 70 | background: transparent url(img/menumobile.png) no-repeat right top; |
---|
| 71 | } |
---|
| 72 | #gotop li a { |
---|
| 73 | background: transparent url(img/menumobile.png) no-repeat right -150px; |
---|
[339] | 74 | } |
---|
[391] | 75 | .post-title { |
---|
| 76 | font-size: 1.5em; |
---|
| 77 | font-weight: bold; |
---|
| 78 | font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; |
---|
| 79 | } |
---|
| 80 | .post-title a { |
---|
| 81 | font-style: normal; |
---|
| 82 | font-weight: bold; |
---|
[354] | 83 | } |
---|
[670] | 84 | #other-criteria .arch-block, #more-criteria .arch-block { |
---|
| 85 | margin-left: 0 !important; |
---|
| 86 | } |
---|
[354] | 87 | #stickers { |
---|
| 88 | margin: 0; |
---|
| 89 | padding: 0; |
---|
[670] | 90 | border-bottom: 1px solid #fff; |
---|
[354] | 91 | } |
---|
| 92 | #stickers li { |
---|
| 93 | position: relative; |
---|
[401] | 94 | padding: .5em 0; |
---|
[354] | 95 | margin-left: 0; |
---|
[401] | 96 | border-style: solid; |
---|
[670] | 97 | border-width: 1px 0 0 0; |
---|
[401] | 98 | overflow: hidden; |
---|
[359] | 99 | } |
---|
[354] | 100 | #stickers img { |
---|
| 101 | position: absolute; |
---|
[401] | 102 | top: -2px; |
---|
| 103 | clip: rect(0 32px 36px 0); |
---|
| 104 | clip: rect(0, 32px, 36px, 0); |
---|
[354] | 105 | } |
---|
| 106 | #stickers span { |
---|
| 107 | margin-left: 40px; |
---|
| 108 | } |
---|
| 109 | #stickers a { |
---|
| 110 | text-decoration: none; |
---|
| 111 | } |
---|
[623] | 112 | ul, ol, dd { |
---|
[640] | 113 | padding: 0; |
---|
[623] | 114 | } |
---|
[675] | 115 | .post ul, .post ol, .post dd { |
---|
| 116 | margin-left: 1em !important; |
---|
| 117 | } |
---|
[315] | 118 | } |
---|
| 119 | |
---|
[386] | 120 | /* -------------------------------------------------------------------- |
---|
| 121 | Autres (plus de 480px) |
---|
| 122 | -------------------------------------------------------------------- */ |
---|
[315] | 123 | @media only screen and (min-width: 481px) { |
---|
[497] | 124 | .nobig { |
---|
| 125 | display: none; |
---|
| 126 | } |
---|
| 127 | #prelude { |
---|
| 128 | position: absolute; |
---|
| 129 | margin: 0; |
---|
[670] | 130 | padding: 0 0 0 4px; |
---|
[497] | 131 | top: 0; |
---|
| 132 | left: 3px; |
---|
| 133 | color: #fff; |
---|
| 134 | list-style-type: none; |
---|
| 135 | } |
---|
| 136 | #prelude li { |
---|
| 137 | display: inline; |
---|
| 138 | text-transform: none !important; |
---|
| 139 | } |
---|
| 140 | #prelude a, #prelude a:hover, #prelude a:visited { |
---|
| 141 | position:absolute; |
---|
| 142 | left:0; |
---|
| 143 | top:-500px; |
---|
| 144 | width:1px; |
---|
| 145 | height:1px; |
---|
| 146 | overflow:hidden; |
---|
| 147 | background-image: none !important; |
---|
| 148 | } |
---|
| 149 | #prelude a:active, #prelude a:focus { |
---|
| 150 | position:static; |
---|
| 151 | width:auto; |
---|
| 152 | height:auto; |
---|
| 153 | } |
---|
[354] | 154 | #top { |
---|
| 155 | padding-top: 24px; |
---|
[346] | 156 | } |
---|
[670] | 157 | #logo { |
---|
[2566] | 158 | float:left; |
---|
| 159 | margin: 0 32px 0 24px; |
---|
[599] | 160 | } |
---|
| 161 | #logo a { |
---|
| 162 | border: none; |
---|
| 163 | background: transparent; |
---|
| 164 | text-decoration: none; |
---|
| 165 | } |
---|
[315] | 166 | h1 { |
---|
[354] | 167 | font-size: 2em; |
---|
[359] | 168 | padding-right: 240px; |
---|
[367] | 169 | padding-bottom: 4px; |
---|
[360] | 170 | margin-left: 32px; |
---|
[304] | 171 | } |
---|
[497] | 172 | #sn-bottom { |
---|
| 173 | display: none; |
---|
| 174 | } |
---|
| 175 | .supranav { |
---|
[359] | 176 | margin: 36px 0 0; |
---|
| 177 | border-bottom: 1px solid #ccc; |
---|
[670] | 178 | padding: 0 0 0 4px; |
---|
[359] | 179 | } |
---|
[497] | 180 | .supranav li { |
---|
[359] | 181 | display: inline; |
---|
| 182 | padding: 8px 0; |
---|
[672] | 183 | padding-left: 4px; |
---|
[359] | 184 | } |
---|
[497] | 185 | .supranav li a { |
---|
[359] | 186 | display: inline-block; |
---|
[658] | 187 | vertical-align: top; |
---|
[360] | 188 | padding: 8px 32px 8px 28px; |
---|
[359] | 189 | border-right: 1px solid #ccc; |
---|
[549] | 190 | min-height: 2.5em; |
---|
[2566] | 191 | border-radius: 0 0 0 4px; |
---|
[359] | 192 | } |
---|
[497] | 193 | .supranav li a span { |
---|
[359] | 194 | display: block; |
---|
| 195 | } |
---|
[391] | 196 | .post-title { |
---|
| 197 | font-size: 2.5em; |
---|
| 198 | font-weight: normal; |
---|
| 199 | } |
---|
| 200 | .post-title a { |
---|
| 201 | font-style: italic; |
---|
| 202 | font-weight: normal; |
---|
| 203 | } |
---|
[699] | 204 | #blogcustom { |
---|
| 205 | padding: 0 1em; |
---|
| 206 | } |
---|
[354] | 207 | #stickers { |
---|
| 208 | position: absolute; |
---|
| 209 | top: 0; |
---|
| 210 | right: 0; |
---|
[360] | 211 | padding-right: 3%; |
---|
[470] | 212 | font-size: .75em; |
---|
[354] | 213 | } |
---|
| 214 | #stickers li { |
---|
[446] | 215 | display: block; |
---|
[608] | 216 | float: left; |
---|
[446] | 217 | text-align: center; |
---|
| 218 | width: 60px; |
---|
| 219 | padding: 0; |
---|
[354] | 220 | } |
---|
[658] | 221 | #stickers span { |
---|
[446] | 222 | display: block; |
---|
| 223 | text-align: center; |
---|
[658] | 224 | position: absolute; |
---|
| 225 | top: -500px; |
---|
[446] | 226 | } |
---|
| 227 | #stickers a:hover, #stickers a:focus { |
---|
[658] | 228 | background: #fff !important; |
---|
| 229 | } |
---|
| 230 | #stickers a:hover span, #stickers a:focus span { |
---|
[670] | 231 | color: #686867; |
---|
[658] | 232 | position: static; |
---|
| 233 | top: 0; |
---|
[359] | 234 | } |
---|
[2566] | 235 | .comment-info { |
---|
[660] | 236 | clear: left; |
---|
| 237 | float: left; |
---|
| 238 | width: 10em; |
---|
| 239 | } |
---|
| 240 | .comment-content { |
---|
| 241 | margin-left: 11.5em; |
---|
| 242 | } |
---|
[300] | 243 | } |
---|
| 244 | |
---|
[386] | 245 | /* ------------------------------------------------------ special redimensionnement paysage */ |
---|
[2566] | 246 | @media screen and (max-width:640px) and (orientation: landscape) { |
---|
| 247 | body { |
---|
| 248 | -webkit-text-size-adjust: 70%; |
---|
| 249 | } |
---|
[386] | 250 | } |
---|
| 251 | |
---|
[599] | 252 | /* ------------------------------------------------------ règles communes < 640px */ |
---|
[308] | 253 | @media only screen and (max-width:639px) { |
---|
[386] | 254 | body { |
---|
[304] | 255 | -webkit-text-size-adjust: none; |
---|
| 256 | } |
---|
| 257 | #wrapper { |
---|
[360] | 258 | padding: 0 2%; |
---|
[304] | 259 | } |
---|
| 260 | img { |
---|
[670] | 261 | max-width: 97%; |
---|
[304] | 262 | height: auto; |
---|
[308] | 263 | width: auto\9; /* pour ie8 */ |
---|
[304] | 264 | } |
---|
| 265 | } |
---|
| 266 | |
---|
[386] | 267 | /* ------------------------------------------------------ spécifique 640px à 1024px */ |
---|
[367] | 268 | @media only screen and (min-width: 640px) and (max-width: 1023px) { |
---|
[308] | 269 | #wrapper { |
---|
| 270 | padding: 0 10%; |
---|
| 271 | } |
---|
[2566] | 272 | #blognav, #blogextra { |
---|
[346] | 273 | width: 48%; float:left; |
---|
| 274 | } |
---|
| 275 | #blognav { |
---|
| 276 | margin-right: 4%; |
---|
[360] | 277 | } |
---|
[354] | 278 | #stickers { |
---|
| 279 | padding-right: 10%; |
---|
| 280 | } |
---|
[308] | 281 | } |
---|
| 282 | |
---|
[386] | 283 | /* ------------------------------------------------------ spécifique 840px à 1024px */ |
---|
[367] | 284 | @media only screen and (min-width: 840px) and (max-width: 1023px) { |
---|
[308] | 285 | #wrapper { |
---|
[359] | 286 | padding: 0 13%; |
---|
[308] | 287 | } |
---|
[360] | 288 | #stickers { |
---|
| 289 | padding-right: 13%; |
---|
[2566] | 290 | } |
---|
[360] | 291 | } |
---|
| 292 | |
---|
[2566] | 293 | /* ------------------------------------------------------ |
---|
[386] | 294 | au-delà de 1024px on passe à deux colonnes |
---|
| 295 | ------------------------------------------------------ */ |
---|
[367] | 296 | @media only screen and (min-width: 1024px) { |
---|
[360] | 297 | #wrapper { |
---|
[367] | 298 | padding: 0 7%; |
---|
[360] | 299 | } |
---|
[346] | 300 | #main { |
---|
| 301 | width : 100%; |
---|
[386] | 302 | margin : 0 -17em 0 0; |
---|
[346] | 303 | float : left; |
---|
| 304 | display: inline; |
---|
| 305 | } |
---|
| 306 | #content { |
---|
[386] | 307 | margin : 0 20em 0 0; |
---|
[360] | 308 | padding : 0 0 2em 0; |
---|
[346] | 309 | } |
---|
| 310 | #sidebar { |
---|
[386] | 311 | width : 17em; |
---|
[346] | 312 | float : right; |
---|
| 313 | } |
---|
| 314 | #blognav, #blogextra { |
---|
| 315 | margin : 0; |
---|
| 316 | } |
---|
[354] | 317 | #stickers { |
---|
[367] | 318 | padding-right: 7%; |
---|
[360] | 319 | } |
---|
| 320 | #sidebar #blognav div:first-child { |
---|
| 321 | margin-top: 4.66em; |
---|
| 322 | } |
---|
[2566] | 323 | #sidebar div#search:first-child { |
---|
[360] | 324 | background: none; |
---|
| 325 | margin-top: 0; |
---|
| 326 | margin-bottom: 2em; |
---|
| 327 | padding-bottom: 2px; |
---|
| 328 | font-size: 1em; |
---|
[367] | 329 | border: 1px solid #ddd; |
---|
| 330 | border-top: none 0; |
---|
[360] | 331 | } |
---|
| 332 | #sidebar div#search:first-child h2 { |
---|
| 333 | font-size: 1em; |
---|
| 334 | text-transform: uppercase; |
---|
| 335 | text-shadow: 0 1px 1px rgba(0,0,0,.2); |
---|
| 336 | vertical-align: top; |
---|
| 337 | color: #666; |
---|
| 338 | } |
---|
[386] | 339 | #sidebar div#search:first-child p { |
---|
[360] | 340 | margin: .33em 0; |
---|
[354] | 341 | } |
---|
[502] | 342 | .dc-archive #content { |
---|
| 343 | margin: 0 17em 0 0; |
---|
| 344 | } |
---|
[346] | 345 | } |
---|
| 346 | |
---|
[2566] | 347 | /* ------------------------------------------------------ |
---|
[386] | 348 | au-delà de 1280px on décale le post-info à gauche |
---|
| 349 | ------------------------------------------------------- */ |
---|
[346] | 350 | @media only screen and (min-width: 1280px) { |
---|
[367] | 351 | #content { |
---|
[446] | 352 | margin : 0 20em 0 220px; |
---|
[350] | 353 | } |
---|
[535] | 354 | .full .post-attr, |
---|
[609] | 355 | .simple .post-attr { |
---|
[535] | 356 | margin-left: -220px; |
---|
[2566] | 357 | margin-top: 0; |
---|
| 358 | float: left; |
---|
| 359 | width: 180px; |
---|
[350] | 360 | text-align: right; |
---|
| 361 | } |
---|
[440] | 362 | .post-attr a, .post-info, .post-tags { |
---|
| 363 | padding-right: 0 !important; |
---|
| 364 | } |
---|
[535] | 365 | #content-info, .navlinks, .pagination { |
---|
| 366 | margin-left: -220px !important; |
---|
[609] | 367 | } |
---|
[535] | 368 | .dc-archive #content-info { |
---|
| 369 | margin-left: 0 !important; |
---|
[609] | 370 | } |
---|
[2566] | 371 | #content-info a.feed { |
---|
[535] | 372 | white-space: nowrap; |
---|
[2566] | 373 | } |
---|
[367] | 374 | } |
---|
| 375 | |
---|
[386] | 376 | /* ------------------------------------------------------ au-delà de 1600px */ |
---|
[367] | 377 | @media only screen and (min-width: 1600px) { |
---|
| 378 | #wrapper { |
---|
[386] | 379 | padding: 0 10%; |
---|
[367] | 380 | } |
---|
[354] | 381 | #stickers { |
---|
[386] | 382 | padding-right: 10%; |
---|
[354] | 383 | } |
---|
[670] | 384 | } |
---|