Changeset 7a32e9c in github


Ignore:
Timestamp:
Feb 29, 2012 3:44:16 AM (15 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
38dc510
Parents:
2fdc7cd
Message:

Decorate search filter drop-down with a more Larry like style

Location:
skins/larry
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • skins/larry/styles.css

    r186d6e0 r7a32e9c  
    6565textarea.placeholder { 
    6666        color: #aaa; 
    67 } 
    68  
    69 select.selector { 
    70         padding: 2px 4px; 
    7167} 
    7268 
     
    14471443} 
    14481444 
     1445a.dropdownselector { 
     1446        position: absolute; 
     1447        z-index: 1; 
     1448} 
     1449 
     1450select.decorated { 
     1451        position: relative; 
     1452        z-index: 10; 
     1453        opacity: 0; 
     1454        -khtml-appearance: none; 
     1455        padding: 2px 4px; 
     1456        cursor: pointer; 
     1457} 
     1458 
     1459html.opera select.decorated { 
     1460        opacity: 1; 
     1461} 
     1462 
    14491463 
    14501464/*** popup menus ***/ 
  • skins/larry/templates/mail.html

    raf5995d r7a32e9c  
    4646<!-- search filter --> 
    4747<div id="searchfilter"> 
    48         <roundcube:object name="searchfilter" class="searchfilter selector" /> 
     48        <roundcube:object name="searchfilter" class="searchfilter decorated" /> 
    4949</div> 
    5050 
  • skins/larry/ui.js

    r9bd97cc r7a32e9c  
    174174    $('.tabbed').each(function(idx, elem){ init_tabs(elem); }) 
    175175 
    176     $(document.body).bind('mouseup', body_mouseup) 
    177     .bind('keyup', function(e){ 
    178       if (e.keyCode == 27) { 
    179         for (var id in popups) { 
    180           if (popups[id].is(':visible')) 
    181             show_popup(id, false); 
     176    // decorate select elements 
     177    if (!bw.opera) { 
     178      $('select.decorated').each(function(){ 
     179        var title = $('option', this).first().text(); 
     180        if ($('option:selected', this).val() != '') 
     181          title = $('option:selected', this).text(); 
     182        var select = $(this) 
     183          .change(function(){ 
     184            var val = $('option:selected', this).text(); 
     185            $(this).next().children().html(val); 
     186          }); 
     187 
     188        $('<a class="menuselector dropdownselector"><span class="handle">' + title + '</span></a>') 
     189          .offset(select.position()) 
     190          .insertAfter(select) 
     191          .children().width(select.width() - 5); 
     192 
     193        select.parent().css('position', 'relative'); 
     194      }); 
     195    } 
     196 
     197    $(document.body) 
     198      .bind('mouseup', body_mouseup) 
     199      .bind('keyup', function(e){ 
     200        if (e.keyCode == 27) { 
     201          for (var id in popups) { 
     202            if (popups[id].is(':visible')) 
     203              show_popup(id, false); 
     204          } 
    182205        } 
    183       } 
    184     }); 
     206      }); 
    185207 
    186208    $('iframe').load(function(e){ 
Note: See TracChangeset for help on using the changeset viewer.