Skip to:
Content

BuddyPress.org

Changeset 13021


Ignore:
Timestamp:
07/17/2021 11:45:58 AM (4 years ago)
Author:
imath
Message:

Use the same editor stylesheet for Online & Active members blocks

These two blocks are outputing Member avatars the same way. Instead of having two CSS files (one for each block), let's use a common stylesheet for both.

This commit also edit the rtlcss grunt task to make sure the RTL version of this common stylesheet is generated.

Fixes #8530

Location:
trunk
Files:
3 added
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r13007 r13021  
    5252            '!bp-messages/css/blocks/sitewide-notices.css',
    5353            '!bp-blogs/css/blocks/recent-posts.css',
    54             '!bp-members/css/blocks/active-members.css',
    55             '!bp-members/css/blocks/online-members.css'
     54            '!bp-members/css/blocks/member-avatar-blocks.css'
    5655        ],
    5756
     
    217216                    clean: true
    218217                },
    219                 saveUnmodified: false
     218                saveUnmodified: true
    220219            },
    221220            core: {
  • trunk/src/bp-members/classes/class-bp-members-component.php

    r13007 r13021  
    881881                        'bp-block-components',
    882882                    ),
    883                     'editor_style'       => 'bp-online-members-block',
    884                     'editor_style_url'   => plugins_url( 'css/blocks/online-members.css', dirname( __FILE__ ) ),
     883                    'editor_style'       => 'bp-member-avatar-blocks',
     884                    'editor_style_url'   => plugins_url( 'css/blocks/member-avatar-blocks.css', dirname( __FILE__ ) ),
    885885                    'attributes'         => array(
    886886                        'title'      => array(
     
    907907                        'bp-block-components',
    908908                    ),
    909                     'editor_style'       => 'bp-active-members-block',
    910                     'editor_style_url'   => plugins_url( 'css/blocks/active-members.css', dirname( __FILE__ ) ),
     909                    'editor_style'       => 'bp-member-avatar-blocks',
     910                    'editor_style_url'   => plugins_url( 'css/blocks/member-avatar-blocks.css', dirname( __FILE__ ) ),
    911911                    'attributes'         => array(
    912912                        'title'      => array(
Note: See TracChangeset for help on using the changeset viewer.