Alex Trofimov 13 lat temu
rodzic
commit
75b51d09fe

+ 12 - 2
template/css/general.css

@@ -84,8 +84,18 @@
 
 /* --------------- social buttons */
 
-.bx-social-sharing .bx-social-sharing-btn {
-    width:150px;
+.bx-social-sharing-btn {
     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
                 continue;
-            $aButtons[] = array ('button' => $sButton);
+            $aButtons[] = array ('button' => $sButton, 'object' => $aButton['object']);
         }
 
         // output

+ 1 - 1
template/social_sharing.html

@@ -2,7 +2,7 @@
 <div class="bx-social-sharing bx-clearfix">
 
     <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__
         </div>
     </bx_repeat:buttons>