Skip to:
Content

BuddyPress.org

Changeset 8771


Ignore:
Timestamp:
08/09/2014 03:47:17 PM (10 years ago)
Author:
djpaul
Message:

Activity: slight CSS/JS tweaks to @mentions window.

Ported from Automattic's O2 team's implementation of the At.js library.

See #3278

Location:
trunk/src/bp-activity
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/css/mentions-rtl.css

    r8754 r8771  
    3434    float: left;
    3535    height: 20px;
    36     margin-right: 10px;
    3736    width: 20px;
    3837}
     
    4948    font-size: smaller;
    5049    font-weight: normal;
    51     margin-right: 40px;
     50    margin: 0 40px 0 10px;
    5251}
    5352.atwho-view .cur {
     
    5857    .atwho-view img {
    5958        float: right;
    60         margin-right: 0;
    61         margin-left: 10px;
     59        margin: 0 0 0 10px;
    6260    }
    6361    .atwho-view small {
  • trunk/src/bp-activity/css/mentions.css

    r8754 r8771  
    3434    float: right;
    3535    height: 20px;
    36     margin-left: 10px;
    3736    width: 20px;
    3837}
     
    4948    font-size: smaller;
    5049    font-weight: normal;
    51     margin-left: 40px;
     50    margin: 0 10px 0 40px;
    5251}
    5352.atwho-view .cur {
     
    5857    .atwho-view img {
    5958        float: left;
    60         margin-left: 0;
    61         margin-right: 10px;
     59        margin: 0 10px 0 0;
    6260    }
    6361    .atwho-view small {
  • trunk/src/bp-activity/js/mentions.js

    r8754 r8771  
    7878                before_reposition: function( offset ) {
    7979                    var $view = $( '#atwho-ground-' + this.id + ' .atwho-view' ),
    80                     caret    = this.$inputor.caret( 'offset', { iframe: $( '#content_ifr' )[0] } ).left,
    81                     move;
     80                        caret = this.$inputor.caret( 'offset', { iframe: $( '#content_ifr' )[0] } ).left,
     81                        move;
    8282
    8383                    // If the caret is past horizontal half, then flip it, yo.
    8484                    if ( caret > ( $( 'body' ).width() / 2 ) ) {
    85                         $view.addClass( 'flip' );
     85                        $view.addClass( 'right' );
    8686                        move = caret - offset.left - this.view.$el.width();
    8787                    } else {
    88                         $view.removeClass( 'flip' );
     88                        $view.removeClass( 'right' );
    8989                        move = caret - offset.left + 1;
    9090                    }
Note: See TracChangeset for help on using the changeset viewer.