// ========================================================================== // Navigation // ========================================================================== //- Base nav styling to make uls inline and unstyled nav { ul { @extend %list-unstyled; } &.nav-inline ul { @extend %list-inline; } } //- Horizontal ribbon subnav for page .page-subnav { position: relative; background-color: $gray-lighter; @include clearfix(); .btn { margin: $pad !important; } nav > ul { float: left; li { display: inline-block; font-size: $font-lg; } a { display: block; padding: $pad*1.25; margin-top: 3px; // adjust for bottom border text-decoration: none; color: fade-out($purple, .4); border-bottom: 3px solid fade-out($purple, 1); @include transition(all $transition); [class^="hk-icon"] { margin-bottom: -7px; margin-right: $pad; top: -2px; font-weight: normal; font-size: $font-lg; } &.active { color: $purple; border-color: $purple; } &:hover { color: $purple; } &:active, &:focus { outline: none; } } } .btn { margin: ($pad-lg - 1) 0; @include media($tablet) { display: none; } } } //- List nav .list-nav { ul { list-style-type: none; padding: 0; } li { margin-bottom: $pad-sm; a { text-decoration: none; padding-left: 0; color: $text-color-light; @include transition(.2s $ease-out-expo); &:hover { color: $text-color; } } &.active a { color: $purple; &.action { padding-left: $pad; } } } &-sm { font-size: $font-sm; h5 { margin-bottom: $pad; } } &.slide-action { li { a:hover { padding-left: $pad; } &.active a { padding-left: $pad; } } } } //- Breadcrumbs .breadcrumbs { padding: $pad-lg 0; font-size: $font-base; font-weight: $font-bold; background: $off-white; color: fade-out($text-color-light, .5); @include clearfix(); &.breadcrumbs-sm { font-size: $font-xs; } nav { float: left; } ul { @extend %list-unstyled; @extend %list-inline; } li:last-child a { color: $text-color; font-weight: $font-bold; } a { text-decoration: none; font-weight: $font-normal; color: $text-color-light; &:hover { color: $purple; } } } //-Tabs .tabs { @include clearfix(); .tab { display: inline; } [type="radio"] { clip: rect(0 0 0 0); height: 1px; opacity: 0; position: fixed; width: 1px; z-index: $z-background; &:checked + .tab-label { font-weight: bold; color: $purple; z-index: 1; } &:checked ~ .tab-panel { display: inline; } } .tab-label { display: inline-block; font-size: $font-sm; position: relative; vertical-align: bottom; cursor: pointer; } .tab-panel { display: inline; display: inline-block; overflow: hidden; position: relative; height: 0; width: 0; } .tab-content { display: block; float: left; font-size: 1em; width: 100%; } } //- Tabs themes .tabs { //- Basic &.tabs-basic { .tab-label { border: $border; padding: $pad $pad-lg; margin: $pad-lg 0; } } //- Terminal style &.tabs-terminal { background: darken($purple, 20%); .tab-label-active { background: #EAE9F1; color: #222; font-weight: normal; border-right: 0; border-radius: 0 0 $border-radius $border-radius; border-top: 1px solid fade-out(black, .8); } .tab-label { padding: 8px 13px; border-right: 1px solid fade-out($black, .8); font-weight: normal; font-size: 16px; color: $white; color: fade-out($white, .2); &.active { @extend .tab-label-active; } } [type="radio"]:checked { + .tab-label { @extend .tab-label-active; } } } }