//--------------------------------------------------------------
// Copyright (C) joomla-monster.com
// License: http://www.joomla-monster.com/license.html Joomla-Monster Proprietary Use License
// Website: http://www.joomla-monster.com
// Support: info@joomla-monster.com
//---------------------------------------------------------------

// VARIABLES import
//---------------------------------------------------------------

@import "template_variables.less";
@import "bootstrap_variables.less";

// MIXINS import
//---------------------------------------------------------------

@import "../../../plugins/system/ef4_jmframework/includes/assets/template/bootstrap/less-ext/mixins-ext.less"; //JM extended mixins
@import "template_mixins.less";

// TEMPLATE RTL
//---------------------------------------------------------------

// layout.less
// ----------------------------------------------------

#jm-top-menu {
	padding-left: 0;
	padding-right: @JMbaseSpace;
}

#jm-header-bg + #jm-header-content {
	left: auto;
	right: 50%;
	margin-left: 0;
	margin-right: -(@JMfluidGridContainerLg/2);
}

#jm-back-top {
	a {
		padding-right: 0;
		padding-left: 7px;
		span {
			margin-left: 0;
			margin-right: 5px;
		}
	}
}

#jm-font-switcher .resizer {
	li {
		margin-right: 3px;
		margin-left: 0;
	}
}

// joomla.less
// ----------------------------------------------------

// BOOTSTRAP
//---------------

//chosen
#jm-allpage .chzn-container .chzn-drop,
#jm-allpage .chzn-container-single.chzn-container-single-nosearch .chzn-search {
	left: auto;
	right: -9999px;
}

#jm-allpage .chzn-container.chzn-with-drop .chzn-drop {
	left: auto;
	right: 0;
}

//chzn
#jm-allpage {
	.chzn-container-multi .chzn-choices li {
		float: right;
	}
	.chzn-container-single .chzn-single span {
		margin-right: 0;
		margin-left: 18px;
	}
	.chzn-container-single .chzn-single div {
		right: auto;
		left: 8px;
	}
}

// JOOMLA COMPONENT
//---------------------

//all articles
dl.article-info {
	dd {
		margin: 0 0 0 5px;
	}
}

//rating and voting
.content_vote label {
	margin: 0 0 0 5px;
}

//article categories
.categories-list .collapse {
	padding: 0 @JMbaseSpace 0 0;
}

//article image
.pull-left.item-image,
figure.pull-left {
	margin-right: 0;
	margin-left: @JMbaseSpace;
}

.pull-right.item-image,
figure.pull-right {
	margin-left: 0;
	margin-right: @JMbaseSpace;
}

//readmore
p.readmore {
	text-align: left;
}

//weblinks single category
.weblink-count {
	dt,
	dd {
		float: right;
	}
}

//tag-category
.tag-category {
	.form-inline label {
		margin-right: 0;
		margin-left: 10px;
	}
}

//search component
.phrases-box,
fieldset.only {
	label {
		margin-right: 0;
		margin-left: 10px;
	}
}

//article index
.article-index {
	margin-left: 0;
	margin-right: @JMbaseSpace;
}

// JOOMLA MODULES
//---------------------

//article categories
.categories-module li  {
	.mod-articles-category-category a {
		display: inline-block;
	}
}

//article category
.category-module li {
	.mod-articles-category-category a {
		display: inline-block;
	}
}

//search module
.form-search {
	label.finder {
		padding: 0 0 0 10px;
	}
}

//popular tags
.tagspopular.tagscloud {
	.tag {
		margin-right: 0;
		margin-left: 8px;
	}
}

// menus.less
// ----------------------------------------------------

.nav.menu {
	//all elements
	li a,
	li span.separator {
		padding-left: 0;
		padding-right: 15px;
		background-position: right center;
	}
	//parents
	> li.parent > a,
	> li.parent > span.separator {
		padding-right: 0;
		padding-left: 10px;
		&:after {
			right: auto;
			left: 0;
		}
	}
	> li > ul {
		padding-left: 0;
		padding-right: 10px;
	}
	ul {
		padding-left: 0;
		padding-right: 15px;
	}
	 //image
	li a img {
		margin: 0 0 0 9px;
	}
}

// topbar
//----------------------------

