Skip to content

Instantly share code, notes, and snippets.

@GaryJones
Created May 25, 2013 12:46
Show Gist options
  • Select an option

  • Save GaryJones/5648951 to your computer and use it in GitHub Desktop.

Select an option

Save GaryJones/5648951 to your computer and use it in GitHub Desktop.
Genesis 2.0b1 rtl.css. Add this file as rtl.css to root of child themes, then install RTL Tester plugin, and switch to RTL.
/* WARNING - Please read the notice below:
This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. Please do all modifications in the form of a child theme.
Copy the contents of this file to the child theme. Do not use @import, as the CSS included with Genesis might change in the future.
*/
body {
direction: rtl;
unicode-bidi: embed;
}
blockquote::before {
right: -20px;
left: auto;
}
.content-sidebar-sidebar .content-sidebar-wrap {
float: right;
}
.sidebar-content-sidebar .content-sidebar-wrap,
.sidebar-sidebar-content .content-sidebar-wrap {
float: left;
}
.content {
float: left;
}
.content-sidebar .content,
.content-sidebar-sidebar .content,
.sidebar-content-sidebar .content {
float: right;
}
.sidebar-primary {
float: left;
}
.sidebar-content .sidebar-primary,
.sidebar-sidebar-content .sidebar-primary {
float: right;
}
.sidebar-secondary {
float: right;
}
.content-sidebar-sidebar .sidebar-secondary {
float: left;
}
.five-sixths,
.four-sixths,
.one-fourth,
.one-half,
.one-sixth,
.one-third,
.three-fourths,
.three-sixths,
.two-fourths,
.two-sixths,
.two-thirds {
float: right;
margin-right: 2.564102564102564%;
margin-left: auto;
}
.first {
margin-right: 0;
margin-left: auto;
}
.avatar {
float: right;
}
.alignleft .avatar {
margin-left: 24px;
margin-left: 2.4rem;
margin-right: auto;
}
.alignright .avatar {
margin-right: 24px;
margin-right: 2.4rem;
margin-left: auto;
}
.alignleft {
float: right;
text-align: right;
}
.alignright {
float: left;
text-align: left;
}
img.alignleft,
.wp-caption.alignleft {
margin: 0 0 24px 24px;
margin: 0 0 2.4rem 2.4rem;
}
img.alignright,
.wp-caption.alignright {
margin: 0 24px 24px 0;
margin: 0 2.4rem 2.4rem 0;
}
.author-box .avatar {
margin-left: 24px;
margin-left: 2.4rem;
margin-right: auto;
}
.title-area {
float: right;
}
.header-image .site-header .wrap {
background-position: right;
}
.header-image .site-title a {
float: right;
}
.site-header .widget-area {
float: left;
text-align: left;
}
.site-header .search-form {
float: left;
}
.genesis-nav-menu .menu-item {
text-align: right;
}
.genesis-nav-menu .sub-menu {
right: -9999px;
left: auto;
}
.genesis-nav-menu .sub-menu .sub-menu {
margin: -54px 199px 0 0;
}
.genesis-nav-menu .menu-item:hover > .sub-menu {
right: auto;
left: auto;
}
.genesis-nav-menu > .first > a {
padding-right: 0;
padding-left: 0;
}
.genesis-nav-menu > .last > a {
padding-left: 0;
padding-right: 0;
}
.genesis-nav-menu > .right {
float: left;
}
.genesis-nav-menu > .rss > a {
margin-right: 48px;
margin-right: 4.8rem;
margin-left: auto;
}
.entry-content ol li,
.entry-content ul li {
margin-right: 40px;
margin-right: 4rem;
margin-left: auto;
}
.entry-meta .entry-comments::before {
margin: 0 2px 0 6px;
margin: 0 0.2rem 0 0.6rem;
}
#respond label {
margin-left: 12px;
margin-left: 1.2rem;
margin-right: auto;
}
.comment-list li li {
margin-left: -32px;
margin-left: -3.2rem;
margin-right: auto;
}
li.comment {
border-left: none;
border-right: none;
}
.comment .avatar {
margin: 0 0 24px 16px;
margin: 0 0 2.4rem 1.6rem;
}
.footer-widgets-1 {
margin-left: 40px;
margin-left: 4rem;
margin-right: auto;
}
.footer-widgets-1,
.footer-widgets-2 {
float: right;
}
.footer-widgets-3 {
float: left;
}
@Kiwifu
Copy link
Copy Markdown

Kiwifu commented Apr 26, 2019

That help me a lot.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment