Dotclear

Changeset 386:c309e69e93ae


Ignore:
Timestamp:
06/18/11 08:42:01 (14 years ago)
Author:
kozlika
Branch:
themes
Message:

Ductile, jour 5 in progress. Sidebar width now in em unit (and other background-color). Some mobile screen adjustments.

Location:
themes/ductile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/mediaqueries.css

    r367 r386  
    22 
    33/* seuils retenus : 
    4 480px 
    5 640px 
    6 1024px 
    7 1280px 
    8 ----------------- */ 
    9  
     4jusqu'à 480px: tout en une colonne, sidebar et stickers en bas 
     5480px: stickers en haut 
     6640px: sidebar toujours en bas mais divisé en deux colonnes 
     71024px: passage à deux colonnes, sidebar à droite 
     81280px: décalage du post-info vers la gauche 
     91600px: marges plus grandes */ 
     10 
     11/* -------------------------------------------------------------------- 
     12     Téléphones (moins de 480px) 
     13-------------------------------------------------------------------- */ 
    1014@media only screen and (max-width:480px) { 
    1115     #prelude, #blogdesc, #supranav span { 
    1216          display: none !important; 
    1317          } 
    14  
    1518     h1 { 
    1619          font-size: 1.8em; 
     
    2528          border-bottom: 1px solid #ccc; 
    2629          } 
    27  
    2830     #supranav { 
    2931          border:none; 
     
    3638          border-bottom: 1px solid #ccc; 
    3739          } 
    38  
    3940     h2.post-title { 
    40           font-size: 2.5em; 
    41           } 
    42  
     41          font-size: 2em; 
     42          } 
    4343     #stickers { 
    4444          margin: 0; 
     
    5252          padding-left: 0; 
    5353          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; 
    5656          } 
    5757     #stickers img { 
     
    6767          } 
    6868} 
     69 
     70/* -------------------------------------------------------------------- 
     71     Autres (plus de 480px) 
     72-------------------------------------------------------------------- */ 
    6973 
    7074@media only screen and (min-width: 481px) { 
     
    7882          margin-left: 32px; 
    7983          } 
    80  
    8184     #supranav { 
    8285          margin: 36px 0 0; 
     
    9598          display: block; 
    9699          } 
    97  
    98100     #stickers { 
    99101          position: absolute; 
     
    113115          } 
    114116     h2.post-title { 
    115           font-size: 2.8em; 
     117          font-size: 2.6em; 
    116118          } 
    117119     #stickers li a:hover, 
     
    123125} 
    124126 
     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 */ 
    125135@media only screen and (max-width:639px) { 
    126      html { 
     136     body { 
    127137          -webkit-text-size-adjust: none; 
    128138          } 
     
    137147} 
    138148 
     149/* ------------------------------------------------------ spécifique 640px à 1024px */ 
    139150@media only screen and (min-width: 640px) and (max-width: 1023px) { 
    140151     #wrapper { 
     
    152163} 
    153164 
     165/* ------------------------------------------------------ spécifique 840px à 1024px */ 
    154166@media only screen and (min-width: 840px) and (max-width: 1023px) { 
    155167     #wrapper { 
     
    161173} 
    162174 
     175/* ------------------------------------------------------  
     176     au-delà de 1024px on passe à deux colonnes 
     177------------------------------------------------------ */ 
    163178@media only screen and (min-width: 1024px) { 
    164179     #wrapper { 
     
    167182     #main { 
    168183          width : 100%; 
    169           margin : 0 -22% 0 0; 
     184          margin : 0 -17em 0 0; 
    170185          float : left; 
    171186          display: inline; 
    172187          } 
    173188     #content { 
    174           margin : 0 30% 0 0; 
     189          margin : 0 20em 0 0; 
    175190          padding : 0 0 2em 0; 
    176191          } 
    177192     #sidebar { 
    178           width : 22%; 
     193          width : 17em; 
    179194          float : right; 
    180195          } 
     
    185200          padding-right: 7%; 
    186201          } 
    187  
    188202     #sidebar #blognav div:first-child { 
    189203          margin-top: 4.66em; 
     
    205219          color: #666; 
    206220          } 
    207      #sidebar div#search p { 
     221     #sidebar div#search:first-child p { 
    208222          margin: .33em 0; 
    209223          } 
    210224} 
    211225 
     226/* ------------------------------------------------------  
     227     au-delà de 1280px on décale le post-info à gauche 
     228------------------------------------------------------- */ 
    212229@media only screen and (min-width: 1280px) { 
    213230     #content { 
    214           margin : 0 30% 0 200px; 
     231          margin : 0 20em 0 200px; 
    215232          } 
    216233     p.post-info {  
     
    228245} 
    229246 
     247/* ------------------------------------------------------ au-delà de 1600px */ 
    230248@media only screen and (min-width: 1600px) { 
    231249     #wrapper { 
    232           padding: 0 12%; 
    233           } 
    234      #stickers { 
    235           padding-right: 12%; 
    236           } 
    237 } 
     250          padding: 0 10%; 
     251          } 
     252     #stickers { 
     253          padding-right: 10%; 
     254          } 
     255} 
  • themes/ductile/style.css

    r360 r386  
    2525Liens: #666 courant, #ad3f4c titre billet et Lire la suite 
    2626Fond formulaire comm: #eef 
     27Fond sidebar: #ededed 
    2728 
    2829Thanks to: 
     
    8990h1 a { 
    9091     text-decoration: none; 
     92     color: #333; 
    9193     } 
    9294#prelude { 
     
    104106#prelude a, #prelude a:hover, #prelude a:visited { 
    105107     position:absolute; 
    106      left:0px; 
     108     left:0; 
    107109     top:-500px; 
    108110     width:1px; 
     
    123125     } 
    124126#supranav { 
     127     font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; 
    125128     padding: 0 0 0 4px; 
    126129     list-style-type: none; 
     
    129132     } 
    130133#supranav li { 
    131      font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; 
    132134     text-transform: uppercase; 
    133135     vertical-align: top; 
     
    547549#blognav > div,  
    548550#blogextra > div { 
    549      background: #f3f2e9; 
     551     background: #ededed; 
    550552     margin-bottom: 1em; 
    551553     padding: 4px 8px; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map