Skip to:
Content

BuddyPress.org

Ticket #7716: 7716.2.patch

File 7716.2.patch, 3.7 KB (added by mercime, 7 years ago)
  • src/bp-templates/bp-nouveau/common-styles/_bp_lists.scss

     
    175175        }
    176176}
    177177
     178.friends-list {
     179
     180        li {
     181
     182                @include medium-up() {
     183                        position: relative;
     184                }
     185
     186                .action {
     187
     188                        @include medium-up() {
     189                                position: absolute;
     190                                top: 15px;
     191                                right: 0;
     192                                text-align: right;
     193                        }
     194                }
     195        }
     196
     197        .item {
     198
     199                @include medium-up() {
     200                        width: 50%;
     201                }
     202        }
     203
     204        .item-title {
     205                text-align: center;
     206
     207                @include medium-up() {
     208                        text-align: left;
     209                }
     210        }
     211
     212        .friends-meta {
     213
     214                @include medium-up() {
     215                        width: 50%;
     216                }
     217        }
     218}
     219
    178220// If logged out we don't display action buttons
    179221// so lets remove the margin right creating the white-space
    180222// for the buttons - max out the item element width.
  • src/bp-templates/bp-nouveau/css/buddypress-rtl.css

     
    980980}
    981981
    982982@media screen and (min-width: 46.8em) {
     983        .friends-list li {
     984                position: relative;
     985        }
     986}
     987
     988@media screen and (min-width: 46.8em) {
     989        .friends-list li .action {
     990                position: absolute;
     991                top: 15px;
     992                left: 0;
     993                text-align: left;
     994        }
     995}
     996
     997@media screen and (min-width: 46.8em) {
     998        .friends-list .item {
     999                width: 50%;
     1000        }
     1001}
     1002
     1003.friends-list .item-title {
     1004        text-align: center;
     1005}
     1006
     1007@media screen and (min-width: 46.8em) {
     1008        .friends-list .item-title {
     1009                text-align: right;
     1010        }
     1011}
     1012
     1013@media screen and (min-width: 46.8em) {
     1014        .friends-list .friends-meta {
     1015                width: 50%;
     1016        }
     1017}
     1018
     1019@media screen and (min-width: 46.8em) {
    9831020        body:not(.logged-in) .bp-list .item {
    9841021                margin-left: 0;
    9851022        }
  • src/bp-templates/bp-nouveau/css/buddypress.css

     
    980980}
    981981
    982982@media screen and (min-width: 46.8em) {
     983        .friends-list li {
     984                position: relative;
     985        }
     986}
     987
     988@media screen and (min-width: 46.8em) {
     989        .friends-list li .action {
     990                position: absolute;
     991                top: 15px;
     992                right: 0;
     993                text-align: right;
     994        }
     995}
     996
     997@media screen and (min-width: 46.8em) {
     998        .friends-list .item {
     999                width: 50%;
     1000        }
     1001}
     1002
     1003.friends-list .item-title {
     1004        text-align: center;
     1005}
     1006
     1007@media screen and (min-width: 46.8em) {
     1008        .friends-list .item-title {
     1009                text-align: left;
     1010        }
     1011}
     1012
     1013@media screen and (min-width: 46.8em) {
     1014        .friends-list .friends-meta {
     1015                width: 50%;
     1016        }
     1017}
     1018
     1019@media screen and (min-width: 46.8em) {
    9831020        body:not(.logged-in) .bp-list .item {
    9841021                margin-right: 0;
    9851022        }
  • src/bp-templates/bp-nouveau/includes/members/template-tags.php

     
    294294                                                'button_attr'       => array(
    295295                                                        'class'           => 'button accept bp-tooltip',
    296296                                                        'rel'             => '',
    297                                                         'data-bp-tooltip' => __( 'Accept', 'buddypress' ),
     297                                                        'data-bp-tooltip' => '',
    298298                                                ),
    299299                                        ), 'reject_friendship' => array(
    300300                                                'id'                => 'reject_friendship',
     
    311311                                                'button_attr'       => array (
    312312                                                        'class'           => 'button reject bp-tooltip',
    313313                                                        'rel'             => '',
    314                                                         'data-bp-tooltip' => __( 'Reject', 'buddypress' ),
     314                                                        'data-bp-tooltip' => '',
    315315                                                ),
    316316                                        ),
    317317                                );