PluginProbe
Social Share Buttons / 1.1.2
Social Share Buttons v1.1.2
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
← All changes | classes/class-style.php +4 -13 1.151.1.2 View file →
@@ -43,9 +43,8 @@
43 43 'clear' => 'both',
44 44 'z-index' => 9999,
45 45 'position' => 'relative',
46 46 'width' => '100%',
47 - 'max-width' => 'none',
48 47 'line-height' => '1.1',
49 48 'box-sizing' => 'border-box',
50 49 ),
51 50 // 'hover' => '',
@@ -58,8 +57,10 @@
58 57 'box-sizing' => 'border-box',
59 58 'position' => 'relative',
60 59 'line-height' => 'inherit',
61 60 'text-align' => 'center',
61 + 'margin' => '10px 0',
62 +
62 63 ),
63 64 ),
64 65 'mb-social' => array('normal' => // the button
65 66 array ( 'display' => 'flex',
@@ -191,11 +192,8 @@
191 192 case 'hover';
192 193 /*$color = $css['mb-social']['normal']['background-color'];
193 194 $css = $this->addCSS('background-color', 'darken(' . $color . ', 20%)', 'mb-social', 'hover', $css);
194 195 */
195 - //$css = $this->addCSS('transition', 'opacity 1.2s linear', 'mb-icon-wrapper', 'normal', $css);
196 - //$css = $this->addCSS('transition', 'opacity 1.2s linear', 'mb-label', 'hover', $css);
197 -
198 196 break;
199 197 case 'lift':
200 198 $line_height = intval($args['line_height']) * 1.5;
201 199
@@ -440,15 +438,13 @@
440 438 $margin = maxUtils::strip_px($layoutBlock->getValue('button_spacing'));
441 439
442 440 if ($this->collection->orientation == 'vertical')
443 441 {
444 - $width = $width . 'px';
445 - $height = '100%';
442 + $width = '100%';
446 443 }
447 444 else { // horizontal
448 445 $width = ($width + $margin) * 2;
449 446 $width = $width . 'px';
450 - $height = $height . 'px';
451 447 }
452 448
453 449 // attempt to auto-custmz.
454 450 $count_size = (isset($css['mb-share-count']['normal']['font-size'])) ? $css['mb-share-count']['normal']['font-size'] : '13';
@@ -458,9 +454,9 @@
458 454
459 455
460 456 $css = $this->addCSS ( array(
461 457 'width' => $width,
462 - 'height' => $height,
458 + 'height' => $height . 'px',
463 459 'display' => 'flex',
464 460 'align-items' => 'center',
465 461 'justify-content' => 'center',
466 462 //'font-size' => '16px',
@@ -635,9 +631,8 @@
635 631
636 632 $statement = 'inline-block';
637 633
638 634 $css = $this->addCSS('display',$statement, $this->items[$i], $pseudo, $css);
639 - // $css = $this->addCSS('opacity','1', $this->items[$i], $pseudo, $css);
640 635 unset($hides[$i]);
641 636 break;
642 637 }
643 638 }
@@ -651,9 +646,8 @@
651 646 unset($hides[$i]);
652 647 $statement = 'inline-block';
653 648
654 649 $css = $this->addCSS('display', $statement, $this->items[$i], $pseudo, $css);
655 - //$css = $this->addCSS('opacity', '1', $this->items[$i], $pseudo, $css);
656 650 }
657 651 }
658 652 else { // if display list is just one item.
659 653 $hides = $this->items;
@@ -660,17 +654,14 @@
660 654 unset($hides[$item]);
661 655
662 656 $statement = 'inline-block';
663 657
664 -
665 658 $css = $this->addCSS('display',$statement,$this->items[$item], $pseudo, $css);
666 - //$css = $this->addCSS('opacity','1',$this->items[$item], $pseudo, $css);
667 659 }
668 660
669 661 foreach($hides as $name => $cname)
670 662 {
671 663 $css = $this->addCSS('display','none', $cname, $pseudo, $css);
672 - //$css = $this->addCSS('opacity','0', $cname, $pseudo, $css);
673 664 }
674 665
675 666 }
676 667