WordPress/wp-content/themes/twentythirteen/rtl.css

965 lines
16 KiB
CSS
Raw Normal View History

/*
Theme Name: Twenty Thirteen
Description: Adds support for languages written in a Right To Left (RTL) direction.
It's easy, just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css.
See http://codex.wordpress.org/Right_to_Left_Language_Support
*/
/**
* Table of Contents:
*
* 1.0 - Reset
* 2.0 - Repeatable Patterns
* 4.0 - Header
* 4.1 - Site Header
* 4.2 - Navigation
* 5.0 - Content
* 5.2 - Entry Meta
* 5.4 - Galleries
* 5.5 - Post Formats
* 5.6 - Attachments
* 5.7 - Post/Paging Navigation
* 5.8 - Author Bio
* 5.9 - Archives
* 5.10 - Search Results/No posts
* 5.12 - Comments
* 6.0 - Sidebar
* 6.1 - Widgets
* 7.0 - Footer
* 8.0 - Media Queries
* 9.0 - Print
* ----------------------------------------------------------------------------
*/
/**
* 1.0 Reset
* ----------------------------------------------------------------------------
*/
body {
direction: rtl;
unicode-bidi: embed;
}
a {
display: inline-block;
}
blockquote blockquote {
margin-left: 0;
margin-right: 24px;
}
menu,
ol,
ul {
padding: 0 40px 0 0;
}
caption,
th,
td {
text-align: right;
}
td {
padding-left: 10px;
padding-right: 0;
}
.assistive-text:focus {
left: auto;
right: 5px;
}
/**
* 2.0 Repeatable patterns
* ----------------------------------------------------------------------------
*/
.genericon:after,
.menu-toggle:before,
.featured-post:after,
.date a:after,
.entry-meta .author a:after,
.format-audio .entry-content:after,
.comments-link a:after,
.tags-links a:first-child:after,
.categories-links a:first-child:after,
.edit-link a:after,
.attachment .entry-title:after,
.attachment-meta:after,
.attachment-meta a:after,
.comment-awaiting-moderation:after,
.comment-reply-link:after,
#reply-title small a:after,
.bypostauthor .fn:after,
.error404 .page-title:after {
-webkit-font-smoothing: antialiased;
display: inline-block;
font: normal 16px/1 Genericons;
vertical-align: text-bottom;
}
/**
* 4.0 Header
* ----------------------------------------------------------------------------
*/
/**
* 4.1 Site Header
* ----------------------------------------------------------------------------
*/
.site-header > a:first-child {
display: inherit;
}
.site-description {
font-style: normal;
}
/**
* 4.2 Navigation
* ----------------------------------------------------------------------------
*/
/* Navbar */
ul.nav-menu,
div.nav-menu > ul {
margin: 0 -20px 0 0;
padding: 0 0 0 40px;
}
.nav-menu .sub-menu,
.nav-menu .children {
float: right;
left: auto;
right: -2px;
}
.nav-menu .sub-menu ul,
.nav-menu .children ul {
border-left: 2px solid #F7F5E7;
border-right: 0;
left: auto;
right: 100%;
}
.main-navigation .searchform {
left: 0;
right: auto;
}
.site-header .searchform [type="search"] {
background-position: 98% center;
padding: 0 34px 0 0;
}
.nav-menu .current_page_item > a,
.nav-menu .current_page_ancestor > a,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
font-style: normal;
}
.menu-toggle {
padding-left: auto;
padding-right: 20px;
}
/**
* 5.0 Content
* ----------------------------------------------------------------------------
*/
.sidebar .entry-media {
padding-left: 316px;
padding-right: 0;
}
.sidebar .entry-header,
.sidebar .entry-content,
.sidebar .entry-summary,
.sidebar .entry-meta {
padding-left: 376px;
padding-right: 60px;
}
/**
* 5.2 Entry Meta
* ----------------------------------------------------------------------------
*/
.entry-meta > span {
margin-left: 20px;
margin-right: auto;
}
.entry-meta > span:last-child {
margin-left: 0;
margin-right: auto;
}
.featured-post:before {
content: normal;
margin-right: auto;
}
.featured-post:after {
content: "\f308";
margin-left: 2px;
}
.entry-meta .date a:before {
content: normal;
}
.entry-meta .date a:after {
content: "\f303";
}
.comments-link a:before {
content: normal;
margin-left: auto;
top: auto;
}
.comments-link a:after {
content: "\f300";
margin-left: 2px;
top: -1px;
position: relative;
}
.entry-meta .author a:before {
content: normal;
top: auto;
}
.entry-meta .author a:after {
content: "\f304";
top: -1px;
position: relative;
}
.categories-links a:first-child:before {
content: normal;
}
.categories-links a:first-child:after {
content: "\f301";
}
.tags-links a:first-child:before {
content: normal;
top: auto;
}
.tags-links a:first-child:after {
content: "\f302";
top: -1px;
position: relative;
}
.edit-link a:before {
content: normal;
top: auto;
}
.edit-link a:after {
content: "\f411";
top: -1px;
position: relative;
}
.page-links .page-links-title {
margin-left: 20px;
margin-right: auto;
}
/**
* 5.4 Galleries
* ----------------------------------------------------------------------------
*/
.gallery {
margin-left: auto;
margin-right: -4px;
}
.gallery-item {
float: right;
margin: 0 0 4px 4px;
}
.gallery-item a {
display: inline;
}
.gallery-columns-1 .gallery-item:nth-of-type(1n),
.gallery-columns-2 .gallery-item:nth-of-type(2n),
.gallery-columns-3 .gallery-item:nth-of-type(3n),
.gallery-columns-4 .gallery-item:nth-of-type(4n),
.gallery-columns-5 .gallery-item:nth-of-type(5n),
.gallery-columns-6 .gallery-item:nth-of-type(6n),
.gallery-columns-7 .gallery-item:nth-of-type(7n),
.gallery-columns-8 .gallery-item:nth-of-type(8n),
.gallery-columns-9 .gallery-item:nth-of-type(9n) {
margin-left: 0;
margin-right: 4px;
}
/**
* 5.5 Post Formats
* ----------------------------------------------------------------------------
*/
.format-aside .entry-content .date {
margin-left: auto;
margin-right: 20px;
}
.format-aside .entry-content .date a:before {
content: normal;
}
.format-aside .entry-content .date a:after {
content: "\f303";
}
.format-aside cite:before {
content: normal;
margin-right: auto;
}
.format-aside cite:after {
content: "\2014";
margin-left: 5px;
}
.format-audio .entry-media:before {
-ms-filter: "FlipH";
filter: FlipH;
float: right;
-webkit-transform: scaleX(-1);
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
transform: scaleX(-1);
}
.format-audio .entry-media,
.sidebar .format-audio .entry-media {
padding-left: 374px;
padding-right: 60px;
}
.format-audio .audio-content {
background-position: right top;
float: left;
padding-left: auto;
padding-right: 35px;
}
.format-chat .entry-meta .date a:before {
content: normal;
margin-right: auto;
}
.format-chat .entry-meta .date a:after {
content: "\f108";
margin-left: 2px;
}
.blog .format-gallery .gallery-item,
.archive .format-gallery .gallery-item,
.search .format-gallery .gallery-item {
margin-left: 4px;
margin-right: auto;
}
.blog .format-gallery .gallery-item img,
.archive .format-gallery .gallery-item img,
.search .format-gallery .gallery-item img {
position: absolute;
left: 0;
}
.format-image .wp-caption-text {
text-align: right;
}
.format-link .entry-title {
margin-left: 20px;
margin-right: auto;
}
.format-status .entry-content,
.format-status .entry-meta {
padding-left: auto;
padding-right: 35px;
}
.sidebar .format-status .entry-content,
.sidebar .format-status .entry-meta {
padding-left: 376px;
padding-right: 95px;
}
.format-status .entry-content:before,
.format-status .entry-meta:before {
left: auto;
right: 10px;
}
.sidebar .format-status .entry-content:before,
.sidebar .format-status .entry-meta:before {
left: auto;
right: 70px;
}
.format-status .entry-content p:first-child:before {
left: auto;
right: 4px;
}
.sidebar .format-status .entry-content p:first-child:before {
left: auto;
right: 64px;
}
.format-status .entry-meta .date a:before {
content: normal;
}
.format-status .entry-meta .date a:after {
content: "\f105";
}
/**
* 5.6 Attachments
* ----------------------------------------------------------------------------
*/
.attachment .entry-title {
float: right;
}
.attachment .entry-title:before {
content: normal;
font-size: inherit;
margin-right: auto;
}
.attachment .entry-title:after {
content: "\f416";
font-size: 32px;
margin-left: 10px;
}
.attachment .entry-meta {
float: left;
}
.attachment-meta:before,
.full-size-link a:before {
content: normal;
}
.attachment-meta:after {
content: "\f307";
}
.full-size-link a:after {
content: "\f402";
}
.full-size-link:after {
content: normal;
}
.image-navigation .nav-previous {
left: auto;
right: 0;
}
.image-navigation .nav-next {
left: 0;
right: auto;
}
.attachment .entry-caption {
text-align: right;
}
/**
* 5.7 Post/Paging Navigation
* ----------------------------------------------------------------------------
*/
.navigation .nav-previous {
float: right;
}
.navigation .nav-next {
float: left;
}
.sidebar .paging-navigation .nav-links,
.sidebar .post-navigation .nav-links {
padding-left: 376px;
padding-right: 60px;
}
.paging-navigation .nav-previous .meta-nav {
margin-left: 10px;
margin-right: auto;
}
.paging-navigation .nav-next .meta-nav {
margin-left: auto;
margin-right: 10px;
}
.post-navigation a[rel="next"] {
float: left;
text-align: left;
}
/**
* 5.8 Author Bio
* ----------------------------------------------------------------------------
*/
.author-info {
text-align: right; /* gallery & video post formats */
}
.author.sidebar .author-info {
padding-left: 376px;
padding-right: 60px;
}
.author-avatar {
float: right;
margin: 0 0 30px 30px;
}
.author-link {
margin-left: auto;
margin-right: 2px;
}
/**
* 5.9 Archives
* ----------------------------------------------------------------------------
*/
.sidebar .archive-meta {
padding-left: 316px;
padding-right: 0;
}
/**
* 5.10 Search Results/No posts
* ----------------------------------------------------------------------------
*/
.sidebar .page-content {
padding-left: 376px;
padding-right: 60px;
}
/**
* 5.12 Comments
* ----------------------------------------------------------------------------
*/
.sidebar .comments-title,
.sidebar .comment-list,
.sidebar #reply-title,
.sidebar .comment-navigation,
.sidebar #respond #commentform {
padding-left: 376px;
padding-right: 60px;
}
.comment-list .children {
margin-left: auto;
margin-right: 20px;
}
.comment-author {
margin-left: 50px;
margin-right: auto;
left: auto;
right: 0;
}
.bypostauthor .fn:before {
content: normal;
vertical-align: inherit;
}
.bypostauthor .fn:after {
content: "\f408";
vertical-align: text-top;
}
.comment-list .edit-link {
margin-left: auto;
margin-right: 20px;
}
.comment-meta,
.comment-content,
.reply {
float: left;
}
.comment-awaiting-moderation:before {
content: normal;
margin-right: auto;
top: auto;
}
.comment-awaiting-moderation:after {
content: "\f414";
margin-left: 5px;
position: relative;
top: -2px;
}
.comment-reply-link:before {
content: normal;
margin-right: auto;
}
.comment-reply-link:after {
content: "\f412";
margin-left: 3px;
}
#reply-title small a {
float: left;
height: auto;
overflow: visible;
width: auto;
}
#reply-title small a:before {
content: normal;
}
#commentform [for="author"],
#commentform [for="email"],
#commentform [for="url"],
#commentform [for="comment"] {
float: right;
}
.form-allowed-tags code {
margin-left: auto;
margin-right: 3px;
}
.sidebar .no-comments {
padding-left: 376px;
padding-right: 60px;
}
/**
* 6.0 Sidebar
* ----------------------------------------------------------------------------
*/
.site-main .widget-area {
float: left;
}
.widget-area a {
max-width: 100%;
}
/**
* 6.1 Widgets
* ----------------------------------------------------------------------------
*/
.widget .widget-title {
font-style: normal;
}
.widget li > ul,
.widget li > ol {
margin-left: auto;
margin-right: 20px;
}
/**
* 7.0 Footer
* ----------------------------------------------------------------------------
*/
.site-footer .widget-area,
.sidebar .site-footer {
text-align: right;
}
.sidebar .site-footer .widget-area {
left: auto;
right: -158px;
}
.site-footer .widget {
float: right;
margin-right: auto;
margin-left: 20px;
}
.sidebar .site-footer .widget:nth-of-type(4),
.sidebar .site-footer .widget:nth-of-type(3) {
margin-left: 0;
margin-right: auto;
}
/**
* 8.0 Media Queries
* ----------------------------------------------------------------------------
*/
@media (max-width: 1069px) {
.sidebar .entry-media,
.format-audio .entry-media,
.sidebar .format-audio .entry-media {
padding-left: 376px;
padding-right: 60px;
}
ul.nav-menu,
div.nav-menu > ul {
margin-left: auto;
margin-right: 0;
}
.error404 .page-header,
.sidebar .format-image .entry-content img.size-full,
.sidebar .format-image .wp-caption:first-child .wp-caption-text {
margin-right: auto;
}
.main-navigation .searchform {
right: auto;
left: 20px;
}
.site-main .widget-area {
margin-left: 60px;
margin-right: auto;
}
}
@media (max-width: 999px) {
.sidebar .entry-header,
.sidebar .entry-content,
.sidebar .entry-summary,
.sidebar .entry-meta,
.sidebar .comment-list,
.sidebar #reply-title,
.sidebar .comment-navigation,
.sidebar #respond #commentform,
.sidebar .featured-gallery,
.sidebar .post-navigation .nav-links,
.author.sidebar .author-info,
.sidebar .format-image .entry-content {
max-width: 604px;
padding-left: 0;
padding-right: 0;
}
.sidebar .entry-media,
.format-audio .entry-media,
.sidebar .format-audio .entry-media {
padding-left: 0;
padding-right: 0;
}
.site-main .widget-area {
float: none;
margin-left: auto;
}
.attachment .entry-meta {
float: right;
text-align: right;
}
.sidebar .format-status .entry-content,
.sidebar .format-status .entry-meta {
padding-left: auto;
padding-right: 35px;
}
.sidebar .format-status .entry-content:before,
.sidebar .format-status .entry-meta:before {
left: auto;
right: 10px;
}
.sidebar .format-status .entry-content p:first-child:before {
left: auto;
right: 4px;
}
.sidebar .site-footer .widget-area {
left: auto;
right: 0;
}
.sidebar .paging-navigation .nav-links {
padding: 0 60px;
}
}
@media (max-width: 767px) {
.format-image .entry-content img:first-of-type,
.format-image .wp-caption:first-child .wp-caption-text {
margin-right: auto;
}
}
@media (max-width: 643px) {
#content .format-status .entry-content,
#content .format-status .entry-met {
padding-left: auto;
padding-right: 35px;
}
.menu-toggle:before {
content: "\f502";
font-size: 12px;
padding-right: 8px;
vertical-align: -webkit-calc(-4px);
vertical-align: calc(-4px);
}
.menu-toggle:after {
content: normal;
font-size: 12px;
padding-left: auto;
vertical-align: baseline;
}
.toggled-on .menu-toggle:before {
content: "\f500";
vertical-align: -webkit-calc(2px);
vertical-align: calc(2px);
}
.toggled-on .menu-toggle:after {
content: normal;
vertical-align: baseline;
}
.toggled-on .nav-menu,
.toggled-on .nav-menu > ul {
margin-left: auto;
margin-right: 0;
}
.toggled-on .nav-menu li > ul {
margin-left: auto;
margin-right: 20px;
right: auto;
}
#content .featured-gallery {
padding-left: auto;
padding-right: 24px;
}
.gallery-columns-1 .gallery-item {
margin-left: 0;
margin-right: auto;
}
.comment-author {
margin-left: 30px;
margin-right: auto;
}
.format-audio .audio-content {
background: none;
float: none;
padding-left: auto;
padding-right: 0;
}
.single .gallery-columns-3 .gallery-item:nth-of-type(3n) {
margin-left: 4px;
margin-right: auto;
}
}
@media (max-width: 359px) {
.gallery {
margin-left: auto;
margin-right: 0;
}
.gallery .gallery-item,
.single .gallery-columns-2.gallery-size-thumbnail .gallery-item,
.blog .format-gallery .gallery-item,
.archive .format-gallery .gallery-item,
.search .format-gallery .gallery-item,
.single .gallery.gallery-columns-3 .gallery-item:nth-of-type(even),
.gallery-columns-5 .gallery-item:nth-of-type(5n),
.gallery-columns-7 .gallery-item:nth-of-type(7n),
.gallery-columns-9 .gallery-item:nth-of-type(9n) {
margin-left: 2%;
margin-right: auto;
}
.blog .format-gallery .gallery-item:nth-of-type(odd),
.archive .format-gallery .gallery-item:nth-of-type(odd),
.search .format-gallery .gallery-item:nth-of-type(odd),
.single .gallery .gallery-item:nth-of-type(even),
.single .gallery.gallery-columns-3 .gallery-item:nth-of-type(3n) {
margin-left: 0;
margin-right: auto;
}
}
/**
* 9.0 Print
* ----------------------------------------------------------------------------
*/
@media print {
.entry-content img.alignleft,
.entry-content .wp-caption.alignleft {
margin-left: auto;
margin-right: 0;
}
.entry-content img.alignright,
.entry-content .wp-caption.alignright {
margin-left: 0;
margin-right: auto;
}
}