Skip to:
Content

BuddyPress.org

Changeset 10296


Ignore:
Timestamp:
10/21/2015 11:43:47 PM (5 years ago)
Author:
r-a-y
Message:

Cover Image: Remove empty #item-buttons DIV with CSS.

To remove the empty #item-buttons DIV with CSS we have to remove all
whitespace from the DIV and then use the :empty CSS selector.

The other CSS declarations are some improvements with spacing and clearing
regarding the cover image block.

Hat-tip hnla, imath.

Fixes #6674.

Location:
trunk/src/bp-templates/bp-legacy
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r10248 r10296  
    18521852            text-rendering: optimizelegibility;
    18531853            text-shadow: 0px 0px 3px rgba( 0, 0, 0, 0.8 );
    1854             margin: 0;
     1854            margin: 0 0 .6em;
    18551855            font-size:200%;
    18561856        }
     
    18671867
    18681868        #buddypress #item-header-cover-image #item-buttons {
    1869             overflow:hidden;
    1870             margin: 20px 0 10px;
     1869            margin: 0 0 10px;
    18711870            padding: 0 0 5px;
    18721871        }
    18731872
    1874         #buddypress #item-header-cover-image #item-buttons:before {
    1875             content:"\00a0";
     1873        #buddypress #item-header-cover-image #item-buttons:after {
     1874            clear: both;
     1875            content: "";
     1876            display: table;
    18761877        }
    18771878
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php

    r10290 r10296  
    3030        <div id="item-header-content">
    3131
    32             <div id="item-buttons">
    33 
    34                 <?php
     32            <div id="item-buttons"><?php
    3533
    3634                /**
     
    3937                 * @since 1.2.6
    4038                 */
    41                 do_action( 'bp_group_header_actions' ); ?>
    42 
    43             </div><!-- #item-buttons -->
     39                do_action( 'bp_group_header_actions' ); ?></div><!-- #item-buttons -->
    4440
    4541            <?php
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php

    r10290 r10296  
    3636            <?php endif; ?>
    3737
    38             <div id="item-buttons">
    39 
    40                 <?php
     38            <div id="item-buttons"><?php
    4139
    4240                /**
     
    4543                 * @since 1.2.6
    4644                 */
    47                 do_action( 'bp_member_header_actions' ); ?>
    48 
    49             </div><!-- #item-buttons -->
     45                do_action( 'bp_member_header_actions' ); ?></div><!-- #item-buttons -->
    5046
    5147            <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
  • trunk/src/bp-templates/bp-legacy/css/buddypress-rtl.css

    r10295 r10296  
    14081408    list-style: none;
    14091409}
     1410#buddypress #item-buttons:empty {
     1411    display: none;
     1412}
    14101413
    14111414/*--------------------------------------------------------------
  • trunk/src/bp-templates/bp-legacy/css/buddypress.css

    r10295 r10296  
    14081408    list-style: none;
    14091409}
     1410#buddypress #item-buttons:empty {
     1411    display: none;
     1412}
    14101413
    14111414/*--------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.