// // Table wrapper default style // Use as @extend on div wrapping the table // %table-wrapper { @include border-radius(5px); border: 1px solid gray(224); overflow: hidden; margin: 0 0 1em 0; } // // Table default styles // #active_admin_content table { background-color: $blue; border-collapse: collapse; margin: 0; width: 100%; thead th { border: none; a { color: rgba(255,255,255,.5); font-weight: bold; } &[class*="sorted"] a { color: white; } } // Rows tbody tr { @include transition( background-color 300ms ); &:nth-child(odd) { background-color: white; } &:nth-child(even) { background-color: gray(250); } &.selected { background-color: $yellow; } &:last-child { > td { border: none; } } &:hover { & > td > .member_link { @include opacity(1); } } } // Columns th, td { border-bottom: 1px solid gray(224); line-height: 16px; padding: 13px 15px 12px 15px; &.subtree { padding: 0 0 0 21px; } &.selectable { width: 25px; } &.id { width: 50px; } &:last-child { //width: 75px; } } a { color: black; text-decoration: none; &.member_link { @include opacity(0); @include transition(opacity 300ms); display: inline-block; // Will be shown on height: 16px; margin: 0 3px; text-indent: -9999px; width: 16px; } &.new_link { @include icon('add'); } &.view_link { @include icon('eye'); } &.edit_link { @include icon('page_white_edit'); } &.delete_link { @include icon('delete'); } } .dropdown_menu { display: inline-block; height: 16px; margin: 0 3px; width: 16px; .dropdown_menu_button { background-color: transparent; background-position: 0 0; display: inline-block; height: 16px; padding: 0 !important; text-indent: -9999px; width: 16px; @include icon('add'); &:after { display: none; } &:before { display: none; } } } // table.subtree &.subtree { border-left: 1px solid gray(224); margin: 0; } &.index_table { td { &:last-child { width: 75px; } } } } #active_admin_content .attributes_table table { th { width: 25%; } }