Skip to content

Instantly share code, notes, and snippets.

@joecritch
Created September 27, 2012 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joecritch/3796212 to your computer and use it in GitHub Desktop.
Save joecritch/3796212 to your computer and use it in GitHub Desktop.
// Tabs
@mixin round-out-tab($active_class: current, $radius: 8px, $tab_color: $purple, $outer_color: #fff) {
position: relative;
a {
@extend .btn;
}
&.#{$active_class} {
&:before,
&:after {
background: $tab_color;
z-index: 1; // Below
content: "";
position: absolute;
bottom: 0;
width: $radius;
height: $radius;
}
&:before {
left: -$radius;
}
&:after {
right: -$radius;
}
a {
padding-bottom: $struc;
border-radius: $radius $radius 0 0;
&:before, &:after {
background: $outer_color;
z-index: 2; // Above
width: $radius * 2;
height: $radius * 2;
border-radius: $radius;
content: "";
position: absolute;
bottom: 0;
}
&:before {
left: - $radius * 2;
}
&:after {
right: - $radius * 2;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment