Dotclear

Changeset 359:f8482768790a


Ignore:
Timestamp:
06/13/11 18:44:35 (14 years ago)
Author:
kozlika
Branch:
themes
Message:

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

Location:
themes/ductile
Files:
1 added
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/mediaqueries.css

    r355 r359  
    99 
    1010@media only screen and (max-width:480px) { 
     11     #prelude, #blogdesc, #supranav span { 
     12          display: none !important; 
     13          } 
     14 
    1115     h1 { 
    1216          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');  
    2317          } 
    2418     h1 a { 
    25           padding: 6px 3%; 
    26           color: #fff; 
    27           text-shadow: 0 1px 1px #333; 
    28           } 
    29      h1 a:hover, h1 a:focus { 
    30           background: #686867; 
    31           } 
    32      #prelude, #blogdesc { 
    33           display: none; 
    34           } 
     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 
    3539     h2.post-title { 
    3640          font-size: 2.5em; 
    3741          } 
    38      #supranav li { 
    39           display: block !important; 
    40           } 
    41      #supranav li+li { 
    42           border-top: 1px solid #ddd; 
    43           } 
     42 
    4443     #stickers { 
    4544          margin: 0; 
     
    5554          border-left: 8px solid #fff; 
    5655          border-right: 8px solid #fff; 
    57      } 
     56          } 
    5857     #stickers img { 
    5958          display: block; 
     
    7271     #top { 
    7372          padding-top: 24px; 
     73          padding-bottom: 4px; 
    7474          } 
    7575     h1 { 
    7676          font-size: 2em; 
    77           padding-right: 200px; 
    78           } 
    79      h1 a, h1 a:hover, h1 a:focus { 
    80           background-repeat: no-repeat; 
    81           background-position: left top; 
    82           padding-left: 68px; 
    83           background-image: url(img/home-small.png); 
    84           min-height: 44px; 
    85           } 
     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 
    86100     #stickers { 
    87101          position: absolute; 
     
    108122          background-color: #fff; 
    109123          border-bottom: 4px solid #ad3f4c; 
    110      } 
     124          } 
    111125} 
    112126 
     
    142156@media only screen and (min-width: 961px) { 
    143157     #wrapper { 
    144           padding: 0 15%; 
     158          padding: 0 13%; 
    145159          } 
    146160     #main { 
     
    167181          } 
    168182     #stickers { 
    169           padding-right: 15%; 
     183          padding-right: 13%; 
    170184          } 
    171185} 
  • themes/ductile/style.css

    r355 r359  
    2626Titres: #909090 
    2727Fond formulaire comm: #eef 
     28 
     29Thanks to: 
     30Colorzilla wysiwyg gradient editor http://www.colorzilla.com/gradient-editor/ 
    2831*/ 
    2932 
     
    6366     } 
    6467a:hover, a:focus { 
    65      background-color: #eee; 
     68     background-color: #ebebee; 
    6669     text-decoration: none; 
    6770     } 
     
    7881     4. HAUT DE PAGE 
    7982------------------------------------------------------------- */ 
    80  
     83#header { 
     84     text-shadow: 0 1px 1px rgba(0,0,0,.2); 
     85     line-height: 1; 
     86     } 
    8187h1 { 
    8288     font-variant: small-caps; 
    83      line-height: 1; 
    8489     } 
    8590h1 a { 
    8691     text-decoration: none; 
    87      display: inline-block; 
    8892     } 
    8993#prelude { 
     
    9498     color: #fff; 
    9599     font-size: .875em; 
    96      } 
    97 #prelude a { 
    98      color: #fff; 
    99      } 
    100 #prelude a:focus { 
    101      color: #666; 
     100     list-style-type: none; 
     101     } 
     102#prelude li { 
     103     display: inline; 
     104     } 
     105#prelude a, #prelude a:hover, #prelude a:visited { 
     106     position:absolute; 
     107     left:0px; 
     108     top:-500px; 
     109     width:1px; 
     110     height:1px; 
     111     overflow:hidden; 
     112     } 
     113#prelude a:active, #prelude a:focus { 
     114     position:static; 
     115     width:auto; 
     116     height:auto; 
    102117     } 
    103118#blogdesc { 
    104      margin: -8px 0 0 68px; 
     119     margin: 0; 
     120     padding-left: 32px; 
    105121     font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; 
    106122     font-style: italic; 
    107123     color: #909090; 
     124     text-shadow: none; 
    108125     } 
    109126#supranav { 
    110      margin: 24px 0 0; 
    111      padding: 0; 
     127     padding: 0 0 0 2px; 
    112128     list-style-type: none; 
    113      padding: 4px 4px 2px 4px; 
    114      font-size: .875em; 
    115      border-top: 1px solid #ddd; 
    116      border-bottom: 1px solid #ddd; 
     129     line-height: 1.25; 
     130     font-size: .875em; 
    117131     } 
    118132#supranav li { 
    119133     font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; 
    120134     text-transform: uppercase; 
    121      display: inline; 
     135     vertical-align: top; 
    122136     } 
    123137#supranav li a { 
    124      display: inline-block; 
    125      margin-bottom: 2px; 
    126138     text-decoration: none; 
    127      padding: 4px 2em; 
    128139     white-space: nowrap; 
    129      background-color: #F3F2E9; 
     140     margin-bottom: 4px; 
     141     -webkit-border-bottom-left-radius: 7px; 
     142     -moz-border-radius-bottomleft: 7px; 
     143     border-bottom-left-radius: 7px;     
     144     background: transparent url(img/menu.png) no-repeat right top; 
     145 } 
     146#supranav li a:hover, #supranav li a:active, #supranav li a:focus { 
     147     background-color: #ebebee; 
     148     background-position: right -150px; 
     149     } 
     150#supranav li.active a { 
     151     background-position: right -150px; 
     152     } 
     153#supranav li a span { 
     154     display: block; 
     155     text-transform: none; 
     156     text-shadow: none; 
     157     font-family: georgia; 
     158     font-style:italic; 
    130159     } 
    131160 
     
    171200     font-size: .875em; 
    172201     color: #000; 
    173      background: #f4f4f5; 
    174      background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f5), to(#d7d7dC)); 
    175      background: -moz-linear-gradient(top,  #f4f4f5,  #d7d7dC); 
     202     background: rgb(244,244,245); 
     203     background: -moz-linear-gradient(top, rgba(244,244,245,1) 0%, rgba(215,215,220,1) 100%); 
     204     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(244,244,245,1)), color-stop(100%,rgba(215,215,220,1))); 
     205     background: -webkit-linear-gradient(top, rgba(244,244,245,1) 0%,rgba(215,215,220,1) 100%); 
     206     background: -o-linear-gradient(top, rgba(244,244,245,1) 0%,rgba(215,215,220,1) 100%); 
     207     background: -ms-linear-gradient(top, rgba(244,244,245,1) 0%,rgba(215,215,220,1) 100%); 
     208     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f5', endColorstr='#d7d7dc',GradientType=0 ); 
     209     background: linear-gradient(top, rgba(244,244,245,1) 0%,rgba(215,215,220,1) 100%); 
    176210     -moz-border-radius: 4px; 
    177211     -webkit-border-radius: 4px; 
     
    202236     font-weight: normal; 
    203237     margin-bottom: .33em; 
    204      color: #686867; 
     238     color: #000; 
    205239     line-height: 1.17; 
    206240     } 
     
    427461     -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2); 
    428462     box-shadow: 0 1px 2px rgba(0,0,0,.2); 
     463     background: rgb(119,119,119); 
     464     background: -moz-linear-gradient(top, rgba(119,119,119,1) 0%, rgba(85,85,85,1) 100%); 
     465     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(119,119,119,1)), color-stop(100%,rgba(85,85,85,1))); 
     466     background: -webkit-linear-gradient(top, rgba(119,119,119,1) 0%,rgba(85,85,85,1) 100%); 
     467     background: -o-linear-gradient(top, rgba(119,119,119,1) 0%,rgba(85,85,85,1) 100%); 
     468     background: -ms-linear-gradient(top, rgba(119,119,119,1) 0%,rgba(85,85,85,1) 100%); 
     469     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#777777', endColorstr='#555555',GradientType=0 ); 
    429470     color: #eee; 
    430      background: #555; 
    431      background: -webkit-gradient(linear, left top, left bottom, from(#777), to(#555)); 
    432      background: -moz-linear-gradient(top, #777, #555); 
    433      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#777777', endColorstr='#555555');  
    434471     } 
    435472#comment-form input[type=submit]:hover, #comment-form input[type=submit]:focus, 
    436473#comment-form input[type=reset]:hover, #comment-form input[type=reset]:focus { 
    437      background: #777; 
    438      background: -webkit-gradient(linear, left top, left bottom, from(#555), to(#777)); 
    439      background: -moz-linear-gradient(top, #555, #777); 
    440      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#555555', endColorstr='#777777'); 
     474     background: linear-gradient(top, rgba(119,119,119,1) 0%,rgba(85,85,85,1) 100%); 
     475     background: rgb(85,85,85); 
     476     background: -moz-linear-gradient(top, rgba(85,85,85,1) 0%, rgba(119,119,119,1) 100%); 
     477     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(85,85,85,1)), color-stop(100%,rgba(119,119,119,1))); 
     478     background: -webkit-linear-gradient(top, rgba(85,85,85,1) 0%,rgba(119,119,119,1) 100%); 
     479     background: -o-linear-gradient(top, rgba(85,85,85,1) 0%,rgba(119,119,119,1) 100%); 
     480     background: -ms-linear-gradient(top, rgba(85,85,85,1) 0%,rgba(119,119,119,1) 100%); 
     481     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#555555', endColorstr='#777777',GradientType=0 ); 
     482     background: linear-gradient(top, rgba(85,85,85,1) 0%,rgba(119,119,119,1) 100%); 
    441483     text-decoration: none; 
    442484     } 
     
    529571#search #q { 
    530572     float: left; 
    531      width: 80%; 
     573     width: 78%; 
    532574     } 
    533575#search #q:focus { 
     
    556598     } 
    557599#footer p { 
    558      padding: .66em; 
     600     padding: .66em 2em; 
    559601     margin: 0; 
    560602     text-align: right; 
     603     font-size: .875em; 
     604     font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; 
    561605     } 
    562606#footer a { 
  • themes/ductile/tpl/_footer.html

    r354 r359  
    11<div id="footer"> 
     2 
     3<!-- Pour Franck:  
     4Bien penser à appliquer une classe "last" au dernier item 
     5--> 
     6 
    27     <ul id="stickers"> 
    38          <li id="sticker1"><a href="{{tpl:BlogURL}}pages/Contact"><img src="{{tpl:BlogThemeURL}}/img/sticker-contact.png" alt="Contact" /><span>Contact</span></a></li> 
     
    510          <li id="sticker3" class="last"><a href="{{tpl:BlogURL}}pages/About"><img src="{{tpl:BlogThemeURL}}/img/sticker-about.png" alt="À propos" /><span>À propos</span></a></li> 
    611     </ul> 
     12 
    713  <p>{{tpl:SysPoweredBy}}</p> 
    814</div> 
  • themes/ductile/tpl/_top.html

    r355 r359  
    1 <div id="top"> 
    2   <h1><span><a href="{{tpl:BlogURL}}">{{tpl:BlogName encode_html="1"}}</a></span></h1> 
     1<div id="header"> 
     2     <div id="top"> 
     3     <h1><span><a href="{{tpl:BlogURL}}">{{tpl:BlogName encode_html="1"}}</a></span></h1> 
    34   
    4   <!-- # --BEHAVIOR-- publicTopAfterContent --> 
    5   {{tpl:SysBehavior behavior="publicTopAfterContent"}} 
     5     <!-- # --BEHAVIOR-- publicTopAfterContent --> 
     6     {{tpl:SysBehavior behavior="publicTopAfterContent"}} 
     7     </div> 
     8 
     9     <ul id="prelude"> 
     10          <li><a href="#main">{{tpl:lang To content}}</a></li> 
     11          <li><a href="#blognav">{{tpl:lang To menu}}</a></li> 
     12          <li><a href="#search">{{tpl:lang To search}}</a></li> 
     13     </ul> 
     14 
     15     <!-- Pour Franck:  
     16     Il faudrait trouver un moyen pour que  
     17     1. la balise <p /> ne soit présente que si la description est non vide 
     18     2. que l'utilisateur puisse indiquer si oui ou non il souhaite afficher la description (?) 
     19     --> 
     20     <p id="blogdesc">{{tpl:BlogDescription}}</p> 
     21 
     22     <!-- Pour Franck:  
     23     Ajouter un id incrémental 
     24     Par défaut : accueil, archives (rien dans le span) 
     25     --> 
     26     <ul id="supranav"> 
     27          <li id="li1" class="active"><a href="{{tpl:BlogURL}}">Accueil<span> articles récents</span></a></li> 
     28          <li id="li2"><a href="#">Construire un thème<span> tutoriels</span></a></li> 
     29          <li id="li3"><a href="#">Maquettes<span> projets graphiques</span></a></li> 
     30          <li id="li4"><a href="{{tpl:BlogURL}}archive">Archives<span> 2005-2011</span></a></li> 
     31     </ul> 
    632</div> 
    7  
    8 <p id="prelude"><a href="#main">{{tpl:lang To content}}</a> | 
    9 <a href="#blognav">{{tpl:lang To menu}}</a> | 
    10 <a href="#search">{{tpl:lang To search}}</a></p> 
    11  
    12 <p id="blogdesc">{{tpl:BlogDescription}}</p> 
    13  
    14 <ul id="supranav"> 
    15      <li><a href="#">Articles récents</a></li> 
    16      <li><a href="#">Construire un thème</a></li> 
    17      <li><a href="#">Maquettes</a></li> 
    18      <li><a href="#">Archives</a></li> 
    19 </ul> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map