Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/04/2016 09:42:30 PM (8 years ago)
Author:
hnla
Message:

Companion styles 2012 updates
Messaging auto complete.
Commit corrects/removes bullets on li elements for auto complete names & input, removes li element margins.
In addition add styling to:

  • Improve padding for selected names, reduce background, improve span element spacing, add cursor on hover, add close 'x' hover color.
  • ac_results auto complete suggestions, add light background to highlight names & prevent page elements behind bleeding through, improve padding/margins

This set of rulesets needs checking across the other companion styles and might be better placed in the main BP stylesheet.

See #6766 Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/css/twentytwelve.scss

    r10493 r10507  
    174174$stripe-even:        #dbe5ff;
    175175$unread:             #9dc3c8;
    176 
     176$link-action:         #c82b2b;
    177177/*--------------------------------------------------------------
    178178
     
    20132013        }
    20142014
    2015         /* Compose message form */
    20162015        #send_message_form {
    20172016            input,
     
    20212020        }
    20222021
    2023         /* Sitewide Notices loop */
     2022        .acfb-holder {
     2023            list-style: none;
     2024
     2025            li {margin-left: 0;}
     2026
     2027            li.friend-tab {
     2028                background: lighten($notice-info, 20%);
     2029                border: inherit;
     2030                margin-right: 0;
     2031                padding: 0.5em;
     2032
     2033                span.p {
     2034                    // the 'X' close
     2035                    padding-left: $spacing-val-sm;
     2036
     2037                    &:focus,
     2038                    &:hover {
     2039                        color: $link-action;
     2040                        cursor: pointer;
     2041                    }
     2042                }
     2043
     2044                a {
     2045                    border-bottom: 0;
     2046                    text-decoration: none;
     2047
     2048                    img {
     2049                        // this is the tiny user avatar
     2050                        display: inline;
     2051                        height: 20px;
     2052                        vertical-align: middle;
     2053                        width: 20px !important; // override inline style
     2054
     2055                    }
     2056                }
     2057            }
     2058        }
     2059
    20242060        #message-threads.sitewide-notices {
    20252061            tr {margin: 3em 0;}
     
    20882124
    20892125    } // #buddypress
     2126
     2127    // acfb auto complete name list sits in doc footer before body close
     2128    .ac_results {
     2129        background: #eee;
     2130        padding-left: $spacing-val-sm;
     2131
     2132        li {
     2133            margin: $spacing-val-sm 0;
     2134
     2135            &:focus,
     2136            &:hover {
     2137                cursor: pointer;
     2138            }
     2139
     2140            img { vertical-align: bottom;}
     2141
     2142        }
     2143    }
     2144
    20902145} // close .bp-user
    20912146
     
    24322487*-------------------------------------------------------------------------------
    24332488*/
    2434 
    2435 #buddypress {
    2436 
    2437     .acfb-holder {
    2438 
    2439         li.friend-tab {
    2440             background: $notice-info;
    2441             border: inherit;
    2442         }
    2443     }
    2444 }
Note: See TracChangeset for help on using the changeset viewer.