/*
Theme Name: Just Blog

Adding support for languages 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.

https://codex.wordpress.org/Right-to-Left_Language_Support

*/

body {
	direction: rtl;
	unicode-bidi: embed;
}

/* Text meant only for screen readers. */
.screen-reader-text:focus {
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.6);
	right: 5px;
}


/* blockquotes */
blockquote{
	padding: 15px 55px 15px 20px;
	/*Borders - (Optional)*/
	border-right: 15px solid #7dafd2;
	border-left: 2px solid #7dafd2;
}
blockquote::before{
	content: "\201D"; /*Unicode for right Double Quote*/
	/*Positioning*/
	right: 10px;
}

.format-quote blockquote {
    padding: 15px 55px 15px 20px;
}
/* TABLES */

table {
	text-align: right;
}
table caption {
    text-align: left;
}
th {
    text-align: right;
	border-right: none;
}
tr th:first-child, 
tr td:first-child {
    border-right-style: solid;
    border-right-width: 1px;
}
td {
	border: 1px solid #ebebeb;	
    border-right: none;
}
/* code */
pre {
    border-left: none;
	border-right: 10px solid #d4dee2;
}
ul, ol {
	padding: 0 1.5rem 0 0;
}
li > ul,
li > ol {
	margin: 0 1rem 0 0;
}
#bottom-sidebar ul {
	padding-left: 0;
    padding-right: 16px;
}

#related-posts-title {
    padding-right: 0;
}
#related-posts-content {
    text-align: right;
}

.entry-footer .post-edit-link {
	left: 0;
	right: 2px;
}

.entry-content a.excerpt-readmore {
	margin-right:5px;
	margin-left: 0;
}
.entry-tags li {
    margin-right: 0;
	margin-left: 5px;
}

#author-avatar {
	float: right;
	margin-left: 1.5rem;
}

#comment-list {

    margin-right: 0;
    padding-right: 0;
}
#comment-list li > ol {
	margin-left:0;
    margin-right: 1.75rem;
}
.comment .avatar {
    float: right;
    margin: 0 0 0 1rem;
}

.reply {
    margin: 0 4.75rem 1.25rem 0;
}
.comment-form-column {
    float: right;
}

#author-avatar {
	float: right;
	margin-left: 1.5rem;
}

.attachment img.avatar {
    right: auto;
}

.post-caption-container {
    left: auto;
	right: 15px;
}

/* entry meta */

.entry-meta li:last-child:after {
    content: "";
    margin: 0 8px;
}

.entry-meta li:first-child:after {
    content: "\f111";
    margin: 0 8px;
}

/* slider */
.slider-dots li {
    margin-right: 0;
	margin-left: 0.688rem;
}

/* Menus */
.nav-menu ul {
  left: auto;
  right: 0;
  text-align: right;
}
.nav-menu ul ul {
  /* float the 3rd level to the left */
  left: auto;
   right: 100%;
}
.sf-arrows .sf-with-ul {
  padding-left: 30px !important;
  padding-right: 0.688rem !important;
}

.sf-arrows .sf-with-ul:after {
	left: 1rem;
	right:auto;
}

.sub-menu ul {
	text-align: right;
}

#main-nav ul li:last-child {
	border-radius:0 12px 12px 0;
}


#mobile-nav {
  left: auto;
  right: -280px;
}

#mobile-nav ul li li {
  padding-left: 0;
  padding-right: 20px;
}
#mobile-nav ul .menu-item-has-children i {
  right: auto;
 left:0
}

#mobile-body-overly {
  left: auto;
  right: 0;
}

body.mobile-nav-active #mobile-nav {
  left: auto;
  right: 0;
}

body.mobile-nav-active #mobile-nav-toggle {
    right: auto;
	left: 0;
    float: left;
}

/* scroll to top */

.scrolltop {
	right: auto;
	left: 80px;
}

.comment-navigation .nav-previous, 
.posts-navigation .nav-previous, 
.post-navigation .nav-previous {
    text-align: left;
}

/* Text widget */

.widget_text ul {
	margin: 0 1.5rem 1.5rem 0;
}

.widget_text ul li ul {
	margin: 0 1.5rem 0 0;
}


/* Menu Widget */

#left-sidebar .widget_nav_menu .sub-menu {
	margin-right: 4%;
    margin-left: 0;
}

.widget_pm-recent-posts .post-date {
    float: left;
}

/* search widget */
.search-field {
	padding: 8px 15px 8px 65px;
	border-radius: 6px 0 0 6px; 
}

.search-submit {
    right: auto;
	left: 0;
    border-radius: 6px 0 0 6px;
}

/* WP Widget Gallery */
.widget_media_gallery .gallery-item {
	padding: 0 0 0 8px;
}

/* calendar widget */
#wp-calendar caption {
    text-align: left;
}
#wp-calendar tfoot #next {
    text-align: left;
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	.search #main .nav-previous {
		text-align: right;
	}	
	.search #main .nav-next {
		text-align: left;
	}	
	#featured-slider .prev-arrow {
		left: auto;
	  right: 150px;
	}

	#featured-slider .next-arrow {
		right: auto;
	  left: 150px;
	}		
}


/* WooCommerce Overrides  RTL */
input.qty {
    float: right;
}
div.quantity {
	float: right;
}
button.single_add_to_cart_button {
    margin: 0 -1px 0 0;
    border-radius: 6px 0 0 6px;
}

@media screen and (min-width: 48em) {
	.woocommerce .col2-set .col-1, 
	.woocommerce-page .col2-set .col-1 {
		float: right;
	}
	.woocommerce .col2-set .col-2, 
	.woocommerce-page .col2-set .col-2 {
		float: left;
	}	
}

