//
// Component: Subnav
//
// ========================================================================


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

//
// New
//

@subnav-pill-item-border-width:                           0;

@subnav-pill-item-border:                                 transparent;
@subnav-pill-item-hover-border:                           transparent;
@subnav-pill-item-onclick-border:                         transparent;
@subnav-pill-item-active-border:                          transparent;

@subnav-pill-item-disabled-border:                        transparent;


// Component
// ========================================================================

.hook-subnav() {}

.hook-subnav-item() {}

.hook-subnav-item-hover() {}

.hook-subnav-item-active() {}


// Divider modifier
// ========================================================================

.hook-subnav-divider() {}


// Pill modifier
// ========================================================================

.hook-subnav-pill-item() when not (@subnav-pill-item-border-width = 0) {
    border: @subnav-pill-item-border-width solid @subnav-pill-item-border;
}

.hook-subnav-pill-item-hover() when not (@subnav-pill-item-border-width = 0) {
    border-color: @subnav-pill-item-hover-border;
}

.hook-subnav-pill-item-onclick() when not (@subnav-pill-item-border-width = 0) {
    border-color: @subnav-pill-item-onclick-border;
}

.hook-subnav-pill-item-active() when not (@subnav-pill-item-border-width = 0) {
    border-color: @subnav-pill-item-active-border;
}


// Disabled
// ========================================================================

.hook-subnav-item-disabled() when not (@subnav-pill-item-border-width = 0) {
    border-color: @subnav-pill-item-disabled-border;
}


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

.hook-subnav-misc() {}


// Inverse
// ========================================================================

@inverse-subnav-pill-item-border:                                 transparent;
@inverse-subnav-pill-item-hover-border:                           transparent;
@inverse-subnav-pill-item-onclick-border:                         transparent;
@inverse-subnav-pill-item-active-border:                          transparent;

@inverse-subnav-pill-item-disabled-border:                        transparent;

.hook-inverse-subnav-item() {}
.hook-inverse-subnav-item-hover() {}
.hook-inverse-subnav-item-active() {}

.hook-inverse-subnav-divider() {}

.hook-inverse-subnav-pill-item() when not (@subnav-pill-item-border-width = 0) {
    border-color: @inverse-subnav-pill-item-border;
}
.hook-inverse-subnav-pill-item-hover() when not (@subnav-pill-item-border-width = 0) {
    border-color: @inverse-subnav-pill-item-hover-border;
}
.hook-inverse-subnav-pill-item-onclick() when not (@subnav-pill-item-border-width = 0) {
    border-color: @inverse-subnav-pill-item-onclick-border;
}
.hook-inverse-subnav-pill-item-active() when not (@subnav-pill-item-border-width = 0) {
    border-color: @inverse-subnav-pill-item-active-border;
}
.hook-inverse-subnav-item-disabled() when not (@subnav-pill-item-border-width = 0) {
    border-color: @inverse-subnav-pill-item-disabled-border;
}
