Skip to:
Content

BuddyPress.org

Changeset 9099


Ignore:
Timestamp:
10/29/2014 12:36:15 AM (10 years ago)
Author:
djpaul
Message:

Mentions: adjustments for narrow-width displays.

For displays <= 900 pixels wide, the display name of the user is now
shown.

For displays <= 400 pixels wide, the picker UI expands to take up the
full width of the screen.

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

File:
1 edited

Legend:

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

    r9008 r9099  
    11.atwho-view {
    2     background: #FFF;
     2    background: rgba(204, 204, 204, 0.8);
    33    border-radius: 2px;
    44    border: 1px solid rgb(204, 204, 204);
     
    1717}
    1818.atwho-view ul {
     19    background: #FFF;
    1920    list-style: none;
    2021    margin: auto;
     
    6364        margin: 0 10px 0 0;
    6465    }
    65     .atwho-view small {
    66         display: none;
    67     }
    6866}
    6967@media (max-width: 400px) {
     
    7876        width: 30px;
    7977    }
     78    .atwho-view {
     79        border-radius: 0;
     80        height: 100%;
     81        left: 0 !important;
     82        width: 100%;
     83    }
     84    .atwho-view ul li .username {
     85        display: inline-block;
     86        margin: -10px 0 0 0;
     87        padding: 10px 0;
     88    }
     89    .atwho-view ul li small {
     90        display: inline-block;
     91        margin-left: 20px;
     92    }
    8093}
Note: See TracChangeset for help on using the changeset viewer.