ensl.org/app/assets/stylesheets/components/_tabs.scss

63 lines
1.2 KiB
SCSS
Raw Normal View History

2014-04-13 11:16:51 +00:00
/*
Tabs
2014-04-13 11:16:51 +00:00
*/
.tabbed {
$tabs-border-width: em(1);
2014-04-18 00:07:07 +00:00
$tabs-border-colour: darken($light-gray, 10);
2014-04-13 11:16:51 +00:00
$tabs-padding-vertical: em(8);
$tabs-padding-horizontal: em(16);
ul.tabs {
@include span-columns(12);
display: block;
font-family: $montserrat;
height: em(40);
max-height: em(40);
position: relative;
li {
float: left;
display: block;
2014-04-18 00:07:07 +00:00
background-color: $light-blue;
2014-04-13 11:16:51 +00:00
a {
2014-04-18 00:07:07 +00:00
border: $tabs-border-width solid $tabs-border-colour;
border-right: 0;
2014-04-13 11:16:51 +00:00
padding: $tabs-padding-vertical $tabs-padding-horizontal;
float: left;
display: block;
color: white;
}
2014-04-18 00:07:07 +00:00
&:last-child a {
border-right: $tabs-border-width solid $tabs-border-colour;
}
2014-04-13 11:16:51 +00:00
&.activeli {
z-index: 100;
background-color: $blue;
a {
padding-bottom: $tabs-padding-vertical + $tabs-border-width;
border-bottom: 0;
}
}
}
}
.tabbed-contents {
@include span-columns(12);
2014-04-18 00:07:07 +00:00
border: $tabs-border-width solid $tabs-border-colour;
2014-04-13 11:16:51 +00:00
padding: em(20);
}
@for $i from 1 through $grid-columns {
ul.tabs-#{$i} {
li {
@include span-columns($i);
}
}
}
}