/*------------------------------------------------------------------ [11. Tabs & Accordians] */ /* Tabs ------------------------------------ */ .nav-tabs { margin-bottom:15px; & > li { padding-left: 0; padding-right: 0; &.active { & > a, & > a:hover, & > a:focus { border-color: mix($text-color, #fff, 16%); color: $brand-primary; background-color: mix($text-color, #fff, 16%); } } & > a { border-radius: 0; padding: 14px 20px; margin-right: 0; font-weight: 400; color: mix($text-color, #fff, 75%); min-width: 70px; border-color: transparent; &:hover, &:focus { background: transparent; border-color: transparent; color: $text-color; } .tab-icon { margin-right: 6px; } } } & ~ .tab-content { overflow: hidden; padding: 15px; background:$white; & > .tab-pane { &.slide-left, &.slide-right { @include transition(all .3s ease); &.sliding { opacity: 0 !important; } &.active { @include translate3d(0, 0, 0); opacity: 1; } } &.slide-left.sliding { @include translate3d(10%, 0, 0); } &.slide-right.sliding { @include translate3d(-10%, 0, 0); } } } // POSITIONG OPTIONS &.nav-tabs-left, &.nav-tabs-right { &:after { border-bottom: 0px; } & > li { float: none; } } &.nav-tabs-left { float: left; & ~ .tab-content { border-left: 1px solid rgba(0, 0, 0, 0.06); } } &.nav-tabs-right { float: right; & ~ .tab-content { border-right: 1px solid rgba(0, 0, 0, 0.06); } } } /* Tabs : Simple ------------------------------------ */ .nav-tabs-simple { border-bottom: 0px; background:$white; min-width:200px; & > li { margin-bottom: 0; &:after { @include transition(all 0.1s linear 0s); -webkit-backface-visibility: hidden; width: 100%; display: block; background-color: $brand-primary; height: 0px; content: ''; z-index: 125; .nav-tabs-primary#{&} { background-color: $brand-primary; } .nav-tabs-success#{&} { background-color: $brand-success; } .nav-tabs-danger#{&} { background-color: $brand-danger; } .nav-tabs-warning#{&} { background-color: $brand-warning; } .nav-tabs-info#{&} { background-color: $brand-info; } } &.active a { &, &:hover, &:focus { background-color: transparent; border-color: transparent; } } &.active, &:hover { &:after { height: 3px; } } } // POSITIONG OPTIONS &.nav-tabs-left, &.nav-tabs-right { &:after { border-bottom: 0px; } & > li { &:after { width: 0px; height: 100%; top: 0; bottom: 0; position: absolute; z-index:3; } &.active, &:hover { &:after { width: 5px; } } } & ~ .tab-content { } } &.nav-tabs-left { & > li:after { left: 0; } } &.nav-tabs-right { & > li:after { left: 0; } } } /* Tabs : Line Triangles ------------------------------------ */ .nav-tabs-linetriangle { border-bottom: 0; &:after { border-bottom: 1px solid rgba(0, 0, 0, 0.1); width: 100%; position: relative; bottom: 0; } & > li { &.active { & > a { background: transparent; box-shadow: none; border-color: transparent; &:hover, &:focus, &:active { border-color: transparent; background-color: transparent; } &:after, &:before { border: medium solid transparent; content: ""; height: 0; left: 50%; pointer-events: none; position: absolute; width: 0; z-index: 1; top: 100%; } &:after { border-top-color: mix($text-color, #fff, 0%); border-width: 10px; margin-left: -10px; } &:before { border-top-color: rgba(0, 0, 0, 0.2); border-width: 11px; margin-left: -11px; } } } & > a { span { font-size: 1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } & > a, & > a:hover, & > a:focus { overflow: visible; @include transition( color 0.2s ease 0s); } } & ~ .tab-content { background: #fff; } // POSITIONG OPTIONS &.nav-tabs-left { &.nav-tabs { &:after { border-bottom: none; } & > li.active { & > a:before { border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 11px solid rgba(0, 0, 0, 0.2); } & > a:after { border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 10px solid mix($text-color, #fff, 3%); margin-top: 1px; margin-right: 2px; } & > a:after, & > a:before { top: auto; right: -23px; left: auto; } } } } &.nav-tabs-right { &.nav-tabs { &:after { border-bottom: none; } & > li.active { & > a:before { border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-right: 11px solid rgba(0, 0, 0, 0.2); } & > a:after { border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 10px solid mix($text-color, #fff, 3%); margin-top: 1px; margin-left: -9px; } & > a:after, & > a:before { top: auto; left: -12px; right: auto; } } } } } /* Tabs : Fill-up ------------------------------------ */ .nav-tabs-fillup { @include backface-visibility(hidden); @include perspective(1000); & > li { overflow: hidden; & > a { @include backface-visibility(hidden); @include transition(color 0.3s ease 0s); background: transparent; &:after { @include backface-visibility(hidden); background: none repeat scroll 0 0 $brand-success; border: 1px solid $brand-success; content: ""; height: calc(100% + 1px); left: 0; position: absolute; top: 0; -webkit-transform: translate3d(0, 100%, 0px); transform: translate3d(0, 100%, 0px); -webkit-transition: -webkit-transform 0.3s ease 0s; transition: transform 0.3s ease 0s; width: 100%; z-index: -1; .nav-tabs-primary#{&} { background: none repeat scroll 0 0 $brand-primary; border: 1px solid $brand-primary; } .nav-tabs-success#{&} { background: none repeat scroll 0 0 $brand-success; border: 1px solid $brand-success; } .nav-tabs-warning#{&} { background: none repeat scroll 0 0 $brand-warning; border: 1px solid $brand-warning; } .nav-tabs-danger#{&} { background: none repeat scroll 0 0 $brand-danger; border: 1px solid $brand-danger; } .nav-tabs-info#{&} { background: none repeat scroll 0 0 $brand-info; border: 1px solid $brand-info; } } span { @include backface-visibility(hidden); -webkit-transform: translate3d(0px, 5px, 0px); transform: translate3d(0px, 5px, 0px); -webkit-transition: -webkit-transform 0.5s ease 0s; transition: transform 0.5s ease 0s; display: block; font-weight: 700; line-height: 1.5; } } &.active { z-index: 100; > a { &, &:hover, &:focus { border-color: transparent; background: transparent; color: #fff; } &:after { @include translate3d(0px, 0px, 0px); } span { @include translate3d(0px, -5px, 0px); } } .icon:before { @include translate3d(0px, -5px, 0px); } } } .icon:before { @include translate3d(0px, 5px, 0px); @include transition(transform 0.5s ease 0s); display: block; margin: 0; } & ~ .tab-content { background: #fff; } // POSITIONG OPTIONS &.nav-tabs-left, &.nav-tabs-right { border-bottom: none; &:after { border-bottom: none; } & > li { & > a { &:after { width: calc(100% + 1px); height: 100%; } } &.active { a{&:after { @include translate3d(0px, 0px, 0px); } } } } } &.nav-tabs-left { & > li { & > a { &:after { @include translate3d(100%, 0, 0); } span { @include translate3d(5px, 0, 0px); } } &.active { a{span { @include translate3d(-5px, 0, 0px); } } .icon:before { @include translate3d(-5px, 0, 0px); } } } } &.nav-tabs-right { & > li { & > a { &:after { @include translate3d(-100%, 0, 0); left: -1px; } span { @include translate3d(-5px, 0, 0px); } } &.active { a{span { @include translate3d(5px, 0, 0px); } } .icon:before { @include translate3d(5px, 0, 0px); } } } } } /* Panel Groups ------------------------------------ */ .panel-group { margin-bottom: 18px; .panel-heading { padding: 13px 18px 10px 22px; &.collapsed { background-color: #fff; } & + .panel-collapse { .panel-body { border: 0; } } .panel-title { width: 100%; & > a { color: $text-color; font-size: 13px; font-weight: normal; display: block; opacity: 1; &:hover { color: $text-color !important; &:after { color: $text-color !important; } } &:after { font-family: 'Font Awesome 5 Free'; content: "\f056"; position: absolute; right: 13px; top: 36%; color: $text-color; } &.collapsed { color: mix($text-color, #fff, 75%); opacity: 1; &:after { content: "\f055"; color: mix($text-color, #fff, 75%); } } } } } .panel { & + .panel { margin-top: 2px; } .panel-body { height: auto; } } } .nav-pills { > li { // Links rendered as pills > a { border-radius: 0; color: $text-color; } // Active state &.active > a { &, &:hover, &:focus { color: $text-color; background-color: mix($text-color, #fff, 16%); } } } } @media (max-width:767px) { .nav.nav-tabs.nav-stack-sm { li { float: none; } &.nav-tabs-linetriangle > li.active > a:after, &.nav-tabs-linetriangle > li.active > a:before { display: none; } } }