2017-02-24 17:20:52 +00:00
|
|
|
body {
|
|
|
|
font-size: calc(10px + .5vw);
|
|
|
|
}
|
2017-02-24 15:53:08 +00:00
|
|
|
.container-fluid {
|
|
|
|
max-width: 1440px;
|
|
|
|
}
|
2017-02-24 17:03:01 +00:00
|
|
|
h2 {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
2017-02-24 15:53:08 +00:00
|
|
|
th {
|
2017-02-24 17:20:52 +00:00
|
|
|
position: relative;
|
2017-02-24 15:53:08 +00:00
|
|
|
text-transform: capitalize;
|
2017-02-24 17:03:01 +00:00
|
|
|
background: #eef7fd;
|
|
|
|
}
|
|
|
|
.react-bs-table {
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-radius: 2px;
|
|
|
|
margin: 0;
|
2017-02-24 17:20:52 +00:00
|
|
|
&,
|
|
|
|
& table {
|
|
|
|
// We can't do this because, unbelievably, the <th> elements are in a separate table :(
|
|
|
|
//table-layout: auto;
|
|
|
|
}
|
|
|
|
table {
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
// Override some bananas styles
|
|
|
|
// Why did they think nowrap was a smart idea? Fuck mobiles, right?
|
|
|
|
white-space: normal;
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
}
|
2017-02-24 17:03:01 +00:00
|
|
|
}
|
2017-02-24 17:20:52 +00:00
|
|
|
// Realistically, this would bring in bootstrap as a package and use it properly
|
2017-02-24 17:03:01 +00:00
|
|
|
.table {
|
|
|
|
// Cells
|
|
|
|
> thead,
|
|
|
|
> tbody,
|
|
|
|
> tfoot {
|
|
|
|
> tr {
|
|
|
|
> th,
|
|
|
|
> td {
|
2017-02-24 17:20:52 +00:00
|
|
|
padding: 1px calc(0px + 1vw);
|
|
|
|
}
|
|
|
|
> th {
|
|
|
|
padding-right: 20px;
|
2017-02-24 17:03:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-02-24 15:53:08 +00:00
|
|
|
}
|
2017-02-24 17:20:52 +00:00
|
|
|
// Quick solution to the forced table-layout: fixed
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
&:nth-child(1) {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
|
|
width: 22%;
|
|
|
|
}
|
|
|
|
&:nth-child(3) {
|
|
|
|
width: 14%;
|
|
|
|
}
|
|
|
|
&:nth-child(4) {
|
|
|
|
width: 14%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.order {
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
right: 3px;
|
|
|
|
}
|