Your IP : 216.73.216.240
/**
* NoNumber Page stylesheet
*
* @package Tabs
* @version 3.3.6
*
* @author Peter van Westen <peter@nonumber.nl>
* @link http://www.nonumber.nl
* @copyright Copyright © 2013 NoNumber All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
/*
* You can override this stylesheet by creating your own in:
* /templates/[YOUR TEMPLATE]/css/tabs/style.min.css
*/
@import "../../nnframework/less/init.less";
@import "bootstrap.less";
.nn_tabs {
> ul.nav-tabs > li > a {
.transition-duration(.2s);
color: @linkColor;
text-decoration: none;
&:hover {
color: @linkColorHover;
text-decoration: none;
}
}
> .tab-content {
margin-bottom: 10px;
}
// Outline Content
&.outline_content {
> .tab-content {
margin-bottom: 18px;
padding: 0;
border: 1px solid #ddd;
border-top: none;
.border-radius(0 0 4px 4px);
.tab-pane {
padding: 8px 12px 4px;
}
}
> ul.nav-tabs {
margin-bottom: 0;
}
}
// Outline Tabs
&.outline_handles {
> ul.nav-tabs > li {
a,
a:hover, {
border-top-color: #ddd;
border-left-color: #ddd;
border-right-color: #ddd;
}
}
}
// Right Alignment
&.align_right {
> ul.nav-tabs {
> li {
float: right;
> a {
margin-left: 2px;
margin-right: 0;
}
}
}
}
// Centered Alignment
&.align_center {
> ul.nav-tabs {
text-align: center;
> li {
float: none;
display: inline-block;
.ie7-inline-block();
margin-left: -1px;
margin-right: -3px;
}
}
}
// Justified Alignment
&.align_justify {
> ul.nav-tabs {
text-align: center;
display: table;
width: 100%;
> li {
float: none;
display: table-cell;
&:last-child > a {
margin-right: 0;
}
a {
margin-bottom: -1px;
}
a:hover, {
border-bottom-color: #eee;
}
&.active a,
&.active a:hover {
border-bottom: 2px solid #fff;
margin-bottom: -1px;
}
}
&:before {
display: none;
}
&:after {
display: none;
}
}
}
// Classes: Normal state + Hover state
> ul.nav-tabs {
// Small screen styling
@media (max-width: 768px) {
> li {
float: none;
&:last-child,
&.active:last-child {
> a,
> a:hover {
border-bottom: 1px solid #ddd;
}
}
}
}
.tabColor(@name, @color) {
> li.@{name} {
> a,
> a:hover {
border-top: 5px solid lighten(@color, 20%);
padding-top: 4px;
.border-radius(5px 5px 0 0);
}
> a:hover, // Hover state
&.active > a {
// Active state
border-top-color: @color;
}
}
@media (max-width: 768px) {
> li.@{name} {
> a,
> a:hover {
border-top-width: 1px;
.border-radius(0);
}
}
}
}
// Style: blue
.tabColor(~'blue', @btnPrimaryBackground);
.tabColor(~'primary', @btnPrimaryBackground);
// Style: info
.tabColor(~'info', @btnInfoBackgroundHighlight);
// Style: green / success
.tabColor(~'green', @btnSuccessBackgroundHighlight);
.tabColor(~'success', @btnSuccessBackgroundHighlight);
// Style: orange / warning
.tabColor(~'orange', @btnWarningBackgroundHighlight);
.tabColor(~'warning', @btnWarningBackgroundHighlight);
// Style: red / danger
.tabColor(~'red', @btnDangerBackgroundHighlight);
.tabColor(~'danger', @btnDangerBackgroundHighlight);
.tabColor(~'error', @btnDangerBackgroundHighlight);
// Style: grey / gray
.tabColor(~'grey', #808080);
.tabColor(~'gray', #808080);
}
}