Skip to content

Instantly share code, notes, and snippets.

@rdj
Created July 1, 2011 22:11
Show Gist options
  • Select an option

  • Save rdj/1059513 to your computer and use it in GitHub Desktop.

Select an option

Save rdj/1059513 to your computer and use it in GitHub Desktop.
// app/assets/stylesheets/active_admin.css.scss.erb
// Don't forget to add the .erb extension (active_admin:install doesn't)
// Active Admin CSS Styles
@import "active_admin/mixins";
@import "active_admin/base";
// To customize the Active Admin interfaces, add your
// styles here:
table {
th {
&.sortable a {
background-image: url( <%= image_path( 'active_admin/orderable.png' ) %>);
}
}
}
#header {
ul#tabs {
& > li {
&.has_nested > a {
background-image: url( <%= image_path( 'active_admin/nested_menu_arrow.gif' ) %> );
}
&.has_nested.current > a {
background-image: url( <%= image_path( 'active_admin/nested_menu_arrow_dark.gif' ) %> );
}
&.has_nested:hover > a {
background-image: url( <%= image_path( 'active_admin/nested_menu_arrow_dark.gif' ) %> );
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment