PluginProbe
Social Share Buttons / 1.2
Social Share Buttons v1.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 +9 -31 1.301.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' => '',
@@ -168,9 +167,12 @@
168 167 $css = $this->addCSS($normcss, false, 'mb-icon-wrapper', 'normal', $css);
169 168 $css = $this->addCSS('transform', 'translateY(0)', 'mb-icon-wrapper', 'normal', $css);
170 169 $css = $this->addCSS('position', 'absolute', 'mb-icon-wrapper', 'normal', $css);
171 170
172 -
171 + /* $css['mb-label']['hover']['transform'] = 'translateY(0)';
172 + $css['mb-share-count']['hover']['transform'] = 'translateY(0)';
173 + $css['mb-icon-wrapper']['hover']['transform'] = 'translateY(0)';
174 +*/
173 175 $hoverCSS = array(
174 176 // 'display' => 'flex',
175 177 'align-items' => 'center',
176 178 'justify-content' => 'center',
@@ -185,10 +187,11 @@
185 187
186 188
187 189 break;
188 190 case 'hover';
189 -
190 -
191 + /*$color = $css['mb-social']['normal']['background-color'];
192 + $css = $this->addCSS('background-color', 'darken(' . $color . ', 20%)', 'mb-social', 'hover', $css);
193 +*/
191 194 break;
192 195 case 'lift':
193 196 $line_height = intval($args['line_height']) * 1.5;
194 197
@@ -316,18 +319,8 @@
316 319 protected function addStretch($css, $args)
317 320 {
318 321 $css = $this->addCSS('display', 'flex', 'maxsocial', 'normal', $css);
319 322
320 - $orientation = (isset($args['orientation'])) ? $args['orientation'] : false;
321 - $is_static = (isset($args['is_static'])) ? $args['is_static'] : false;
322 -
323 -
324 - if ($orientation == 'vertical')
325 - {
326 - $css = $this->addCSS('flex-direction', 'column', 'maxsocial', 'normal', $css);
327 - }
328 -
329 -
330 323 $css = $this->addCSS('flex', '1.2', 'mb-item', 'hover', $css);
331 324
332 325 $itemcss = array(
333 326 'flex' => 1,
@@ -337,9 +330,9 @@
337 330 'transition' => 'all .2s linear',
338 331 );
339 332 $css = $this->addCSS($itemcss, '','mb-item', 'normal', $css);
340 333
341 - $linkcss = array (
334 + $css = $this->addCSS ( array (
342 335 'display' => 'block',
343 336 'display' => '-webkit-box',
344 337 'display' => '-webkit-flex',
345 338 'display' => '-moz-box',
@@ -349,22 +342,12 @@
349 342 '-webkit-flex-flow' => 'row wrap',
350 343 '-ms-flex-flow' => 'row wrap',
351 344 'flex-flow' => 'row wrap',
352 345 'width' => '100%',
353 - );
354 -
355 - // Changing width on horizontal items will mess the size
356 - if ( true === $is_static)
357 - {
358 - unset($linkcss['width']);
359 - }
360 -
361 -
362 - $css = $this->addCSS ($linkcss ,
346 + ),
363 347 '',
364 348 'mb-social', 'normal', $css);
365 349
366 -
367 350 $css = $this->addCSS('flex', '1.2', 'mb-social', 'hover', $css);
368 351
369 352 // the label
370 353 $css = $this->addCSS ( array (
@@ -648,9 +631,8 @@
648 631
649 632 $statement = 'inline-block';
650 633
651 634 $css = $this->addCSS('display',$statement, $this->items[$i], $pseudo, $css);
652 - // $css = $this->addCSS('opacity','1', $this->items[$i], $pseudo, $css);
653 635 unset($hides[$i]);
654 636 break;
655 637 }
656 638 }
@@ -664,9 +646,8 @@
664 646 unset($hides[$i]);
665 647 $statement = 'inline-block';
666 648
667 649 $css = $this->addCSS('display', $statement, $this->items[$i], $pseudo, $css);
668 - //$css = $this->addCSS('opacity', '1', $this->items[$i], $pseudo, $css);
669 650 }
670 651 }
671 652 else { // if display list is just one item.
672 653 $hides = $this->items;
@@ -673,17 +654,14 @@
673 654 unset($hides[$item]);
674 655
675 656 $statement = 'inline-block';
676 657
677 -
678 658 $css = $this->addCSS('display',$statement,$this->items[$item], $pseudo, $css);
679 - //$css = $this->addCSS('opacity','1',$this->items[$item], $pseudo, $css);
680 659 }
681 660
682 661 foreach($hides as $name => $cname)
683 662 {
684 663 $css = $this->addCSS('display','none', $cname, $pseudo, $css);
685 - //$css = $this->addCSS('opacity','0', $cname, $pseudo, $css);
686 664 }
687 665
688 666 }
689 667