#jm-top-bar .nav.menu {
	margin-left: 0;
	margin-right: 1px;
	> li {
		float: right;
		margin: 0 -1px -1px 0;
	}
}

//high contrast buttons
#jm-allpage #jm-page-settings {
	.nav.menu {
		ul {
			li {
				float: right;
			}
		}
		.contrast {
			li.contrast-label {
				padding-right: 0;
				padding-left: 5px;
			}
		}
		.container-width {
			li.width-label {
				padding-right: 0;
				padding-left: 5px;
			}
		}
		.resizer {
			li.resizer-label {
				padding-right: 0;
				padding-left: 5px;
			}
		}
	}
}

// skip-ms
//----------------------------

#jm-allpage #jm-top-bar .skip-ms {
	left: auto;
	right: 0;
	.nav.menu {
		> li > a {
			left: auto;
			right: -9999px;
			&:focus {
				left: auto;
				right: 0;
			}
		}
	}
}

// tags
#jm-allpage {
	.tagspopular ul,
	.tagssimilar ul {
		> li {
			margin: 0 0 10px 6px;
		}
	}
}

// modules.less
// ----------------------------------------------------

.span50 {
	float: right !important;
}

//logout topbar
#jm-top-bar {
	.logout-button .btn {
		margin-left: 10px !important;
		margin-right: 10px !important;
	}
}

//jmmoduleraw
.jm-module-raw {
	float: right;
	margin-right: 0;
	margin-left: 20px;
}

//topbar2
//top-menu
#jm-top-bar2,
#jm-top-menu {
	.jm-module-raw {
		float: left;
		margin-left: 0;
		margin-right: 20px;
		&:first-child {
			margin-right: 0;
		}
	}
}

// custom html
// ----------------------------------

// topbar contact
// --------------------------

.jm-top-contact {
	.item {
		float: right;
	}
}

// search-ms
// --------------------------

#jm-allpage .search-ms {
	form {
		.btn {
			margin-left: 0;
			margin-right: -2px;
		}
	}
}

// article category
// --------------------------

.jm-category-module {
	li {
		float: right;
	}
	.mod-article-image {
		padding: 0 0 0 20px;
	}
}

.article-ms {
	.jm-category-module {
		.mod-articles-category-title {
			float: right;
			&:before,
			&:after {
				left: auto;
				right: 0;
			}
		}
	}
}

// Pricing
// --------------------------

.jm-pricing {
	.box {
		float: right;
	}
}

// DJ-Simple-Contact-form
// --------------------------

#jm-allpage .dj-simple-contact-form {
	.name,
	.email {
		float: right;
	}
	.name + .email {
		padding-left: 0;
		padding-right: 20px;
	}
	.button-box {
		text-align: left;
	}
}

// mapX
// --------------------------

.sitemap {
	ul ul {
		padding-left: 0;
		padding-right: @JMbaseSpace;
	}
}

// editor.less
// ----------------------------------------------------

.jm-block {
	padding: 0 60px 0 0;
	span {
		left: auto;
		right: 0;
	}
}

//colored blocks
p.blue {
	border-left: none;
	border-right: 3px solid #BCE8F1;
	padding: 0 10px 0 0;
}

p.green {
	border-left: none;
	border-right: 3px solid #D6E9C6;
	padding: 0 10px 0 0;
}

p.red {
	border-left: none;
	border-right: 3px solid #EED3D7;
	padding: 0 10px 0 0;
}

//icon blocks
p,
span {
	&.jmbadge,
	&.jmcalendar,
	&.jmchat,
	&.jmcheck,
	&.jmcloud,
	&.jmdirection,
	&.jmdivide,
	&.jmerror,
	&.jmfire,
	&.jmflag,
	&.jmheart,
	&.jmhome,
	&.jminfo,
	&.jmlist,
	&.jmmail,
	&.jmpeople,
	&.jmstar,
	&.jmstat {
		padding-left: 0;
		padding-right: 60px;
		background-position: right top;
	}
}

// EXTENSIONS import
//---------------------------------------------------------------

//import extended DJ-Megamenu styles
@import "djmegamenu_rtl.less";

//import extended DJ-ImageSlider styles
@import "djimageslider_rtl.less";
