Skip to:
Content

BuddyPress.org

Changeset 6865


Ignore:
Timestamp:
03/25/2013 07:38:56 PM (14 years ago)
Author:
boonebgorges
Message:

Adds widget styling to bp-legacy buddypress.css. See #4869. Props imath

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-widgets.php

    r6432 r6865  
    1616
    1717        function __construct() {
    18                 $widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest members', 'buddypress' ) );
     18                $widget_ops = array(
     19                        'description' => __( 'A dynamic list of recently active, popular, and newest members', 'buddypress' ),
     20                        'classname' => 'buddypress',
     21                );
    1922                parent::__construct( false, $name = _x( '(BuddyPress) Members', 'widget name', 'buddypress' ), $widget_ops );
    2023
    … …  
    144147
    145148        function __construct() {
    146                 $widget_ops = array( 'description' => __( 'Avatars of users who are currently online', 'buddypress' ) );
     149                $widget_ops = array(
     150                        'description' => __( 'Avatars of users who are currently online', 'buddypress' ),
     151                        'classname' => 'buddypress',
     152                );
    147153                parent::__construct( false, $name = _x( "(BuddyPress) Who's Online", 'widget name', 'buddypress' ), $widget_ops );
    148154        }
    … …  
    208214
    209215        function __construct() {
    210                 $widget_ops = array( 'description' => __( 'Avatars of recently active members', 'buddypress' ) );
     216                $widget_ops = array(
     217                        'description' => __( 'Avatars of recently active members', 'buddypress' ),
     218                        'classname' => 'buddypress',
     219                );
    211220                parent::__construct( false, $name = _x( '(BuddyPress) Recently Active Members', 'widget name', 'buddypress' ), $widget_ops );
    212221        }
  • trunk/bp-groups/bp-groups-widgets.php

    r6661 r6865  
    2525
    2626        function __construct() {
    27                 $widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ) );
     27                $widget_ops = array(
     28                        'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ),
     29                        'classname' => 'buddypress',
     30                );
    2831                parent::__construct( false, _x( '(BuddyPress) Groups', 'widget name', 'buddypress' ), $widget_ops );
    2932
  • trunk/bp-templates/bp-legacy/css/buddypress.css

    r6840 r6865  
    2626        6.9 - Private Messaging Threads
    2727        6.10 - Extended Profiles
     28        6.11 - Widgets
    28297.0 - Media Queries
    2930        7.1 - Smartphones Landscape
    … …  
    13441345
    13451346/*--------------------------------------------------------------
    1346 6.9 - Extended Profiles
     13476.10 - Extended Profiles
    13471348--------------------------------------------------------------*/
    13481349
    … …  
    13881389#buddypress .field-visibility-settings-toggle {
    13891390        font-style: italic;
     1391}
     1392
     1393/*--------------------------------------------------------------
     13946.11 - Extended Profiles
     1395--------------------------------------------------------------*/
     1396
     1397.widget.buddypress div.item-avatar img.avatar {
     1398        float: left;
     1399        margin: 0 10px 15px 0;
     1400}
     1401
     1402.widget.buddypress span.activity {
     1403        display: inline-block;
     1404        font-size: 80%;
     1405        opacity: 0.8;
     1406        padding: 0;
     1407}
     1408
     1409.widget.buddypress div.item-options {
     1410        font-size: 90%;
     1411        margin: 0 0 1em 0;
     1412        padding: 1em 0;
     1413}
     1414
     1415.widget.buddypress div.item{
     1416        margin:0 0 1em 0;
     1417}
     1418
     1419.widget.buddypress div.item-meta,
     1420.widget.buddypress div.item-content {
     1421        font-size: 11px;
     1422        margin-left: 38px;
     1423}
     1424
     1425.widget.buddypress ul.item-list img.avatar {
     1426        height: 20px;
     1427        margin-right: 10px;
     1428        width: 20px;
     1429}
     1430.widget.buddypress div.item-avatar img {
     1431        height: 40px;
     1432        margin: 1px;
     1433        width: 40px;
     1434}
     1435
     1436.widget.buddypress div.avatar-block{
     1437        overflow: hidden;
    13901438}
    13911439
Note: See TracChangeset for help on using the changeset viewer.