Skip to:
Content

BuddyPress.org

Changeset 5017


Ignore:
Timestamp:
08/19/2011 07:03:01 PM (15 years ago)
Author:
djpaul
Message:

Add responsive RTL styles. See #3494

Location:
trunk/bp-themes/bp-default
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/css/default-rtl.css

    r4961 r5017  
    33Right to left styles. This will transform the theme to read from
    44right to left for languages that support this method.
     5
    56----------------------------------------------------------------
    67>>> TABLE OF CONTENTS:
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r5012 r5017  
    6161a img{border:none;}
    6262
     63
    6364/*--------------------------------------------------------------
    64652.0 - Structural
  • trunk/bp-themes/bp-default/_inc/css/responsive.css

    r5009 r5017  
    5858}
    5959
     60
    6061/*--------------------------------------------------------------
    61 1.1 - iPad Portrait
     621.2 - iPad Portrait
    6263--------------------------------------------------------------*/
    6364@media only screen and (max-width: 640px) {
    … …  
    7576        }
    7677}
     78
    7779
    7880/*--------------------------------------------------------------
    … …  
    139141}
    140142
     143
    141144/*--------------------------------------------------------------
    1421453.0 - iPhone
  • trunk/bp-themes/bp-default/functions.php

    r5005 r5017  
    171171function bp_dtheme_enqueue_styles() {
    172172        // Bump this when changes are made to bust cache
    173         $version = '20110818';
     173        $version = '20110819';
    174174
    175175        // Default CSS
    176176        wp_enqueue_style( 'bp-default-main', get_template_directory_uri() . '/_inc/css/default.css', array(), $version );
    177177
    178         // Responsive Layout
     178        // Default CSS RTL
     179        if ( is_rtl() )
     180                wp_enqueue_style( 'bp-default-main-rtl',  get_template_directory_uri() . '/_inc/css/default-rtl.css', array( 'bp-default-main' ), $version );
     181
     182        // Responsive layout
    179183        if ( current_theme_supports( 'bp-default-responsive' ) ) {
    180184                wp_enqueue_style( 'bp-default-responsive', get_template_directory_uri() . '/_inc/css/responsive.css', array( 'bp-default-main' ), $version );
    181         }
    182 
    183         // Right to left CSS
    184         if ( is_rtl() ) {
    185                 wp_enqueue_style( 'bp-default-main-rtl',  get_template_directory_uri() . '/_inc/css/default-rtl.css', array( 'bp-default-main' ), $version );
     185
     186                if ( is_rtl() )
     187                        wp_enqueue_style( 'bp-default-responsive-rtl', get_template_directory_uri() . '/_inc/css/responsive-rtl.css', array( 'bp-default-responsive' ), $version );
    186188        }
    187189}
Note: See TracChangeset for help on using the changeset viewer.