Changeset 757


Ignore:
Timestamp:
12/09/12 03:16:36 (2 years ago)
Author:
ofer
Message:

Remove unneeded css and code, fixes for 2012

Location:
trunk/WordPress/plugin/transposh/widgets/dropdown
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/widgets/dropdown/tpw_image_dropdown.css

    r747 r757  
    22 * Widget's css  
    33*/ 
    4 .transposh_flags { 
    5     direction: ltr; 
    6     line-height: 0; 
    7 } 
    8 .transposh_flags a  { 
    9     /*    line-height:11px;*/ 
    10     display: inline; 
    11     /*background: transparent;*/ /* ie8 quirk */ 
    12 } 
    13  
    14 .transposh_flags a:hover { 
    15     /* ie8 quirk */ 
    16     background:transparent 
    17 } 
    18  
    19 .transposh_flags a span, .transposh_flags a img { 
    20     border-color:transparent; 
    21     border-style:solid; 
    22     border-width:1px 3px; 
    23     padding: 0; 
    24 } 
    25  
    26 .transposh_flags a span:hover, .transposh_flags a img:hover { 
    27     border-color:blue 
    28 } 
    29  
    304/* Code adapted from: http://www.jankoatwarpspeed.com/post/2009/07/28/reinventing-drop-down-with-css-jquery.aspx */ 
    315 
     
    3610.dropdown dt a:hover, .dropdown dt a:focus { color:#5d4617; border: 1px solid #5d4617;} 
    3711.dropdown dt a {background:#e4dfcb url(arrow.png) no-repeat scroll right center; display:block; padding-right:20px; 
    38                 border:1px solid #d4ca9a; width:150px;} 
     12                border:1px solid #d4ca9a; width:150px;} 
    3913.dropdown dt a span {cursor:pointer; display:block; padding:5px;} 
    4014.dropdown dd ul { background:#e4dfcb none repeat scroll 0 0; border:1px solid #d4ca9a; color:#C5C0B0; display:none; 
    41                   padding:5px 0px; position:absolute; top:2px; width:auto; min-width:170px; list-style:none;} 
     15                  padding:5px 0px; position:absolute; top:2px; width:auto; min-width:170px; list-style:none;} 
    4216.dropdown span.value { display:none;} 
    4317.dropdown dd ul li a { padding:5px; display:block;} 
    4418.dropdown dd ul li a:hover { background-color:#d0c9af;} 
    4519 
    46 .dropdown img.flag { border:none; vertical-align:middle; margin-left:10px; } 
     20.dropdown img.flag { border:none; vertical-align:middle; margin:0 3px;box-shadow:0 0;border-radius:0 } 
  • trunk/WordPress/plugin/transposh/widgets/dropdown/tpw_image_dropdown.php

    r687 r757  
    4545        echo '<dt><a href="#"><span>' . __('Select language', TRANSPOSH_TEXT_DOMAIN) . '</span></a></dt><dd><ul class="' . NO_TRANSLATE_CLASS . '">'; 
    4646        foreach ($args as $langrecord) { 
    47             $is_selected = $langrecord['active'] ? " selected=\"selected\"" : ""; 
     47        // $is_selected = $langrecord['active'] ? " selected=\"selected\"" : ""; 
    4848            echo '<li><a href="#"><img class="flag" src="' . "$plugpath/img/flags/{$langrecord['flag']}" . '.png" alt="' . $langrecord['langorig'] . '"/> ' . $langrecord['langorig'] . '<span class="value">' . $langrecord['url'] . '</span></a></li>'; 
    4949        } 
Note: See TracChangeset for help on using the changeset viewer.