ensl.org/app/assets/stylesheets/components/_tables.scss
Luke Barratt ac0b47eca9 Improved styling for contests and referee admin pages
Fixes deleting maps form contests
2014-04-25 23:15:15 +01:00

44 lines
695 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;
}
table.striped > tbody {
> 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);
}
}