Changeset 1549


Ignore:
Timestamp:
11/26/09 18:28:31 (9 months ago)
Author:
anatoo
Message:

modified the page design. fixed cookie bug.

Location:
applications/nimpad/trunk
URL:
http://svn.nequal.jp/applications/nimpad/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • applications/nimpad/trunk/html/resource/css/doc.css

    r1500 r1549  
    22 
    33div.doctype.hatena h3 { 
    4     border-left : 8px solid #aaa; 
     4    background-image : url('../img/header_bg.gif'); 
     5    background-repeat : repeat-y; 
    56    color : #000; 
    67    font-size : 160%; 
    78    font-weight : normal; 
    89    margin : 0 0 1em 0; 
    9     padding : 6px 0 6px 11px; 
     10    padding : 6px 0 6px 18px; 
    1011} 
    1112 
    1213div.doctype.hatena h4 { 
    13     border-left : 8px solid #eee; 
     14    border-left : 5px solid #ddd; 
    1415    font-size : 130%; 
    1516    font-weight : normal; 
    1617    margin : 1.5em 0 1em 0; 
    17     padding : 6px 0 6px 11px; 
     18    padding : 2px 0 2px 9px; 
    1819} 
    1920 
     
    7778 
    7879div.doctype.hatena div.toc { 
    79     background-color : #f9f9f9; 
    80     border : 1px solid #eee; 
    81     display : inline-table; 
    82     font-size : 90%; 
    83     margin : 0.5em 0 1em 0; 
    84     padding : 0.5em 0; 
    85     width : auto; 
    8680} 
    8781 
  • applications/nimpad/trunk/html/resource/css/page.css

    r1500 r1549  
    5858h1 { 
    5959    color : #A4B2D6; 
    60     font-family : 'Arial', 'メイリオ', 'Osaka UI'; 
    61     font-size : 130%; 
     60    font-size : 160%; 
    6261    font-weight : normal; 
    63     letter-spacing : .05em; 
    6462    padding : 0 0 0.1em 0; 
    6563    margin : 0; 
     
    107105} 
    108106 
    109 h2, div#main div.bar div.shadow { 
    110     color : white; 
     107h2 { 
     108    color : #eaeefd; 
    111109    height : 50px; 
    112110    font-family : "Trebuchet MS",sans-serif; 
     
    117115    overflow : hidden; 
    118116    padding : 0 0 0 20px; 
    119     position : relative; 
    120117} 
    121118 
     
    125122} 
    126123 
    127 div#main div.bar div.shadow { 
    128     color : #2C63E8; 
    129     position : absolute; 
    130     top : -1px; 
    131     left : -1px; 
    132     z-index : 0; 
    133 } 
    134  
    135 div#main div.bar:hover div.shadow { 
    136     content : ""; 
    137 } 
    138  
    139 div.bar + div.main-contents-menu { 
    140     margin-top : -10px; 
    141 } 
    142  
    143124div.main-contents-menu { 
    144125    font-size : 90%; 
     
    147128} 
    148129 
    149  
    150130div#main-contents { 
    151131    background-color : #F6f6f6; 
     132    background-color : #fff; 
    152133    margin : 0 20px 0 0 ; 
    153134} 
     
    157138} 
    158139 
    159 div#main-contents-header { 
    160     text-align : right; 
    161     font-size : 90%; 
    162     margin : 0; 
    163     padding : 5px 5px 0 0; 
    164 } 
    165  
    166 div#main-contents-body { 
    167     padding : 5px 5px 0 5px; 
    168 } 
     140 
    169141 
    170142div.half-left, div.half-right { 
     
    174146 
    175147div.half-left > div.entry { 
    176     margin-right : 5px; 
     148    margin-right : 10px; 
    177149} 
    178150 
    179151 
    180152div.entry { 
    181     padding-bottom : 5px; 
     153    padding-bottom : 10px; 
    182154} 
    183155 
     
    227199 
    228200div.entry div.view div.body-footer { 
    229     background-color : #e9e9e9; 
    230201    background-color : #EBE7E0; 
    231202    font-size : 90%; 
     
    239210div.entry div.view div.body-footer span.entry-name a:hover { 
    240211    color : #333; 
    241     text-decoration : none; 
     212    text-decoration : underline; 
    242213} 
    243214 
  • applications/nimpad/trunk/html/resource/css/sub.css

    r1363 r1549  
    2222h1 { 
    2323    color : #A4B2D6; 
    24     font-family : 'Arial', 'メイリオ', 'Osaka UI'; 
    25     font-size : 130%; 
     24    /*font-family : 'Arial', 'メイリオ', 'Osaka UI';*/ 
     25    font-size : 160%; 
    2626    font-weight : normal; 
    2727    letter-spacing : .05em; 
  • applications/nimpad/trunk/html/resource/js/nimpad.js

    r1474 r1549  
    8383    }); 
    8484 
    85      
    86     $("div#main div.bar div.shadow").text($("h2").text()); 
    87      
    8885    var entry_arr = $("div.entry"); 
    8986    if (entry_arr.length == 1 && $("form.entry-dict input[name=isnull]", entry_arr[0]).val() == "true") { 
     
    234231    $("textarea, input", form_dom).attr("disabled", "on"); 
    235232    var comment = null; 
    236     $.cookie(val("wikiname") + "/" + $("input[name=name]", form_dom).val(), textarea.css("height")); 
     233    $.cookie(val("wikiname") + "/" + $("input[name=name]", form_dom).val(), textarea.css("height"), {path : '/', expires : 30}); 
    237234     
    238235    var status = $("span.status", form_dom).text("."); 
     
    312309        ul.addClass("unfolding"); 
    313310        $(this).attr("src", $(this).attr("src").replace("folding", "unfolding")); 
    314         $.cookie("unfolding", "on", {path: '/'}); 
     311        $.cookie("unfolding", "on", {path: '/', expires: 30}); 
    315312    } 
    316313    else { 
    317314        ul.removeClass("unfolding"); 
    318315        $(this).attr("src", $(this).attr("src").replace("unfolding", "folding")); 
    319         $.cookie("unfolding", null, {path: '/'}); 
     316        $.cookie("unfolding", null, {path: '/', expires: 30}); 
    320317    } 
    321318}); 
  • applications/nimpad/trunk/template/com/entry.php

    r1290 r1549  
    2323            <div class="body-footer tl-corner"><div class="tr-corner"><div class="bl-corner"><div class="br-corner"> 
    2424             
    25                 <span class="entry-name"><strong><a href="<?php e($entry->name()) ?>"><?php e($entry->name()) ?></a></strong></span> 
     25                <span class="entry-name"><strong><a href="<?php e($v->encodeName($entry->name())) ?>"><?php e($entry->name()) ?></a></strong></span> 
    2626                <span class="date"<?php if ($entry->isNull()): ?> style="display:none"<?php endif ?>><?php if (!$entry->isNull()) e($v->date($entry->updated_at())); ?></span> 
    2727                 
    2828                <span class="delete-entry"<?php if (!$logged_in || $entry->isNull()): ?> style="display:none"<?php endif ?>> 
    29                     <a href="<?php e($entry->name()) ?>" class="delete-entry-link">削除</a> 
     29                    <a href="<?php e($v->encodeName($entry->name())) ?>" class="delete-entry-link">削除</a> 
    3030                </span> 
    3131            </div></div></div></div> 
  • applications/nimpad/trunk/template/page.php

    r1482 r1549  
    114114            <img src="<?php e(url('/resource/img/hide.gif')) ?>" /> 
    115115        </div> 
    116         <div class="shadow"></div> 
    117116        <h2> 
    118117        <?php echo isset($top) ? 'home: ' : (!isset($view_matched) ? (isset($view_all) ? 'view: ' : '') : 'matched: ') ?><?php e(isset($view_matched) || isset($view_all) ? $query : $v->title($entries)) ?> 
     
    120119    </div></div></div> 
    121120             
    122     <div id="main-contents"><div class="tl-corner"><div class="tr-corner"><div class="bl-corner"><div class="br-corner"> 
    123          
     121    <div id="main-contents">         
     122 
    124123        <div id="main-contents-body"> 
    125124             
     
    141140        </div> 
    142141 
    143     </div></div></div></div></div> 
     142    </div> 
    144143         
    145144    <?php if ($logged_in && !isset($view_all) && !isset($view_matched) && $wiki->home() !== $query): ?> 
Note: See TracChangeset for help on using the changeset viewer.