Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/21/2015 11:43:47 PM (9 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.