Changeset 3d122f0 in github


Ignore:
Timestamp:
Jun 29, 2012 5:44:47 AM (11 months ago)
Author:
Aleksander Machniak <alec@…>
Children:
8ba01c0
Parents:
e154154
Message:

CSS improvements in mail screen:

  • don't display full-circle image for quota below 100% (but close to, e.g.97%)
  • unified selects style/height,
  • improvements in search box and messagelist footer
Location:
skins/larry
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • skins/larry/mail.css

    rbe72a0f9 r3d122f0  
    6868#messagelistcontainer { 
    6969        top: 0; 
    70         bottom: 32px; 
     70        bottom: 28px; 
    7171        overflow: auto; 
    7272} 
     
    7777        left: 0; 
    7878        right: 0; 
    79         height: 26px; 
    80         padding: 2px; 
     79        height: 22px; 
     80        padding: 2px 4px; 
    8181} 
    8282 
     
    9393        display: inline-block; 
    9494        margin-right: 2em; 
     95        vertical-align: middle; 
    9596} 
    9697 
     
    303304#searchfilter { 
    304305        width: 16em; 
     306    top: 8px; 
     307        position: absolute; 
     308} 
     309 
     310#searchfilter select { 
     311        height: 24px; 
    305312} 
    306313 
     
    332339        position: absolute; 
    333340        top: 4px; 
    334         right: 2px; 
     341        right: 0; 
    335342        width: 20px; 
    336343        height: 18px; 
  • skins/larry/styles.css

    r7dad594 r3d122f0  
    4242textarea { 
    4343        margin: 0; /* Safari by default adds a margin */ 
    44         padding: 4px; 
     44        padding: 3px; 
    4545        border: 1px solid #b2b2b2; 
    4646        border-radius: 4px; 
     
    267267        height: 16px; 
    268268        vertical-align: middle; 
     269        margin-bottom: 1px; 
    269270} 
    270271 
     
    323324.pagenavbuttons { 
    324325        position: relative; 
    325         top: -2px; 
    326326} 
    327327 
     
    12821282        width: 176px; 
    12831283        margin: 0; 
    1284         padding: 5px 26px 2px 38px; 
     1284        margin-top: 8px; 
     1285        padding: 2px 30px 2px 34px; 
    12851286        height: 18px; 
    12861287        background: #f1f1f1; 
    1287         border-color: #a3a3a3; 
     1288        border-color: #ababab; 
    12881289        font-weight: bold; 
     1290        font-size: 11px; 
    12891291} 
    12901292 
    12911293#quicksearchbar #searchmenulink { 
    12921294        position: absolute; 
    1293         top: 5px; 
    1294         left: 8px; 
     1295        top: 12px; 
     1296        left: 6px; 
    12951297} 
    12961298 
    12971299#quicksearchbar #searchreset { 
    12981300        position: absolute; 
    1299         top: 4px; 
     1301        top: 11px; 
    13001302        right: 1px; 
    13011303} 
     
    14571459        text-decoration: none; 
    14581460        color: #333; 
     1461        cursor: pointer; 
    14591462} 
    14601463 
    14611464a.menuselector .handle { 
    14621465        display: inline-block; 
    1463         padding: 3px 32px 0 8px; 
    1464         min-height: 18px; 
     1466        padding: 0 32px 0 6px; 
     1467        height: 20px; 
     1468        line-height: 19px; 
    14651469        text-shadow: 0px 1px 1px #fff; 
    14661470        background: url(images/selector.png) right center no-repeat; 
     
    14761480        background: linear-gradient(top, #dddddd 0%, #f8f8f8 100%); 
    14771481        text-decoration: none; 
    1478 } 
    1479  
    1480 a.dropdownselector { 
    1481         position: absolute; 
    1482         padding: 1px 0; 
    1483         z-index: 1; 
    1484 } 
    1485  
    1486 a.dropdownselector .handle { 
    1487         margin: -1px 0; 
    1488         padding-top: 5px; 
    1489         min-height: 20px; 
    1490         white-space: nowrap; 
    1491         overflow: hidden; 
    1492         text-overflow: ellipsis; 
    14931482} 
    14941483 
     
    15061495html.opera select.decorated { 
    15071496        opacity: 1; 
    1508         height: auto; 
    15091497} 
    15101498 
     
    15161504        border-bottom: 1px solid #333; 
    15171505        text-shadow: 0px 1px 1px #333; 
    1518         padding: 6px 10px; 
     1506        padding: 4px 6px; 
    15191507        outline: none; 
    15201508} 
  • skins/larry/ui.js

    r7dad594 r3d122f0  
    109109 
    110110        mailviewsplit = new rcube_splitter({ id:'mailviewsplitter', p1:'#mailview-top', p2:'#mailview-bottom', 
    111           orientation:'h', relative:true, start:310, min:150, size:0, offset:-22 }); 
     111          orientation:'h', relative:true, start:310, min:150, size:0, offset:-18 }); 
    112112        if (previewframe) 
    113113          mailviewsplit.init(); 
     
    171171      } 
    172172 
    173       var title = $('option', this).first().text(); 
     173      var select = $(this), 
     174        height = Math.max(select.height(), 24) - 2, 
     175        width = select.width() - 22, 
     176        title = $('option', this).first().text(); 
     177 
    174178      if ($('option:selected', this).val() != '') 
    175179        title = $('option:selected', this).text(); 
    176180 
    177       var select = $(this) 
    178         .change(function(){ 
     181      var new_select = $('<a class="menuselector"><span class="handle">' + title + '</span></a>') 
     182        .css('position', 'absolute') 
     183        .offset(select.position()) 
     184        .insertAfter(select); 
     185 
     186      new_select.children().width(width).height(height).css('line-height', (height - 1) + 'px'); 
     187 
     188      select.change(function() { 
    179189          var val = $('option:selected', this).text(); 
    180190          $(this).next().children().html(val); 
    181         }); 
    182  
    183       $('<a class="menuselector dropdownselector"><span class="handle">' + title + '</span></a>') 
    184         .css('position', 'absolute') 
    185         .offset(select.position()) 
    186         .insertAfter(select) 
    187         .children().width(select.outerWidth() - 10); 
    188  
    189       select.parent().css('position', 'relative'); 
     191        }) 
     192        .parent().css('position', 'relative'); 
     193 
     194      // re-set original select width to fix click action and options width in Chrome 
     195      if (bw.chrome) 
     196        select.width(new_select.width()); 
    190197    }); 
    191198 
     
    335342  function update_quota(p) 
    336343  { 
    337     var y = p.total ? Math.ceil(p.percent / 100 * 20) * 24 : 0; 
     344    var step = 24, step_count = 20, 
     345      y = p.total ? Math.ceil(p.percent / 100 * step_count) * step : 0; 
     346 
     347    // never show full-circle if quota is close to 100% but below. 
     348    if (p.total && y == step * step_count && p.percent < 100) 
     349      y -= step; 
     350 
    338351    $('#quotadisplay').css('background-position', '0 -'+y+'px'); 
    339352  } 
Note: See TracChangeset for help on using the changeset viewer.