Created
June 6, 2013 13:11
-
-
Save vindia/5721380 to your computer and use it in GitHub Desktop.
Minimalist (Github-like) tabs using Haml and Sass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%ul.tabs | |
%li | |
%a.active{ href: '#'} Tab 1 | |
%li | |
%a{ href: '#'} Tab 2 | |
%li | |
%a{ href: '#'} Tab 3 | |
%li | |
%a{ href: '#'} Tab 4 | |
%li | |
%a{ href: '#'} Tab 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tabs | |
list-style: none | |
border-bottom: 1px solid #ddd | |
padding: 0 | |
margin: 0 0 1em 0 | |
li | |
display: inline-block | |
margin-bottom: -1px | |
&:first-child | |
margin-left: 0 | |
a | |
display: block | |
padding: 8px 12px | |
text-align: center | |
font-size: 14px | |
color: #666 | |
text-decoration: none | |
.active | |
border: 1px solid #ddd | |
border-bottom-color: #fff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment