//--------------------------------------------------------------
// 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 "bootstrap_variables.less";  
@import "template_variables.less";

// MIXINS import
//---------------------------------------------------------------
  
@import "override/ltr/mixins.less";
@import "template_mixins.less";

// MEGAMENU RTL
//---------------------------------------------------------------

html[dir='RTL'] {
//wrapper

.dj-megamenu-override {
	text-align: right;
}

.dj-megamenu-override li.dj-up {
  float: right;
	margin: 0 1px 0 0;
	&:first-child {
		margin: 0;
	}
	&.parent:hover,
	&.parent.hover {
  	a.dj-up_a {
			&:after {
				left: auto;
				right: 0;
			}
		}
  }
}

// submenu
// --------------------------  

//first level submenu
.dj-megamenu-override {
  li:hover,
  li.hover {
    div.dj-subwrap {
      left: auto;
      right: -(30px - @JMtopmenuItemWidth);
    }
  }
}

//higher level submenu
#jm-allpage .dj-megamenu-override {
  li:hover,
  li.hover {
    div.dj-subwrap div.dj-subwrap {
      left: auto;
      right: 100%;
    }
  }
}

.dj-megamenu-override .dj-submenu,
.dj-megamenu-override .dj-subtree {
  > li.parent > a {
    &:after {
      right: auto;
      left: 5px;
    }
  }
}

// submenu tree
// --------------------------  
.dj-megamenu-override .dj-subtree {
  > li > a {
    background-position: right 50%;
    background-image: url('../images/li_arrow_rtl.png');
  }
}

//image in menu
.dj-megamenu-override-override {
  li.dj-up a span.image-title {
    margin: 0 15px 0 0;
  }
}

//end wrapper
}
