Changeset 105

Show
Ignore:
Timestamp:
04/21/07 04:34:32 (3 years ago)
Author:
eevee
Message:

Styled type chart.

Location:
veekun/branches/layout/templates
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • veekun/branches/layout/templates/dex/list/types.tt

    r31 r105  
     1[% PROCESS 'dex/common.tt' %] 
     2 
    13<h1>Type Chart</h1> 
    2 <p>Values are for a move with the type on the left attacking a Pok&eacute;mon with a type on the top.  For a Pok&eacute;mon with two types, look up each of its types individually and multiply.</p> 
     4<p>These modifiers are for a move with the type from the left attacking a Pok&eacute;mon with the type from the top.  For a Pok&eacute;mon with two types, look up the modifier for each of its types and multiply them.</p> 
    35<p>Highlighted cells are those that changed after RBY; the tooltip contains the old value.</p> 
    4 <table class="dex-typelist" cellspacing="1"> 
    5 <tr><th></th> 
     6<p>Also, this page doesn't fit on 800x600 and I'm not sure how to fix it.</p> 
     7<table class="dex-table" cellspacing="0"> 
     8<tr class="heading"><th></th> 
    69[% FOREACH type IN TypeNames %] 
    7 <th><a href="[% dex_uri('types', type) %]"><img src="/dex-images/typeicons/[% type %].png" alt="[% type %]" title="[% type %]"/></a></th> 
     10<th class="type">[% type_name(type) %]</th> 
    811[% END %] 
    912</tr> 
     13[% color = 1 %] 
    1014[% FOREACH type_atk IN TypeNames %] 
    11 <tr> 
    12 <th class="left"><a href="[% dex_uri('types', type_atk) %]"><img src="/dex-images/typeicons/[% type_atk %].png" alt=""/> [%+ type_atk %]</a></th> 
     15<tr class="color[% color %]"> 
     16<th class="type">[% type_name(type_atk) %]</th> 
    1317[%     FOREACH type_def IN TypeNames %] 
    1418[%         effect = type_effect(type_atk, type_def) %] 
    1519[%         old_effect = type_effect_old(type_atk, type_def) %] 
    16 <td class="typemod-[% effect %][% " typemod-changed" IF effect != old_effect %]" title="[% type_atk %] is [% effect %]% effective against [% type_def %][% "; " _ old_effect _ "% in RBY" IF effect != old_effect %]">[% ModLabels.$effect %]</td> 
     20<td class="type typemod-[% effect %][% " typemod-changed" IF effect != old_effect %]" title="[% type_atk %] is [% effect %]% effective against [% type_def %][% "; " _ old_effect _ "% in RBY" IF effect != old_effect %]">[% effect == 100 ? '-' : ModLabels.$effect %]</td> 
    1721[%     END %] 
    1822</tr> 
     23[%     color = 3 - color %] 
    1924[% END %] 
    2025</table> 
  • veekun/branches/layout/templates/style/dex.tt

    r101 r105  
    44.typemod-400 { color: #a64b4b; } 
    55.typemod-200 { color: #a64b8f; } 
    6 .typemod-100 { color: #4b4ba6; } 
     6.typemod-100 { color: #a6a6a6; } 
    77.typemod-50  { color: #4b8fa6; } 
    88.typemod-25  { color: #4ba64b; } 
    9 .typemod-0   { color: #a6a6a6; } 
     9.typemod-0   { color: #000000; } 
    1010.typemod-na  { color: #535353; } 
    11 .typemod-400, .typemod-200, .typemod-100, .typemod-50, .typemod-25, .typemod-0 { font-weight: bold; } 
     11.typemod-400, .typemod-200, /* .typemod-100, */ .typemod-50, .typemod-25, .typemod-0 { font-weight: bold; } 
     12.typemod-changed { background: url(/images/bg-fade.png) #f2d3c9 fixed left bottom no-repeat; } 
    1213 
    1314p.dex-navigation { text-align: center; position: relative; padding: 0.25em; }