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

73 lines
1.4 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: 1px;
$tabs-border-colour: lighten($light-blue, 40%);
$tabs-padding-horizontal: 16px;
$tabs-height: 35px;
2014-04-13 11:16:51 +00:00
ul.tabs {
@include span-columns(12);
display: block;
font-family: $montserrat;
height: $tabs-height;
max-height: $tabs-height;
2014-04-13 11:16:51 +00:00
position: relative;
li {
float: left;
display: block;
a {
2014-04-18 00:07:07 +00:00
border: $tabs-border-width solid $tabs-border-colour;
border-right: 0;
padding: 0 $tabs-padding-horizontal;
2014-04-13 11:16:51 +00:00
float: left;
display: block;
color: white;
font-weight: 400;
line-height: $tabs-height;
background-color: $blue;
&:hover {
cursor: pointer;
}
2014-04-13 11:16:51 +00:00
}
&:first-child a {
border-radius: $base-border-radius 0 0 0;
}
2014-04-18 00:07:07 +00:00
&:last-child a {
border-right: $tabs-border-width solid $tabs-border-colour;
border-radius: 0 $base-border-radius 0 0;
2014-04-18 00:07:07 +00:00
}
2014-04-13 11:16:51 +00:00
&.activeli {
z-index: 100;
a {
background-color: $light-blue;
2014-04-13 11:16:51 +00:00
}
}
}
}
.tabbed-contents {
@include span-columns(12);
2014-04-18 00:07:07 +00:00
border: $tabs-border-width solid $tabs-border-colour;
border-radius: 0 $base-border-radius $base-border-radius $base-border-radius;
padding: 20px;
2014-04-13 11:16:51 +00:00
}
@for $i from 1 through $grid-columns {
ul.tabs-#{$i} {
li {
@include span-columns($i);
}
}
}
}