Changeset 23279


Ignore:
Timestamp:
Jun 17, 2013, 12:55:28 AM (7 years ago)
Author:
mistic100
Message:

clean code

Location:
extensions/SmiliesSupport/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmiliesSupport/template/markitup/style.markitup.css

    r15997 r23279  
    11/* common */
    22.markItUp * {
    3   margin:0px; padding:0px;
     3  margin:0px;
     4  padding:0px;
    45  outline:none;
    56}
     
    4142  display:none;
    4243  position:absolute;
    43   top:22px; left:0px; 
     44  top:22px;
     45  left:0px; 
    4446  background:#FFF;
    4547  border:1px solid #444;
     
    5355.markItUpHeader ul a {
    5456  display:block;
    55   width:16px; height:16px;
     57  width:16px;
     58  height:16px;
    5659  text-indent:-10000px;
    57   background-position:center center;
    58   background-repeat:no-repeat;
    5960  padding:2px;
    6061  border:1px solid transparent;
     
    7172/* smiliessupport */
    7273#smiliesdiv a {
    73   width:auto;  height:auto;
     74  width:auto;
     75  height:auto;
    7476  border:0;
    7577  padding:0;
    7678}
    77 #smiliesdiv img {
    78   border:1px solid transparent;
    79 }
    80 #smiliesdiv img:hover {
    81   border-color:#08e;
    82 }
  • extensions/SmiliesSupport/template/smiliessupport_page.tpl

    r23234 r23279  
    1010}
    1111else {
    12   jQuery('.markItUpHeader>ul').append('<li class="markItUpSeparator">|</li>');
    13   jQuery('.markItUpHeader>ul').css('width', '+=44');
     12  jQuery('.markItUpHeader>ul').css('width', '+=22');
    1413}
    1514
     
    2120});
    2221
    23 jQuery('#smiliesdiv a').click(function() {
    24   emoticon = jQuery(this).attr("href");
     22jQuery('#smiliesdiv img').click(function() {
     23  emoticon = jQuery(this).attr("title");
    2524  jQuery.markItUp({ replaceWith:emoticon });
    2625  jQuery('#smiliesdiv').css('display','none');
     
    3029
    3130{html_style}{literal}
    32 #smiliesdiv table a { width:auto; height:auto; }
    33 {/literal}{/html_style}
     31#SmiliesSupport table img:hover {
     32  border:1px solid #08e;
     33  margin:-1px;
     34  border-radius:2px;
     35  cursor:pointer;
     36}
     37#allsmilies { background-size:contain;
     38{/literal}
     39background-image:url('{$ROOT_URL}{$REPRESENTANT}'); }
     40{/html_style}
    3441
    3542<ul style="display:none;">
    3643<li id="SmiliesSupport" class="markItUpButton markItUpDropMenu">
    37   <a id="allsmilies" style="background-image:url('{$ROOT_URL}{$REPRESENTANT}');" title="{'Smilies'|@translate}"></a>
     44  <a id="allsmilies" title="{'Smilies'|@translate}"></a>
    3845
    3946  <ul id="smiliesdiv">
    4047    <li><table><tr>{strip}
    4148    {foreach from=$smiliesfiles item=smileyfile}
    42       <td><a href="{$smileyfile.TITLE}"><img src="{$ROOT_URL}{$smileyfile.PATH}"/></a></td>
     49      <td><img src="{$ROOT_URL}{$smileyfile.PATH}" title="{$smileyfile.TITLE}"/></td>
    4350      {$smileyfile.TR}
    4451    {/foreach}
Note: See TracChangeset for help on using the changeset viewer.