Plugin Directory

Changeset 3458218


Ignore:
Timestamp:
02/10/2026 04:10:58 PM (12 days ago)
Author:
a1tools
Message:

Version 1.4.10: Fix icons pushed up - use flexbox with gap instead of margin, proper alignment

Location:
a1-tools/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • a1-tools/trunk/a1-tools.php

    r3458213 r3458218  
    44 * Plugin URI:        https://tools.a-1chimney.com
    55 * Description:       Connects your WordPress site to the A1 Tools platform for centralized management of contact information, social media links, and business details.
    6  * Version:           1.4.9
     6 * Version:           1.4.10
    77 * Requires at least: 5.0
    88 * Requires PHP:      7.4
     
    2121
    2222// Plugin constants.
    23 define( 'A1TOOLS_VERSION', '1.4.9' );
     23define( 'A1TOOLS_VERSION', '1.4.10' );
    2424define( 'A1TOOLS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2525define( 'A1TOOLS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
     
    10251025    $css = '
    10261026.a1tools-social-icons-styled {
    1027     font-size: 0;
     1027    display: flex;
     1028    flex-wrap: wrap;
     1029    align-items: center;
    10281030}
    10291031.a1tools-social-icons-styled .a1tools-social-icon {
     
    10311033    align-items: center;
    10321034    justify-content: center;
    1033     vertical-align: middle;
    10341035    text-decoration: none !important;
    10351036    transition: all 0.3s ease;
  • a1-tools/trunk/includes/class-a1-tools-elementor-widget.php

    r3458213 r3458218  
    245245                ),
    246246                'selectors'  => array(
    247                     '{{WRAPPER}} .a1tools-social-icon' => 'margin: 0 calc({{SIZE}}{{UNIT}} / 2) {{SIZE}}{{UNIT}};',
     247                    '{{WRAPPER}} .a1tools-social-icons-styled' => 'gap: {{SIZE}}{{UNIT}};',
    248248                ),
    249249            )
     
    270270                ),
    271271                'default'   => 'left',
    272                 'selectors' => array(
    273                     '{{WRAPPER}} .a1tools-social-icons-styled' => 'text-align: {{VALUE}};',
     272                'selectors_dictionary' => array(
     273                    'left'   => 'flex-start',
     274                    'center' => 'center',
     275                    'right'  => 'flex-end',
     276                ),
     277                'selectors' => array(
     278                    '{{WRAPPER}} .a1tools-social-icons-styled' => 'justify-content: {{VALUE}};',
    274279                ),
    275280            )
     
    572577                }
    573578            #>
    574             <a href="#" class="a1tools-social-icon" style="display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; text-decoration:none; transition:all 0.3s ease; box-sizing:border-box; {{ inlineStyle }}">
    575                 <i class="{{ platform.prefix }} {{ platform.icon }}" style="color:inherit; line-height:1;"></i>
     579            <a href="#" class="a1tools-social-icon" style="{{ inlineStyle }}">
     580                <i class="{{ platform.prefix }} {{ platform.icon }}"></i>
    576581            </a>
    577582            <# }); #>
  • a1-tools/trunk/readme.txt

    r3458213 r3458218  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.4.9
     6Stable tag: 1.4.10
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    151151
    152152== Changelog ==
     153
     154= 1.4.10 =
     155* Fixed icons being pushed upwards in header containers
     156* Changed container from font-size:0 hack to proper flexbox layout
     157* Spacing now uses CSS gap instead of margin (eliminates unwanted bottom margin)
     158* Alignment now uses justify-content for proper flex positioning
    153159
    154160= 1.4.9 =
Note: See TracChangeset for help on using the changeset viewer.