Skip to:
Content

BuddyPress.org

Ticket #6674: 6674-02.patch

File 6674-02.patch, 5.3 KB (added by hnla, 10 years ago)

Patch addresses standard item-headers empty item-actions in addition to newer cover image headers & moves ruleset to target item-headers generically.

  • src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php

     
    2828
    2929        <div id="item-header-content">
    3030
    31                 <div id="item-buttons">
     31                <div id="item-buttons"><?php
    3232
    33                         <?php
    34 
    3533                        /**
    3634                         * Fires in the group header actions section.
    3735                         *
    3836                         * @since 1.2.6
    3937                         */
    40                         do_action( 'bp_group_header_actions' ); ?>
     38                        do_action( 'bp_group_header_actions' ); ?></div><!-- #item-buttons -->
    4139
    42                 </div><!-- #item-buttons -->
    43 
    4440                <?php
    4541
    4642                /**
  • src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php

     
    8383
    8484                <?php bp_group_description(); ?>
    8585
    86                 <div id="item-buttons">
     86                <div id="item-buttons"><?php
    8787
    88                         <?php
    89 
    9088                        /**
    9189                         * Fires in the group header actions section.
    9290                         *
    9391                         * @since 1.2.6
    9492                         */
    95                         do_action( 'bp_group_header_actions' ); ?>
     93                        do_action( 'bp_group_header_actions' ); ?></div><!-- #item-buttons -->
    9694
    97                 </div><!-- #item-buttons -->
    98 
    9995                <?php
    10096
    10197                /**
  • src/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php

     
    3434                        <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
    3535                <?php endif; ?>
    3636
    37                 <div id="item-buttons">
     37                <div id="item-buttons"><?php
    3838
    39                         <?php
    40 
    4139                        /**
    4240                         * Fires in the member header actions section.
    4341                         *
    4442                         * @since 1.2.6
    4543                         */
    46                         do_action( 'bp_member_header_actions' ); ?>
     44                        do_action( 'bp_member_header_actions' ); ?></div><!-- #item-buttons -->
    4745
    48                 </div><!-- #item-buttons -->
    49 
    5046                <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    5147
    5248                <?php
  • src/bp-templates/bp-legacy/buddypress/members/single/member-header.php

     
    5454
    5555                <?php endif; ?>
    5656
    57                 <div id="item-buttons">
     57                <div id="item-buttons"><?php
    5858
    59                         <?php
    60 
    6159                        /**
    6260                         * Fires in the member header actions section.
    6361                         *
    6462                         * @since 1.2.6
    6563                         */
    66                         do_action( 'bp_member_header_actions' ); ?>
     64                        do_action( 'bp_member_header_actions' ); ?></div><!-- #item-buttons -->
    6765
    68                 </div><!-- #item-buttons -->
    69 
    7066                <?php
    7167
    7268                 /**
  • src/bp-templates/bp-legacy/css/buddypress.css

     
    128128        color: #555;
    129129        font-family: inherit;
    130130        font-size: medium;
    131         height: 20px;
    132131        padding: 6px;
    133         width: 98%;
     132        width: 97.5%;
     133        height: auto;
     134        resize: none;
     135        overflow: hidden;
    134136}
    135137body.no-js #buddypress form#whats-new-form textarea {
    136138        height: 50px;
     139        resize: vertical;
     140        overflow: auto;
    137141}
    138142#buddypress form#whats-new-form #whats-new-options select {
    139143        max-width: 200px;
     
    143147        float: right;
    144148        margin-top: 12px;
    145149}
     150
    146151#buddypress #whats-new-options {
    147152        overflow: auto;
     153        height: auto;
     154        float:left;
     155}
     156
     157#buddypress #whats-new-content #whats-new-actions {
    148158        height: 0;
    149159}
     160
     161#buddypress #whats-new-content.active #whats-new-actions {
     162        width: auto;
     163}
     164
    150165body.no-js #buddypress #whats-new-options {
    151166        height: auto;
    152167}
     
    155170        outline-color: rgba(31, 179, 221, 0.9);
    156171}
    157172
     173#buddypress #whats-new-content, #buddypress #whats-new-actions {
     174        overflow: hidden;
     175}
     176
     177#buddypress #whats-new-textarea {
     178        position: relative;
     179}
     180
     181#buddypress #whats-new-textarea:before,
     182#buddypress #whats-new-textarea:after {
     183        border-color: transparent;
     184        border-style: solid;
     185        content: ' ';
     186        height: 0;
     187        position: absolute;
     188        right: 99.8%;
     189        width: 0;
     190}
     191
     192#buddypress #whats-new-textarea:before {
     193        border-width: 10px;
     194        border-right-color: #ccc;
     195        top: 8px;
     196}
     197
     198#buddypress #whats-new-textarea:after {
     199        border-width: 9px;
     200        border-right-color: #fff;
     201        top: 9px;
     202}
     203
     204#buddypress #whats-new-textarea.active:before {
     205        border-right-color: rgba(31, 179, 221, 0.9) !important;
     206}
     207
     208/* Autosize.js hack for IE10-11 - avoids jumpiness */
     209@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
     210        #buddypress form#whats-new-form textarea {
     211                padding-bottom: 22px;
     212        }
     213}
     214
    158215/*--------------------------------------------------------------
    1592163.1.1 - Activity Listing
    160217--------------------------------------------------------------*/
     
    12621319#buddypress div#item-header div#message.info {
    12631320        line-height: 80%;
    12641321}
     1322#buddypress #item-header #item-buttons:empty {
     1323        display: none;
     1324}
    12651325#buddypress ul.item-list {
    12661326        border-top: 1px solid #eaeaea;
    12671327        width: 100%;