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

77 lines
1.6 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;
2014-04-29 20:20:02 +00:00
$tabs-border-colour: $light-blue;
$tabs-padding-horizontal: 16px;
$tabs-height: 35px;
2014-04-13 11:16:51 +00:00
ul.tabs {
@include span-columns(12);
display: block;
2014-05-03 01:21:29 +00:00
font-family: $header-font-family;
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-29 20:20:02 +00:00
@include linear-gradient($blue, $dark-blue);
background-color: $blue;
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;
&: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 {
2014-04-29 20:20:02 +00:00
@include linear-gradient($light-blue, $blue);
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;
2014-04-29 20:20:02 +00:00
background: lighten($light-gray, 10%);
box-shadow: $light-shadow;
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);
}
}
}
}