Alex Trofimov 13 лет назад
Родитель
Сommit
75b51d09fe
3 измененных файлов с 14 добавлено и 4 удалено
  1. 12 2
      template/css/general.css
  2. 1 1
      template/scripts/BxBaseSocialSharing.php
  3. 1 1
      template/social_sharing.html

+ 12 - 2
template/css/general.css

@@ -84,8 +84,18 @@
 
 
 /* --------------- social buttons */
 /* --------------- social buttons */
 
 
-.bx-social-sharing .bx-social-sharing-btn {
-    width:150px;
+.bx-social-sharing-btn {
     float:left;
     float:left;
 }
 }
 
 
+.bx-social-sharing-btn a,
+.bx-social-sharing-btn .sys-icon {
+    font-size:2rem;
+    text-decoration:none;
+    vertical-align:middle;
+}
+.bx-social-sharing-btn span {
+    font-size:1.5rem;
+    vertical-align:middle;
+    margin:0 0.2rem;
+}

+ 1 - 1
template/scripts/BxBaseSocialSharing.php

@@ -80,7 +80,7 @@ class BxBaseSocialSharing extends BxDolSocialSharing
             
             
             if (!isset($sButton) || preg_match('/{[A-Za-z0-9_]+}/', $sButton)) // if not all markers are replaced skip it
             if (!isset($sButton) || preg_match('/{[A-Za-z0-9_]+}/', $sButton)) // if not all markers are replaced skip it
                 continue;
                 continue;
-            $aButtons[] = array ('button' => $sButton);
+            $aButtons[] = array ('button' => $sButton, 'object' => $aButton['object']);
         }
         }
 
 
         // output
         // output

+ 1 - 1
template/social_sharing.html

@@ -2,7 +2,7 @@
 <div class="bx-social-sharing bx-clearfix">
 <div class="bx-social-sharing bx-clearfix">
 
 
     <bx_repeat:buttons>
     <bx_repeat:buttons>
-        <div class="bx-social-sharing-btn bx-def-margin-sec-bottom">
+        <div class="bx-social-sharing-btn bx-social-sharing-__object__ bx-def-margin-sec-left-auto">
             __button__
             __button__
         </div>
         </div>
     </bx_repeat:buttons>
     </bx_repeat:buttons>