Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rtl.css to support RTL languages #263

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 79 additions & 8 deletions rtl.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,88 @@
/*
Theme Name: _s

Adding support for language written in a Right To Left (RTL) direction is easy -
it's just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css.
Support for language written in a Right To Left (RTL) Is Ready.
Just do Your Magic in style.css and everything will be allright.

http://codex.wordpress.org/Right_to_Left_Language_Support

*/

/*
body {
direction: rtl;
unicode-bidi: embed;
/* =Reset Right To Left
-------------------------------------------------------------- */

/* Global Reset */
body,
button,
input,
select,
textarea {
font-family: inherit;
}

/* Text elements Reset */
ul, ol {
margin: 0 3em 1.5em 0;
}

pre {
font-family: inherit;
}

code, kbd, tt, var {
font: 15px inherit;
}


caption, th, td {
text-align: right;
}

li > ul,
li > ol {
margin-left: 0;
margin-right: 1.5em;
}

textarea {
padding-left: 0;
padding-right: 3px;
}

/* Text meant only for screen readers Reset */
.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
left: auto;
right: 5px;
}

/* Menu Reset */
.navigation-main {
float: right;
}

.navigation-main li {
float: right;
}

.navigation-main ul ul {
left: auto;
right: 0;
}

.navigation-main ul ul ul {
left: auto;
right: 100%;
top: 0;
}

/* Navigation Reset */
[class*="navigation"] .nav-previous {
float: right;
}

[class*="navigation"] .nav-next {
float: left;
text-align: left;
}
*/