1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-12-24 02:16:10 +01:00
site/_src/_assets/styles/bigchain/_tables.scss

89 lines
1.5 KiB
SCSS
Raw Normal View History

2016-02-09 12:15:41 +01:00
//
// Base class
//
.table {
width: 100%;
max-width: 100%;
margin-top: $spacer;
margin-bottom: $spacer;
// reset body word-break
// so responsive tables can work
word-break: normal;
2016-02-09 12:15:41 +01:00
th,
td {
padding: $table-cell-padding;
vertical-align: top;
border-top: $table-border-width solid $table-border-color;
}
thead th {
color: $brand-main-blue-light;
font-weight: $font-weight-base;
vertical-align: bottom;
border-bottom: (2 * $table-border-width) solid $table-border-color;
}
tbody + tbody {
border-top: (2 * $table-border-width) solid $table-border-color;
}
.table {
background-color: $body-bg;
}
}
//
// Condensed table w/ half padding
//
.table-sm {
th,
td {
padding: $table-sm-cell-padding;
}
}
//
// Bordered version
//
.table-bordered {
border: $table-border-width solid $table-border-color;
th,
td {
border: $table-border-width solid $table-border-color;
}
thead {
th,
td {
border-bottom-width: (2 * $table-border-width);
}
}
}
//
// Zebra-striping
//
.table-striped {
tbody tr:nth-of-type(odd) {
background-color: $table-bg-accent;
}
}
// Responsive tables
//
// Wrap your tables in `.table-responsive`
.table-responsive {
display: block;
width: 100%;
min-height: .01%;
2016-02-09 12:15:41 +01:00
overflow-x: auto;
-webkit-overflow-scrolling: touch;
2016-02-09 12:15:41 +01:00
}