Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Forked from anonymous/gist:95961
Created April 15, 2009 19:20
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 chriseppstein/95971 to your computer and use it in GitHub Desktop.
Save chriseppstein/95971 to your computer and use it in GitHub Desktop.
@import compass/utilities/general/inline_block.sass
.my-nav
.tabs
li
:border none
.tab_l, .tab_t, .tab_r
+inline-block
:background-repeat no-repeat
:height 35px
:color red
.tab_l, .tab_r
:color transparent
.tab_l
:background-position top left
:background-image url('/images/redesign/my/default-button-left-corner.gif')
.tab_t
:background-position top center
:background-image url('/images/redesign/my/green-default-button-stretch.gif')
:background-repeat repeat-x
:text-align center
a
:margin-top 7px
.tab_r
:background-position top right
:background-image url('/images/redesign/my/default-button-right-corner.gif')
%li{:class => "#{my_tab.css.join ' ' unless my_tab.css.empty?}"}
%span.tab_l<> &nbsp;&nbsp;
%span.tab_t<>= link_to my_tab.title, my_tab.url
%span.tab_r<> &nbsp;&nbsp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment