/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

//
// Component: Nav
//
// ========================================================================


// Variables
// ========================================================================

@nav-padding-vertical:                          7px;
@nav-padding-horizontal:                        0;

@nav-header-padding-vertical:                   @nav-padding-vertical;
@nav-header-padding-horizontal:                 @nav-padding-horizontal;
@nav-header-font-size:                          round(@global-font-size * 0.85); // 12px
@nav-header-font-weight:                        normal;
@nav-header-margin-top:                         @global-margin;

@nav-divider-margin-vertical:                   10px;
@nav-divider-margin-horizontal:                 0;

@nav-subtitle-font-size:                        round(@global-font-size * 0.85); // 12px
@nav-subtitle-line-height:                      round(@nav-subtitle-font-size * 1.5); // 18px

@nav-sub-padding-vertical:                      10px;
@nav-sub-padding-left:                          15px;

@nav-parent-icon-width:                         12px;
@nav-parent-icon-margin-right:                  -12px;

@nav-side-color:                                @global-color;
@nav-side-hover-background:                     rgba(0,0,0,0);
@nav-side-hover-color:                          @global-link-color;
@nav-side-active-background:                    rgba(0,0,0,0);
@nav-side-active-color:                         @global-link-color;
@nav-side-header-color:                         @global-color;
@nav-side-divider-border:                       @global-border;
@nav-side-nested-color:                         @global-color;
@nav-side-nested-hover-color:                   @global-link-hover-color;

@nav-dropdown-color:                            @global-color;
@nav-dropdown-hover-background:                 rgba(0,0,0,0);
@nav-dropdown-hover-color:                      @global-link-color;
@nav-dropdown-header-color:                     @global-muted-color;
@nav-dropdown-divider-border:                   @global-border;
@nav-dropdown-nested-color:                     @global-color;
@nav-dropdown-nested-hover-color:               @global-link-hover-color;

@nav-navbar-color:                              @global-color;
@nav-navbar-hover-background:                   rgba(0,0,0,0);
@nav-navbar-hover-color:                        @global-link-color;
@nav-navbar-header-color:                       @global-muted-color;
@nav-navbar-divider-border:                     @global-border;
@nav-navbar-nested-color:                       @global-color;
@nav-navbar-nested-hover-color:                 @global-link-hover-color;

@nav-offcanvas-padding-horizontal:              20px;
@nav-offcanvas-color:                           @global-color;
@nav-offcanvas-hover-background:                rgba(0,0,0,0);
@nav-offcanvas-hover-color:                     @global-link-hover-color;
@nav-offcanvas-active-background:               rgba(0,0,0,0);
@nav-offcanvas-active-color:                    @global-link-hover-color;
@nav-offcanvas-header-color:                    @offcanvas-panel-color;
@nav-offcanvas-divider-border:                  @global-border;
@nav-offcanvas-nested-color:                    @global-color;
@nav-offcanvas-nested-hover-color:              @global-link-hover-color;

//
// New
//

@nav-border: 									@global-border;
@nav-divider-height: 							3px;
@nav-sub-background: 							@global-light-background;

@nav-offcanvas-border: 							@global-border;

@nav-side-padding-vertical: 					10px;
@nav-side-padding-horizontal: 					15px;


// Sub-object: `uk-nav-header`
// ========================================================================

.hook-nav-header() {}


// Sub-object: `uk-nav-divider`
// ========================================================================

.hook-nav-divider() {

	border-top-width: @nav-divider-height!important;

	+ li > a { border-top-width: 0!important; }

}


// Sub-object: `uk-nav-sub`
// ========================================================================

.hook-nav-sub() {
	padding-right: @nav-sub-padding-vertical;
	border-top: 1px solid @nav-border;
	background: @nav-sub-background;
}


// Modifier: `uk-nav-parent-icon`
// ========================================================================

.hook-nav-parent-icon() {}


// Modifier `uk-nav-side`
// ========================================================================

//
// Items
//

.hook-nav-side() {
	padding: @nav-side-padding-vertical @nav-side-padding-horizontal;
	border-top: 1px solid @nav-border;
}

// Hover
.hook-nav-side-hover() {}

// Active
.hook-nav-side-active() {}

//
// Sub-object: `uk-nav-header`
//

.hook-nav-side-header() {}

//
// Sub-object: `uk-nav-divider`
//

.hook-nav-side-divider() {}


// Modifier `uk-nav-dropdown`
// ========================================================================

//
// Items
//

.hook-nav-dropdown() {}

// Hover
.hook-nav-dropdown-hover() {}

//
// Sub-object: `uk-nav-header`
//

.hook-nav-dropdown-header() {}

//
// Sub-object: `uk-nav-divider`
//

.hook-nav-dropdown-divider() {}


// Modifier `uk-nav-navbar`
// ========================================================================

//
// Items
//

.hook-nav-navbar() {}

// Hover
.hook-nav-navbar-hover() {}

//
// Sub-object: `uk-nav-header`
//

.hook-nav-navbar-header() {}

//
// Sub-object: `uk-nav-divider`
//

.hook-nav-navbar-divider() {}


// Modifier `uk-nav-offcanvas`
// ========================================================================

.hook-nav-offcanvas-link() {}
.hook-nav-offcanvas-link-hover() {}

//
// Items
//

.hook-nav-offcanvas() { border-top: 1px solid @nav-offcanvas-border; }

// Hover
.hook-nav-offcanvas-hover() {}

// Active
.hook-nav-offcanvas-active() {}

//
// Sub-object: `uk-nav-header`
//

.hook-nav-offcanvas-header() { padding: @nav-offcanvas-padding-vertical @nav-offcanvas-padding-horizontal; }

//
// Sub-object: `uk-nav-divider`
//

.hook-nav-offcanvas-divider() {}


// Miscellaneous
// ========================================================================

.hook-nav-misc() {

	/* Modifier `uk-nav-side`
	 ========================================================================== */

	.uk-nav-side > li:first-child > a { border-top-width: 0; }


	// Sub-object: `uk-nav-sub`
	// ========================================================================

	.uk-nav-dropdown ul.uk-nav-sub,
	.uk-nav-navbar ul.uk-nav-sub { border-bottom: 1px solid @nav-border; }
	.uk-nav-offcanvas ul.uk-nav-sub { padding-left: @nav-offcanvas-padding-horizontal; }

}