Changeset be72a0f9 in github


Ignore:
Timestamp:
Jun 28, 2012 1:37:54 PM (11 months ago)
Author:
Thomas Bruederli <thomas@…>
Children:
e154154
Parents:
d901205
Message:

Better style for preview header toggle

Location:
skins/larry
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • skins/larry/iehacks.css

    r1257a8e6 rbe72a0f9  
    144144} 
    145145 
     146#previewheaderstoggle { 
     147        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbfbfb', endColorstr='#e9e9e9', GradientType=1); 
     148} 
     149 
    146150#composeoptionsbox { 
    147151        border-top: 1px solid #999; 
  • skins/larry/mail.css

    r7dad594 rbe72a0f9  
    716716} 
    717717 
     718#preview-allheaders td.header-title, 
    718719#preview-shortheaders td.header-title { 
    719         padding-right: 0; 
     720        padding-left: 0; 
    720721} 
    721722 
    722723#preview-shortheaders td.header { 
    723         padding-right: 12px; 
     724        padding-right: 18px; 
    724725} 
    725726 
    726727#previewheaderstoggle { 
    727     width: 16px; 
    728     height: 16px; 
    729     padding: 0; 
    730     margin-top: 5px; 
    731     position: absolute; 
    732     outline: none; 
    733 } 
    734  
    735 #previewheaderstoggle.iconlink.add { 
    736         background-position: -32px -227px; 
    737 } 
    738  
    739 #previewheaderstoggle.iconlink.remove { 
    740         background-position: -32px -242px; 
     728        display: block; 
     729        position: absolute; 
     730        top: 0; 
     731        left: 0; 
     732        bottom: 0; 
     733        width: 18px; 
     734        padding: 0; 
     735        outline: none; 
     736        background: #f2f2f2; 
     737        background: -moz-linear-gradient(left, #fbfbfb 0, #e9e9e9 100%); 
     738        background: -webkit-gradient(linear, left top, right top, color-stop(0,#fbfbfb), color-stop(100%,#e9e9e9)); 
     739        background: -o-linear-gradient(left, #fbfbfb 0, #e9e9e9 100%); 
     740        background: -ms-linear-gradient(left, #fbfbfb 0, #e9e9e9 100%); 
     741        background: linear-gradient(left, #fbfbfb 0, #e9e9e9 100%); 
     742        border-right: 1px solid #dfdfdf; 
     743} 
     744 
     745#previewheaderstoggle .iconlink { 
     746        display: inline-block; 
     747        position: absolute; 
     748        top: 8px; 
     749        left: 0; 
     750        width: 18px; 
     751        height: 16px; 
     752        background: url(images/buttons.png) -27px -242px no-repeat; 
     753} 
     754 
     755#previewheaderstoggle.remove .iconlink { 
     756        top: auto; 
     757        bottom: 5px; 
     758        background-position: -5px -242px; 
    741759} 
    742760 
     
    775793 
    776794#messagepreviewheader { 
    777         margin: 0 8px; 
    778         padding-bottom: 8px; 
     795        position: relative; 
     796        height: auto; 
     797        margin: 0 8px 0 0; 
     798        padding: 0 0 6px 26px; 
    779799        border-bottom: 2px solid #f0f0f0; 
    780800} 
    781801 
    782 #messagepreviewheader .headers-table { 
    783         margin-left: 8px; 
    784 } 
    785  
    786802#messagepreviewheader h3.subject { 
    787         padding-left: 0; 
     803        padding: 8px 8px 2px 0; 
    788804} 
    789805 
  • skins/larry/svggradient.php

    r041c93c rbe72a0f9  
    1919$svg_stops = ''; 
    2020$color_stops = explode(';', preg_replace('/[^a-f0-9,;%]/i', '', $_GET['c'])); 
     21$gradient_coords = !empty($_GET['h']) ? 'x1="0%" y1="0%" x2="100%" y2="0%"' : 'x1="0%" y1="0%" x2="0%" y2="100%"'; 
    2122$last = count($color_stops) - 1; 
    2223foreach ($color_stops as $i => $stop) { 
     
    3334<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" version="1.0" width="100%" height="100%"> 
    3435<defs> 
    35   <linearGradient id="LG1" x1="0%" y1="0%" x2="0%" y2="100%" spreadMethod="pad"> 
     36  <linearGradient id="LG1" <?php echo $gradient_coords; ?> spreadMethod="pad"> 
    3637    <?php echo $svg_stops; ?> 
    3738  </linearGradient> 
  • skins/larry/svggradients.css

    r1257a8e6 rbe72a0f9  
    138138} 
    139139 
     140#previewheaderstoggle { 
     141        background-image: url(svggradient.php?c=fbfbfb;e9e9e9&h=1); 
     142} 
     143 
    140144 
    141145/*** jqueryui theme ***/ 
  • skins/larry/templates/messagepreview.html

    r6357223 rbe72a0f9  
    1010<h3 class="subject"><roundcube:object name="messageHeaders" valueOf="subject" /></h3> 
    1111 
    12 <a href="#details" id="previewheaderstoggle" class="iconlink add"></a> 
     12<a href="#details" id="previewheaderstoggle"><span class="iconlink"></span></a> 
    1313 
    1414<table class="headers-table" id="preview-shortheaders"><tbody><tr> 
Note: See TracChangeset for help on using the changeset viewer.