PluginProbe
Social Share Buttons / 0.9
Social Share Buttons v0.9
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
share-button / classes / styles / round-style.php

round-style.php in Social Share Buttons 0.9, at classes/styles/round-style.php

52 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace MBSocial;
3 defined('ABSPATH') or die('No direct access permitted');
4
5 class roundStyle extends style
6 {
7 public $class = 'round single-meta';
8 public $name = 'round';
9 public $description = ' Round Buttons Basic ';
10
11 public $width = '55';
12 public $height = '55';
13
14 public $has_label = true;
15
16 public function mainCSS()
17 {
18 parent::mainCSS();
19 $this->addFlex();
20 $this->addFlex('mb-label');
21 $this->addFlex('mb-share-count');
22
23
24 $this->addCSS('border-radius', '50% 50%');
25 // $this->addCSS('padding', '8px');
26
27 $this->addCSS('display', 'none', 'mb-icon-wrapper', 'hover');
28
29
30 $css = array(
31 'display' => 'none',
32 'font-size' => '16px',
33
34 );
35
36 $css_hover = array (
37 'display' => 'flex',
38 );
39
40 $this->addCSS ($css, '', 'mb-label');
41 $this->addCSS ($css, '', 'mb-share-count');
42
43 $this->addCSS($css_hover,'', 'mb-label', 'hover');
44 $this->addCSS($css_hover, '', 'mb-share-count', 'hover');
45
46
47 $this->addCSS('transform', 'scale(1.2)', 'maxbutton-social', 'hover');
48 }
49 }
50
51 roundStyle::registerStyle();
52