ensl.org/app/assets/stylesheets/components/_tabs.scss
Luke Barratt 6f56bf81fd Removed fixed topbar
Improved layout
Improved form styling
Fixes issues with firefox
Added menu icons
2014-04-19 02:12:02 +01:00

66 lines
1.3 KiB
SCSS

/*
Tabs
*/
.tabbed {
$tabs-border-width: em(1);
$tabs-border-colour: darken($light-gray, 10);
$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;
background-color: $blue;
a {
border: $tabs-border-width solid $tabs-border-colour;
border-right: 0;
padding: $tabs-padding-vertical $tabs-padding-horizontal;
float: left;
display: block;
color: white;
&:hover {
cursor: pointer;
}
}
&:last-child a {
border-right: $tabs-border-width solid $tabs-border-colour;
}
&.activeli {
z-index: 100;
background-color: $light-blue;
a {
padding-bottom: $tabs-padding-vertical + $tabs-border-width;
border-bottom: 0;
}
}
}
}
.tabbed-contents {
@include span-columns(12);
border: $tabs-border-width solid $tabs-border-colour;
padding: em(20);
}
@for $i from 1 through $grid-columns {
ul.tabs-#{$i} {
li {
@include span-columns($i);
}
}
}
}