//--------------------------------------------------------------
// 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 "override/ltr/mixins.less";
@import "../../../plugins/system/ef4_jmframework/includes/assets/template/bootstrap/less-ext/mixins-ext.less"; //JM extended mixins
@import "template_mixins.less";

// OFFCANVAS
//---------------------------------------------------------------

html, 
body {
  height: 100%;
} 

//no-scroll class to prevent scrolling
html.no-scroll {
  width: 100%;
  overflow-y: scroll;
  position: fixed;
}

// page wrapper
// --------------------------

//transition to animate off-canvas and page
#jm-allpage {
  .transition(300ms ease all);
}

//right position of off-canvas
.off-canvas-right.off-canvas #jm-allpage {
  margin-left: -@JMoffCanvasWidth;
  margin-right: @JMoffCanvasWidth;
} 

//left position of off-canvas
.off-canvas-left.off-canvas #jm-allpage {
  margin-right: -@JMoffCanvasWidth;
  margin-left: @JMoffCanvasWidth;
} 

// off canvas column
// --------------------------

#jm-offcanvas {
  width: @JMoffCanvasWidth;
  height: 100%;
  position: fixed;
  z-index: 9999;
  background: @JMoffCanvasBackground;
  top: 0;
  .transition(300ms ease all);
}

//right position of off-canvas
.off-canvas-right #jm-offcanvas {
  right: -@JMoffCanvasWidth;
}

.off-canvas-right.off-canvas #jm-offcanvas {
  right: 0;
  overflow-y: auto;
}

//left position of off-canvas
.off-canvas-left #jm-offcanvas {
  left: -@JMoffCanvasWidth;
}

.off-canvas-left.off-canvas #jm-offcanvas {
  left: 0;
  overflow-y: auto;
}

//off-canvas toolbar
#jm-offcanvas-toolbar {
  background: @JMoffCanvasToolbarBackground;
  height: @JMtopbarHeight;
  line-height: @JMtopbarHeight;
  padding: 0 15px;
}

//off-canvas content
#jm-offcanvas-content {
  padding: 15px;
  color: @JMoffCanvasFontColor;
  .jm-title {
  	color: @JMoffCanvasFontColor;
  }
}

//toggle-nav
.toggle-nav {
  cursor: pointer;
  [class^="icon-"], 
  [class*=" icon-"] {
    font-size: @JMoffCanvasIconSize;
  }
}

.toggle-nav.menu {
  display: inline-block;
  color: @JMbaseFontColor;
  text-align: center;
  vertical-align: top;
}

.toggle-nav.close-menu {
  color: @JMoffcanvasModuleTitle;
}

.off-canvas-left #jm-offcanvas-toolbar {
  text-align: right;
}

html[dir='rtl'] .off-canvas-right #jm-offcanvas-toolbar {
  text-align: left;
}

// toggle-nav in topbar
#jm-top-bar .toggle-nav.menu {
  height: @JMtopbarHeight;
  [class^="icon-"], 
  [class*=" icon-"] {
    height: @JMtopbarHeight;
    line-height: @JMtopbarHeight;
  }
}

// toggle-nav in top-menu-nav
#jm-djmenu .toggle-nav.menu {
	margin: ((@JMmegamenuElementHeight /2) - 30) 0;
  height: 40px;
  [class^="icon-"], 
  [class*=" icon-"] {
  	top: -1px;
    height: 40px;
    line-height: 40px;
  }
}

// offcanvas module
#jm-offcanvas .jm-module {
.jm-title {
	color: @JMoffcanvasModuleTitle;
 }
 .readmore {
		color: @JMreadmoreOffcanvasColor;
		border-color: @JMreadmoreOffcanvasColor;
		&:hover {
			color: @JMreadmoreOffcanvasColorHover;
			border-color: @JMreadmoreOffcanvasColorHover;
		}
	}
	.btn,
	a.button,
	input.button,
	button.button {
		background: @JMbtnOffcanvasBackground;
		color: @JMbtnOffcanvasFontColor;
		&:hover {
			background: @JMbtnOffcanvasBackgroundHover;
			color: @JMbtnOffcanvasFontColorHover;
		}
	}
}
