Skip to:
Content

bbPress.org

Changeset 3220


Ignore:
Timestamp:
05/25/2011 08:21:54 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Improve RTL support in Right Now dashboard widget. Fixes #1536.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-admin.php

    r3214 r3220  
    443443                                font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
    444444                                padding: 5px 10px 15px;
     445
     446                                <?php if ( is_rtl() ) : ?>
     447
     448                                        right: 15px;
     449
     450                                <?php else : ?>
     451
     452                                        left: 15px;
     453
     454                                <?php endif; ?>
     455
    445456                                color: #777;
    446457                                font-size: 13px;
    447458                                position: absolute;
    448459                                top: -17px;
    449                                 left: 15px;
    450460                        }
    451461
     
    457467
    458468                        #bbp-dashboard-right-now .table_content {
    459                                 float: left;
     469
     470                                <?php if ( is_rtl() ) : ?>
     471
     472                                        float: right;
     473
     474                                <?php else : ?>
     475
     476                                        float: left;
     477
     478                                <?php endif; ?>
     479
    460480                                border-top: #ececec 1px solid;
    461481                                width: 45%;
     
    463483
    464484                        #bbp-dashboard-right-now .table_discussion {
    465                                 float: right;
     485
     486                                <?php if ( is_rtl() ) : ?>
     487
     488                                        float: left;
     489
     490                                <?php else : ?>
     491
     492                                        float: right;
     493
     494                                <?php endif; ?>
     495
    466496                                border-top: #ececec 1px solid;
    467497                                width: 45%;
     
    478508
    479509                        #bbp-dashboard-right-now td.b {
    480                                 padding-right: 6px;
     510
     511                                <?php if ( is_rtl() ) : ?>
     512
     513                                        padding-left: 6px;
     514
     515                                <?php else : ?>
     516
     517                                        padding-right: 6px;
     518
     519                                <?php endif; ?>
     520
    481521                                text-align: right;
    482522                                font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
     
    495535                        #bbp-dashboard-right-now .t {
    496536                                font-size: 12px;
    497                                 padding-right: 12px;
     537
     538                                <?php if ( is_rtl() ) : ?>
     539
     540                                        padding-left: 12px;
     541
     542                                <?php else : ?>
     543
     544                                        padding-right: 12px;
     545
     546                                <?php endif; ?>
     547
    498548                                padding-top: 6px;
    499549                                color: #777;
     
    526576
    527577                        #bbp-dashboard-right-now a.button {
    528                                 float: right;
    529                                 clear: right;
     578
     579                                <?php if ( is_rtl() ) : ?>
     580
     581                                        float: left;
     582                                        clear: left;
     583
     584                                <?php else : ?>
     585
     586                                        float: right;
     587                                        clear: right;
     588
     589                                <?php endif; ?>
     590
    530591                                position: relative;
    531592                                top: -5px;
Note: See TracChangeset for help on using the changeset viewer.