Making WordPress.org

Changeset 9142


Ignore:
Timestamp:
09/16/2019 05:27:25 PM (5 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: Unplug the bb-base styling dependency for Developer site.

Also includes styling tweaks for mobile that would normally be in bb-base.

See #4601. Props imath.

Location:
sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/css/style.css

    r9134 r9142  
    1 html {
    2     font-size: 62.5%;
    3     line-height: 1.5;
    4 }
    5 
    61#header {
    72    background-color: #be3631;
     
    105    z-index: 99;
    116    font-size: 13px;
     7    position: fixed;
     8    top: 0;
     9}
     10
     11#header-inner {
     12    margin: 0 auto;
     13    width: 100%;
     14    height: 80px;
     15    padding: 0;
    1216}
    1317
    1418body.admin-bar header#masthead {
    15     margin-top: 124px;
     19    margin-top: 123px;
     20}
     21
     22#wp-toolbar, #header-inner {
     23    margin: 0 auto;
     24}
     25
     26#wp-admin-bar-my-account img.avatar {
     27    border-radius: 50%;
     28}
     29
     30@media screen and (min-width: 960px) {
     31    #header-inner, #footer, #wp-toolbar {
     32        max-width: 960px;
     33    }
     34}
     35
     36@media screen and (max-width: 600px) {
     37    #header {
     38        position: absolute;
     39    }
    1640}
    1741
     
    251275}
    252276
    253 @media screen and ( min-width: 960px ) {
    254     #content,
    255     div.content,
    256     div.site-content,
    257     .devhub-wrap #content-area,
    258     .devhub-wrap .inner-wrap {
    259         width: 960px;
    260         margin: 0 auto;
    261         max-width: 100%;
    262     }
    263 }
    264 
    265277/* Shrink logo to make room for navigation */
    266278@media screen and ( max-width: 820px ) {
     
    272284/* Do not fix #header for non-desktops */
    273285@media screen and ( max-width: 782px ) {
    274     #header #bb-nav {
     286    #header {
    275287        z-index: 999999;
    276288    }
     
    304316        width: 100%;
    305317        right: 0;
     318        top: 81px;
    306319        border-bottom: 1px solid #aaa;
    307320    }
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/functions.php

    r9133 r9142  
    1717 */
    1818function bporg_developer_enqueue_styles() {
    19     wp_enqueue_style( 'bb-base', content_url( 'themes' ) . '/bb-base/style.css' );
    2019    wp_enqueue_style( 'wporg-developer', get_template_directory_uri() . '/style.css' );
    2120    wp_enqueue_style( 'bporg-developer-main',
    2221        get_stylesheet_directory_uri() . '/css/style.css',
    23         array( 'wp-dev-sass-compiled', 'dashicons', 'bb-base' ),
     22        array( 'wp-dev-sass-compiled', 'dashicons' ),
    2423        wp_get_theme()->get( 'Version' )
    2524    );
Note: See TracChangeset for help on using the changeset viewer.