ensl.org/app/assets/stylesheets/components/_tables.scss
Luke Barratt b883b3de6c Improved forums layout
Made profile avatar proportional
Added header to sidebar widgets
Added bbcode colour support
2014-05-02 17:43:23 +01:00

53 lines
783 B
SCSS

/*
Generic Tables
*/
table {
border-collapse: collapse;
margin: ($base-line-height / 2) 0;
table-layout: fixed;
width: 100%;
}
th {
border-bottom: 1px solid darken($base-border-color, 15%);
font-weight: bold;
padding: 0.5em 0;
text-align: left;
}
td {
border-bottom: 1px solid $base-border-color;
padding: 0.5em 0;
}
tr, td, th {
vertical-align: middle;
}
/*
Striped Tables
*/
table.striped > tbody,
table.striped > thead {
> tr {
td:first-child,
th:first-child {
padding-left: ($base-line-height / 2);
}
td:last-child,
th:last-child {
padding-right: ($base-line-height / 2);
}
}
> tr:nth-child(2n) td {
background-color: transparentize($light-blue, 0.9);
}
.actions {
text-align: right;
}
}