Making WordPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1357 closed defect (bug) (fixed)

Add support for language written in a RTL direction on WPBBP theme

Reported by: sa3idho's profile sa3idho Owned by: ocean90's profile ocean90
Milestone: Priority: high
Component: International Forums Keywords:
Cc:

Description

Create a new file called rtl.css in themes/pub/wporg-themes to add support for language written in a RTL direction like arab

/**
 * Adding support for language written in a Right To Left (RTL).
 *
 * @link http://codex.wordpress.org/Right_to_Left_Language_Support
 */

/**
 * 1.0 General
 */

html,
body {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    text-align: right;
    unicode-bidi: embed;
}

.sidebar .forum-info li::before, .sidebar .topic-info li::before, .sidebar div ul li a::before {
    float: right;
    margin-left: 0;
    margin-left: 5px;
}

/**
* 2.0 Accesability
*/

.hidden,
#accessibility {
	left: auto;
	right: -999em;
}

/**
 * 3.0 Overrides
 */
@media only screen and (min-width: 960px) {
	#bbpress-forums {
		margin-left: 0;
		margin-right: 20px;
	}

	.col-6 #bbpress-forums {
		margin-left: 0:;
		margin-right: 0;
	}
}

#pagebody ul.forum-info,
#pagebody ul.forum-feeds,
#pagebody ul.topic-info,
#pagebody ul.topic-tags,
#pagebody ul.topic-views,
#pagebody ul.topic-admin-links {
	margin-left: 0;
	margin-right: 0;
}

#pagebody ul a.feed {
	padding-left: 0;
	padding-right: 0;
}

Attachments (1)

rtl.css (1.0 KB) - added by sa3idho 9 years ago.

Download all attachments as: .zip

Change History (3)

@sa3idho
9 years ago

#1 @ocean90
9 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 2004:

Forums Theme: Add a RTL stylesheet.

Props sa3idho.
Fixes #1357.

#2 @ocean90
9 years ago

In 2009:

Forums Theme: Code blocks should be LTR in RTL.

Props sa3idho.
See #1357.

Note: See TracTickets for help on using tickets.