1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-26 19:51:33 +01:00
site/_src/_assets/styles/bigchain/_tables.scss

92 lines
1.5 KiB
SCSS
Raw Normal View History

2016-02-09 12:15:41 +01:00
//
// Base class
//
.table {
border-spacing: 0;
border-collapse: collapse;
2016-02-09 12:15:41 +01:00
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;
}
2017-05-31 00:22:14 +02:00
2016-02-09 12:15:41 +01:00
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
}