formstone
Version:
Library of modular front end components.
107 lines (78 loc) • 2.3 kB
text/less
/**
* @theme
* @name Light
* @component Tabs
*/
.fs-tabs {
@import "_config.less";
@theme_name: fs-light;
//Config
@fs-tabs-tab-background-color: @fs-light-primary_200;
@fs-tabs-tab-border-color: @fs-light-primary_600;
@fs-tabs-tab-border-radius: 2px;
@fs-tabs-tab-font-size: 14px;
@fs-tabs-tab-text-color: @fs-light-primary_900;
@fs-tabs-tab-margin: 0 5px 0 0;
@fs-tabs-tab-padding: 10px 20px;
// Hover
@fs-tabs-tab-hover-background-color: @fs-light-primary_100;
// Active
@fs-tabs-tab-active-background-color: @fs-light-white;
@fs-tabs-tab-active-text-color: @fs-light-primary_900;
// Mobile
@fs-tabs-tab-mobile-border-radius: 2px;
@fs-tabs-tab-mobile-margin: 10px 0;
@fs-tabs-tab-mobile-active-border-radius: 2px 2px 0 0;
@fs-tabs-tab-mobile-active-margin: 10px 0 0;
@fs-tabs-content-mobile-border-radius: 0 0 2px 2px;
// Tab
.@{theme_name}&-tab&-enabled,
.@{theme_name}&-tab_mobile {
background: @fs-tabs-tab-background-color;
border: 1px solid @fs-tabs-tab-border-color;
border-radius: @fs-tabs-tab-border-radius;
color: @fs-tabs-tab-text-color;
display: inline-block;
font-size: @fs-tabs-tab-font-size;
margin: @fs-tabs-tab-margin;
padding: @fs-tabs-tab-padding;
text-transform: uppercase;
text-decoration: none;
.no-touchevents &:hover {
background: @fs-tabs-tab-hover-background-color;
}
}
.@{theme_name}&-tab&-active,
.@{theme_name}&-tab_mobile&-active {
&,
.no-touchevents &:hover {
background: @fs-tabs-tab-active-background-color;
color: @fs-tabs-tab-active-text-color;
}
}
// Content
.@{theme_name}&-content&-enabled {
}
.@{theme_name}&-content&-active {
}
// Mobile
.@{theme_name}&-tab&-mobile {
display: none;
}
.@{theme_name}&-tab&-tab_mobile {
width: 100%;
border-radius: @fs-tabs-tab-mobile-border-radius;
display: none;
margin: @fs-tabs-tab-mobile-margin;
}
.@{theme_name}&-tab_mobile&-mobile {
display: block;
}
.@{theme_name}&-tab_mobile&-active {
border-radius: @fs-tabs-tab-mobile-active-border-radius;
margin: @fs-tabs-tab-mobile-active-margin;
}
.@{theme_name}&-content&-mobile {
border-radius: @fs-tabs-content-mobile-border-radius;
}
}