Show
Ignore:
Timestamp:
10/16/08 08:40:54 (14 months ago)
Author:
kaminogoya
Message:

Added the 'automatically hide addressbar' script to index and entry template.

Location:
trunk/iPhoneTemplateSet
Files:
1 added
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/iPhoneTemplateSet/mt-static/themes/iphone-ui/screen.css

    r1099 r1173  
    11body {  
     2    min-height: 420px; 
    23    margin: 0 10px; 
    34    padding: 0; 
     
    1314#header {  
    1415    min-height: 45px; 
    15     margin: 0 -10px; 
     16    margin: 1px -10px 0; 
    1617    border-top: 1px solid #cdd5df; 
    1718    border-bottom: 1px solid #2e3744; 
     
    3839 
    3940/* navigation */ 
    40 .navigation { 
     41.navigation {  
    4142    position: absolute; 
    4243    top: 8px; 
     
    4445    width: auto; 
    4546    height: 30px; 
     47    max-width: 50px; 
    4648    margin: 0; 
    4749    padding: 0 3px; 
     
    5860} 
    5961 
    60 .navigation[rel=home] { 
     62.navigation[rel=home] {  
    6163    right: auto; 
    6264    left: 5px; 
    63     max-width: 55px; 
     65    max-width: 100px; 
    6466    padding-left: 0; 
    6567    border-width: 0 5px 0 13px; 
     
    99101} 
    100102 
    101 .entry > p, 
    102 .entry > div { 
     103.entry > p,  
     104.entry > div {  
    103105    margin: 0 0 1em; 
    104106    line-height: 1.4; 
     
    131133} 
    132134 
    133 #content li { 
     135#content li {  
    134136    position: relative; 
    135137    margin: 0; 
     
    158160#content li abbr.published {  
    159161    position: absolute; 
    160     top: 28px; 
     162    top: 25px; 
    161163    left: 10px; 
    162164    display: block; 
     
    167169} 
    168170 
    169 #content ul.index { 
     171#content ul.index {  
    170172    margin: 0 -10px; 
    171173    border-width: 0 0 1px; 
     
    179181 
    180182#content ul.index li a {  
    181     height: 2em; 
    182 } 
    183  
    184 ul li a { 
     183    height: 35px; 
     184} 
     185 
     186ul li a {  
    185187    display: block; 
    186188    margin: -10px; 
     
    199201} 
    200202 
     203p {  
     204    text-shadow: white 0 1px 0; 
     205} 
     206 
     207pre {  
     208    margin: 1.5em auto; 
     209    padding: 0.8em; 
     210    border: 1px solid #b4b4b4; 
     211} 
     212 
    201213/* footer */ 
    202214#footer {  
     
    206218#footer p {  
    207219    font-size: 13px; 
    208     text-shadow: white 0 1px 0; 
    209 } 
    210  
     220} 
     221 
  • trunk/iPhoneTemplateSet/plugins/iPhoneTemplateSet/config.yaml

    r1099 r1173  
    22name: iPhone Template Set 
    33l10n_class: iPhoneTemplateSet::L10N 
    4 description: Template set for iPhone/iPod Touch 
     4description: <__trans phrase="iPhone Template Set is building a suitable page for the display by iPhone/iPod touch."> 
    55author_name: Taichi Kamingoya 
    66author_link: http://2xup.org/ 
    77plugin_link: http://2xup.org/lab/mtplugins/templatesets/iphonetemplateset 
    8 version: 1.0 
     8version: 1.1 
    99 
    1010template_sets: 
  • trunk/iPhoneTemplateSet/plugins/iPhoneTemplateSet/lib/iPhoneTemplateSet/L10N.pm

    r1075 r1173  
    1 package Sample::iPhoneTemplateSet; 
     1package iPhoneTemplateSet::L10N; 
     2 
    23use strict; 
    3 use base 'MT::Plugin::iPhoneTemplateSet'; 
     4use base qw( MT::Plugin::L10N ); 
    45 
    561; 
  • trunk/iPhoneTemplateSet/plugins/iPhoneTemplateSet/lib/iPhoneTemplateSet/L10N/en_us.pm

    r1075 r1173  
    22 
    33use strict; 
    4 use base 'iPhoneTemplateSet::L10N'; 
     4use base qw( iPhoneTemplateSet::L10N ); 
    55use vars qw( %Lexicon ); 
    6 %Lexicon = ( 
     6 
     7our %Lexicon = ( 
    78); 
    89 
  • trunk/iPhoneTemplateSet/plugins/iPhoneTemplateSet/lib/iPhoneTemplateSet/L10N/ja.pm

    r1075 r1173  
    22 
    33use strict; 
    4 use base 'iPhoneTemplateSet::L10N::en_us'; 
     4use base qw( iPhoneTemplateSet::L10N::en_us ); 
    55use vars qw( %Lexicon ); 
    66 
    7 %Lexicon = ( 
    8 #Template Label 
     7our %Lexicon = ( 
     8    'iPhone Template Set is building a suitable page for the display by iPhone/iPod touch.' => 'iPhone Template Set は iPhone/iPod touch で閲芧するのに適したペヌゞを出力するテンプレヌトセットです。', 
     9    'Main Index (for iPhone)' => 'メむンペヌゞ (for iPhone)', 
     10    'Stylesheet (for iPhone)' => 'スタむルシヌト (for iPhone)', 
     11    'Entry (for iPhone)' => 'ブログ蚘事 (for iPhone)', 
    912); 
    1013 
  • trunk/iPhoneTemplateSet/plugins/iPhoneTemplateSet/templates/entry.mtml

    r1100 r1173  
    77        <title><$mt:EntryTitle$></title> 
    88        <link rel="stylesheet" href="<$mt:BlogURL$>m/styles.css" /> 
     9        <script type="text/javascript"> 
     10            window.onload = function() { 
     11                setTimeout(scrollTo, 100, 0, 1); 
     12            } 
     13        </script> 
    914    </head> 
    1015    <body> 
  • trunk/iPhoneTemplateSet/plugins/iPhoneTemplateSet/templates/index.mtml

    r1100 r1173  
    77        <title><$mt:BlogName$></title> 
    88        <link rel="stylesheet" href="<$mt:BlogURL$>m/styles.css" /> 
     9        <script type="text/javascript"> 
     10            window.onload = function() { 
     11                setTimeout(scrollTo, 100, 0, 1); 
     12            } 
     13        </script> 
    914    </head> 
    1015    <body>