Dotclear

Changeset 487:1c08e5071032 for themes


Ignore:
Timestamp:
07/02/11 11:56:39 (14 years ago)
Author:
kozlika
Branch:
themes
Message:

[Ductile] Archives, step 2.

Location:
themes/ductile
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/style.css

    r470 r487  
    121121     font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; 
    122122     font-style: italic; 
    123      color: #909090; 
     123     color: #888; 
    124124     text-shadow: none; 
    125125     } 
     
    697697.little-text { font-size : .875em;} 
    698698.little-upper-text { font-size : .875em; text-transform : uppercase; } 
     699hr.hidden {background: #fff; color: #fff; border-color: #fff; } 
    699700 
    700701 
     
    708709 
    709710.dc-archive #content { 
    710      margin-left: 0; 
     711     margin: 0 18em 0 0; 
    711712     } 
    712713.arch-block { 
    713      float: left; 
    714      display: inline; 
    715      margin-right: 4em; 
    716      margin-bottom: 3em; 
    717      } 
    718 .arch-block h3, .dc-archive #blogextra h2 { 
     714     display: inline-block; 
     715     margin: 0 5em 2em 0; 
     716     vertical-align: top; 
     717     } 
     718.arch-block h3 { 
     719     margin-bottom: 1em; 
    719720     font-size: 1.2em; 
    720721     font-style: italic; 
    721722     font-weight: normal; 
    722      margin-bottom: 2em; 
    723      } 
    724 .arch-block ul { 
     723     text-transform: lowercase; 
     724     } 
     725.arch-block h4 { 
     726     font-family: "Franklin gothic medium","arial narrow","DejaVu Sans Condensed","helvetica neue",helvetica,sans-serif; 
     727     font-weight: normal; 
     728     font-size: 1.1em; 
     729     margin-bottom: 0; 
     730     margin-top: 0; 
     731     } 
     732.arch-block ul, .dc-archive #blogextra ul { 
    725733     list-style-type: none; 
    726734     margin: 0; 
    727735     padding: 0; 
    728736     } 
    729  
     737.arch-block ul ul { 
     738     margin-left: 20px; 
     739     } 
     740 
     741#by-date { 
     742     margin-right: 0; 
     743     margin-bottom: 1em; 
     744     } 
     745#by-date h3 { 
     746     margin-bottom: 0; 
     747     } 
     748.fromto { 
     749     margin-top: 0; 
     750     margin-bottom: 1.5em; 
     751     font-size: .875em; 
     752     font-style: italic; 
     753     } 
     754#by-date div { 
     755     display: inline-block; 
     756     vertical-align: top; 
     757     margin: 0; 
     758     width: 10em; 
     759     } 
     760#by-date ul { 
     761     margin-bottom: 1em; 
     762     } 
     763#by-date span { 
     764     font-size: .875em; 
     765     } 
     766 
     767#by-cat ul { 
     768     background: transparent url(img/vline.png) repeat-y; 
     769     } 
     770#by-cat ul ul { 
     771     margin: .5em 0 0 .5em; 
     772     } 
     773#by-cat ul li { 
     774     padding: .2em .2em .2em 20px; 
     775     background: transparent url(img/hline.png) no-repeat left .82em; 
     776     } 
     777#by-cat ul li:last-child { 
     778     background-image: url(img/last-hline.png); 
     779     } 
     780#by-tag .tag0 { color: #909090; font-size: 90%; } 
     781#by-tag .tag10 { color: #828282; font-size: 92%; } 
     782#by-tag .tag20 { color: #737373; font-size: 94%; } 
     783#by-tag .tag30 { color: #656565; font-size: 96%; } 
     784#by-tag .tag40 { color: #484848; font-size: 98%; } 
     785#by-tag .tag50 { color: #3A3A3A; font-size: 100%; } 
     786#by-tag .tag60 { color: #2B2B2B; font-size: 102%; } 
     787#by-tag .tag70 { color: #1D1D1D; font-size: 104%; } 
     788#by-tag .tag80 { color: #0E0E0E; font-size: 106%; } 
     789#by-tag .tag90 { color: #030303; font-size: 108%; } 
     790#by-tag .tag100 { color: #000; font-size: 110%;} 
     791 
     792 
     793.dc-archive #search { 
     794     padding: 4px; 
     795     } 
     796.dc-archive #blogextra div { 
     797     background-color: transparent; 
     798     margin-bottom: 1em; 
     799     padding: 4px; 
     800     border: 1px solid #ccc; 
     801     -webkit-box-shadow: none; 
     802     -moz-box-shadow: none; 
     803     -o-box-shadow: none; 
     804     box-shadow: none; 
     805     } 
     806.dc-archive #blogextra h2 { 
     807     margin-bottom: .33em; 
     808     }     
     809      
    730810.dc-archive-month h2.post-title { 
    731811     font-size: 1.3em; 
  • themes/ductile/tpl/archive.html

    r470 r487  
    5050  <div class="content-inner"> 
    5151 
    52           <div id="by-date" class="arch-block"> <!-- by date --> 
     52<!-- entries sorted by date --> 
     53          <div id="by-date" class="arch-block"> 
    5354               <h3>{{tpl:lang By date}}</h3> 
    54           <tpl:Archives> 
     55               <p class="fromto">{{tpl:lang From}} <tpl:Entries no_content="1" order="asc" lastn="1"><a href="{{tpl:EntryURL}}">{{tpl:EntryDate format="%d %B %Y"}}</a></tpl:Entries> {{tpl:lang to}} <tpl:Entries no_content="1" order="desc" lastn="1"><a href="{{tpl:EntryURL}}">{{tpl:EntryDate format="%d %B %Y"}}</a></tpl:Entries></p> 
     56          <tpl:Archives order="asc"> 
    5557              <tpl:ArchivesYearHeader> 
    5658               <div> 
     
    6062                     <li><a href="{{tpl:ArchiveURL}}" 
    6163                     title="{{tpl:ArchiveDate encode_html="1"}}">{{tpl:ArchiveDate encode_html="1" format="%B"}}</a> 
    62                      ({{tpl:ArchiveEntriesCount}})</li> 
     64                     <span>({{tpl:ArchiveEntriesCount}})</span></li> 
    6365                   <tpl:ArchivesYearFooter> 
    6466                </ul> 
     
    6769          </tpl:Archives> 
    6870       </div> 
     71        
     72       <hr class="hidden" /> 
     73 
     74<!-- entries sorted by others criterias -->   
     75          <tpl:Categories level="1"> 
     76               <tpl:CategoriesHeader> 
     77                    <div id="by-cat" class="arch-block"> 
     78                    <h3>{{tpl:lang By category}}</h3> 
     79                    <ul> 
     80               </tpl:CategoriesHeader> 
     81                    <li><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> 
     82                    <tpl:CategoryFirstChildren> 
     83                         <tpl:CategoriesHeader> 
     84                         <ul> 
     85                         </tpl:CategoriesHeader> 
     86                              <li><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a></li>                     
     87                         <tpl:CategoriesFooter> 
     88                         </ul> 
     89                         </tpl:CategoriesFooter> 
     90                    </tpl:CategoryFirstChildren>             
     91                    </li> 
     92               <tpl:CategoriesFooter> 
     93               </ul> 
     94               </div> 
     95               </tpl:CategoriesFooter> 
     96          </tpl:Categories> 
    6997      
    70           <div id="by-cat" class="arch-block"> <!-- by cat --> 
    71                <h3>{{tpl:lang By category}}</h3> 
    72                <tpl:Widget id="categories"> 
    73                     <setting name="title"></setting> 
    74                </tpl:Widget> 
     98          <tpl:Tags sortby="count" order="desc"> 
     99               <tpl:TagsHeader> 
     100               <div id="by-tag" class="arch-block"> 
     101                    <h3>{{tpl:lang By tag}}</h3> 
     102                    <ul> 
     103               </tpl:TagsHeader> 
     104                         <li><a href="{{tpl:TagURL}}" class="tag{{tpl:TagRoundPercent}}">{{tpl:TagID}}</a></li> 
     105               <tpl:TagsFooter> 
     106                    </ul>      
     107               </div> 
     108               </tpl:TagsFooter> 
     109          </tpl:Tags> 
     110           
     111          <hr class="hidden" /> 
     112 
     113<!-- others things -->         
     114          <div class="arch-block"> 
     115               <tpl:Entries type="page" no_content="1"> 
     116                    <tpl:EntriesHeader><h3>{{tpl:lang Pages}}</h3> 
     117                         <ul></tpl:EntriesHeader> 
     118                         <li><a href="{{tpl:EntryURL}}">{{tpl:EntryTitle encode_html="1"}}</a></li> 
     119                    <tpl:EntriesFooter></ul></tpl:EntriesFooter> 
     120               </tpl:Entries> 
    75121          </div> 
    76122      
    77           <div id="by-tag" class="arch-block"> <!-- by tag --> 
    78                <h3>{{tpl:lang By tag}}</h3> 
    79                <ul> 
    80                     <tpl:MetaData type="tag"> 
    81                          <li><a href="{{tpl:MetaURL}}" class="tag{{tpl:MetaRoundPercent}}">{{tpl:MetaID}}</a></li> 
    82                     </tpl:MetaData> 
    83                </ul>      
    84           </div> 
    85       
    86           <div id="aside" class="arch-block"> <!-- others --> 
    87                <h3>{{tpl:lang Pages}}</h3> 
    88                <tpl:Widget id="pages"> 
    89                          <setting name="title"></setting> 
    90                          <setting name="homeonly">0</setting> 
    91                     </tpl:Widget> 
    92           </div> 
    93                      
    94123  </div> <!-- End .content-inner --> 
    95124   
     
    104133 
    105134  <div id="blogextra"> 
    106           <tpl:Widget id="bestof"> 
    107                <setting name="homeonly">0</setting> 
    108           </tpl:Widget> 
     135          {{tpl:Widgets type="extra"}} 
     136     </div> 
     137 
    109138  </div> <!-- End #blogextra --> 
    110139</div> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map