//table component $table-breakpoint: 980px; .rwd-table { margin: 1em 0; min-width: 300px; // adjust to your needs font-size: 16px; width: 100%; tr { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; } th { display: none; // for accessibility, use a visually hidden method here instead! Thanks, reddit! } th{ .sort{ width: 15px; cursor: pointer; } .asc{ @include transform( scale(0.9) rotate(180deg) ) } } td { display: block; &:first-child { padding-top: .5em; } &:last-child { padding-bottom: .5em; } &:before { content: attr(data-th)": "; font-weight: bold; // optional stuff to make it look nicer width: 6.5em; // magic number :( adjust according to your own content display: inline-block; // end options @media (min-width: $table-breakpoint) { display: none; } } } th, td { text-align: left; @media (min-width: $table-breakpoint) { display: table-cell; padding: .25em .5em; &:first-child { padding-left: 0; } &:last-child { padding-right: 0; } } } } .rwd-table { background: rgba(233, 233, 233, 0.77);; table-layout: auto; color: #295158; overflow: hidden; tr > td:first-child { cursor: pointer; } tbody tr.selected{ background-color: $medium_blue; color: white; a{ color: white; } } th, td { margin: .5em 1em; @media (min-width: $table-breakpoint) { padding: 10px!important; } } thead tr:first-child{ background: #2399C7; @include font-attr(18px, whitesmoke, bolder); } thead tr{ th{ min-width: 135px; vertical-align: center; } th:first-child{ min-width: 60px; } } } //tooltip // .ui-tooltip{ // max-height: 250px; // max-width: 200px; // overflow: hidden; // img{ // height: 100%; // max-height: 100%; // max-width: 100%; // } // }