/*
Theme Name: RetroTale
Description: Adds support for languages written in a Right To Left (RTL) direction.
*/

p, ul, ol, li, dl, address {
  text-align: right;
}
ul {
  margin-left: 0;
  margin-right: 16px;   
}
ol {
	margin-left: 0;
  margin-right: 20px;
}
table, td, th {
  text-align: right;
}
blockquote, q { 
  border-left: none;
  border-right: 1px dashed #cccccc;
  padding-left: 0;
  padding-right: 10px;
}


/* basic structure
-------------------------------------------------------------- */

#content {
  float: right;         
}
#sidebar {
  float: left;
  margin-left: 0;
  margin-right: 28px;         
}
.scroll-top {
  left: 10px;
  right: auto;           
}


/* menus
-------------------------------------------------------------- */

.menu-box ul ul {
	left: auto;
  right: 0;
}
.menu-box a,
.menu-box a:visited {
  float: right;    
}
#header .menu-box ul ul a {
  padding: 0 19px 0 0;
  text-align: right;
}
#header .menu-box ul ul ul {
	left: auto;
	right: 100%;
}


/* main content
-------------------------------------------------------------- */

#main-content .post-info .post-category,
#main-content .post-info .post-tags {
  float: right;                      
}
#main-content .post-info .post-tags {
  padding-left: 0;
  padding-right: 2%;
  text-align: left;                           
}
#main-content .nav-previous {
  float: right;                            
}
#main-content .nav-next {
  float: left;
  text-align: left;                            
}

/* default post entry */
.attachment-post-thumbnail { 
  float: right;
  margin-left: 15px;
  margin-right: 0;
}

/* post entry - grid */
.js-masonry { 
  float: right;
  margin: 0 -10px 0 0;                     
}
.grid-entry .grid-entry-inner {
  margin: 0 20px 0 0;                            
} 


/* sidebar
-------------------------------------------------------------- */

.sidebar-widget ul { 
  margin: 5px 16px -5px 0;                      
}


/* footer
-------------------------------------------------------------- */  

.footer-widget-area {
  float: right;
  margin-left: 28px;
  margin-right: 0;               
}
#footer .footer-widget-area-3 {
  margin-left: 0;                              
} 


/* default widgets
-------------------------------------------------------------- */

#wp-calendar #prev {
  text-align: right;                   
}
#wp-calendar #next {
  text-align: left;                   
}


/* form fields
-------------------------------------------------------------- */

#searchform .searchform-wrapper #s {
  padding: 5px 3% 5px 0;
  left: auto;
  right: 0;              
}
#searchform .searchform-wrapper .send {
  left: 0;
  right: auto;
}
.header-content #searchform .searchform-wrapper {
  left: 28px;
  right: auto;      
}


/* comments area
-------------------------------------------------------------- */

#comments ol {
  margin-left: auto;
  margin-right: 0;             
}
#comments .avatar,
#comments .fn {
  float: right;
  margin: 0 0 0 6px
}
#comments time,
#comments .edit-link {
  float: left;             
}


/* media queries
-------------------------------------------------------------- */

@media screen and (max-width: 1012px) { 
  .js .selectnav {
    float: right;
    margin: 7px 5% 0 0;
}
}