Changeset 1090 for trunk


Ignore:
Timestamp:
12/22/09 19:58:35 (2 years ago)
Author:
bogdan2412
Message:

Small CSS fixes from live and a change to the round textblock delete regex.

Location:
trunk/www
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/controllers/round.php

    r1086 r1090  
    293293    $options = pager_init_options(); 
    294294 
    295     $textblock_list = textblock_grep('%"'.$round_id.'"%', '%', false, $options['first_entry'], 
    296                                      $options['display_entries']); 
     295    // This regexp tries to search for the round id inside of a macro 
     296    // and makes sure that it is preceded and succeded by a character 
     297    // which is not valid for a round identifier to avoid problems 
     298    // with ids that are included in each other 
     299    $regexp = "==[^\n]*[^a-z0-9_.-]".preg_quote($round_id)."[^a-z0-9_.-][^\n]*=="; 
     300    $textblock_list = textblock_grep( 
     301        $regexp, '%', true, 
     302        $options['first_entry'], $options['display_entries'] 
     303    ); 
     304    $entries = textblock_grep_count($regexp, '%', true); 
    297305 
    298306    for ($i = 0; $i < count ($textblock_list); ++$i) { 
     
    313321    $view['form_values'] = $values; 
    314322    $view['form_errors'] = $errors; 
    315     $entries = textblock_grep_count('%"'.$round_id.'"%', '%', false); 
    316323    $view['total_entries'] = $entries['cnt']; 
    317324    $view['first_entry'] = $options['first_entry']; 
  • trunk/www/format/format.php

    r1080 r1090  
    164164 
    165165    $result = ""; 
    166     $result .= "<div class=\"tiny-user\">"; 
     166    $result .= "<span class=\"tiny-user\">"; 
    167167    $result .= format_link($user_url, 
    168168                           format_user_avatar($user_name, 16, 16, false).$user_fullname, 
     
    172172               .format_link($user_url, $user_name) 
    173173               ."</span> "; 
    174     $result .= "</div>"; 
     174    $result .= "</span>"; 
    175175 
    176176    return $result; 
  • trunk/www/static/css/screen.css

    r1083 r1090  
    6969    background-color: #B7D285; 
    7070    -moz-border-radius: 10px; 
     71    -webkit-border-radius: 10px; 
    7172} 
    7273 
     
    403404    clear: right; 
    404405    padding-left: 0.5em; 
    405     -moz-border-radius-bottomleft:8px; 
    406     -moz-border-radius-bottomright:8px; 
    407     -moz-border-radius-topleft:8px; 
    408     -moz-border-radius-topright:8px; 
     406    -moz-border-radius: 8px; 
     407    -webkit-border-radius: 8px; 
    409408} 
    410409 
     
    476475    background: #f6f6f6 url(../images/documents_16.gif) no-repeat 5px center ; 
    477476    font-size:11px; 
    478     -moz-border-radius-bottomleft:8px; 
    479     -moz-border-radius-bottomright:8px; 
    480     -moz-border-radius-topleft:8px; 
    481     -moz-border-radius-topright:8px; 
     477    -moz-border-radius: 8px; 
     478    -webkit-border-radius: 8px; 
    482479    color:#555; 
    483480    line-height: 1.5em; 
     
    789786    margin: .5em; 
    790787    line-height: 2em; 
    791     width: 95%; /* IE FIX */ 
     788    width: 99%; /* IE FIX */ 
    792789} 
    793790 
     
    878875    padding: .5em; 
    879876    background-color: #f0f0f0; 
    880     -moz-border-radius-bottomleft:8px; 
    881     -moz-border-radius-bottomright:8px; 
    882     -moz-border-radius-topleft:8px; 
    883     -moz-border-radius-topright:8px; 
     877    -moz-border-radius: 8px; 
     878    -webkit-border-radius: 8px; 
    884879} 
    885880 
     
    900895.vmenu li a { 
    901896    display: block; 
    902     width: 95%; 
     897    width: 98%; 
    903898    padding-left: .4em; 
    904899} 
     
    10741069    margin: 0; 
    10751070    -moz-border-radius: 10px; 
     1071    -webkit-border-radius: 10px; 
    10761072} 
    10771073 
     
    11571153 
    11581154/* User badges */ 
    1159 div.tiny-user { 
     1155.tiny-user { 
    11601156    height: 24px; 
    1161     display:inline; 
    1162 } 
    1163  
    1164 div.tiny-user a { 
     1157} 
     1158 
     1159.tiny-user a { 
    11651160    text-decoration: none; 
    11661161} 
    11671162 
    1168 div.tiny-user .username { 
     1163.tiny-user .username { 
    11691164    font-weight:bold; 
    11701165} 
    11711166 
    1172 div.tiny-user img { 
     1167.tiny-user img { 
    11731168    border:1px solid #D8D6CB; 
    11741169    background:#fff; 
     
    11981193/* monitor */ 
    11991194table.monitor { 
    1200     width: 95%; /* Fix IE */ 
    1201     margin: .5em 0 2em 0; 
     1195    width: 99%; /* Fix IE */ 
     1196    margin: .5em auto 2em auto; 
    12021197} 
    12031198 
     
    12941289 
    12951290table.registered-users { 
    1296     width: 95%; 
     1291    width: 99%; 
    12971292} 
    12981293 
     
    13501345    line-height: 1.2em; 
    13511346    -moz-border-radius: 7px; 
     1347    -webkit-border-radius: 7px; 
    13521348} 
    13531349 
     
    14111407    padding: .2em; 
    14121408    -moz-border-radius: 7px; 
     1409    -webkit-border-radius: 7px; 
    14131410} 
    14141411 
     
    14271424    background-color: #f6f6f6; 
    14281425    -moz-border-radius: 5px; 
     1426    -webkit-border-radius: 5px; 
    14291427} 
    14301428 
     
    14381436    padding: 0.3em; 
    14391437    display: table; 
    1440     width: 95%; 
     1438    width: 99%; 
    14411439    margin: 0em auto; 
    14421440    text-align: center; 
    14431441    line-height: 2em; 
    14441442    -moz-border-radius: 7px; 
     1443    -webkit-border-radius: 7px; 
    14451444} 
    14461445 
Note: See TracChangeset for help on using the changeset viewer.