2022-02-05 00:40:03 +00:00
|
|
|
@use 'sass:math';
|
2021-11-05 21:35:01 +00:00
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
.table {
|
|
|
|
color: $text;
|
|
|
|
border-radius: $radius;
|
|
|
|
border: 1px solid $grey-blue;
|
|
|
|
border-collapse: separate;
|
2017-12-19 23:44:47 +00:00
|
|
|
width: 100%;
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2022-11-15 19:13:57 +00:00
|
|
|
@media #{$mq-table-overflow} {
|
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
&.is-fixed {
|
|
|
|
table-layout: fixed;
|
|
|
|
|
|
|
|
td {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-16 19:13:33 +00:00
|
|
|
&.is-isolated {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
&.with-foot {
|
|
|
|
margin-bottom: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
|
|
+ .table-foot {
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-compact {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 0.75em;
|
|
|
|
}
|
2019-07-23 20:37:34 +00:00
|
|
|
|
|
|
|
.is-selectable a {
|
|
|
|
padding: 0.75em;
|
|
|
|
}
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|
|
|
|
|
2022-09-16 19:58:22 +00:00
|
|
|
&.with-collapsed-borders {
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
&.is-darkened {
|
|
|
|
tbody tr:not(.is-selected) {
|
|
|
|
background-color: $white-bis;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $white-ter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-striped {
|
|
|
|
tbody tr:not(.is-selected) {
|
|
|
|
&:nth-child(even) {
|
|
|
|
background-color: $white-ter;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: darken($white-ter, 5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 0.75em 1.5em;
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
&.is-three-quarters {
|
|
|
|
width: 75%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-two-thirds {
|
|
|
|
width: 66.66%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-half {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-one-third {
|
|
|
|
width: 33.33%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-one-quarter {
|
|
|
|
width: 25%;
|
|
|
|
}
|
|
|
|
|
2018-05-02 18:18:02 +00:00
|
|
|
&.is-truncatable {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-narrow {
|
|
|
|
padding: 1.25em 0 1.25em 0.5em;
|
2018-05-10 23:28:18 +00:00
|
|
|
|
|
|
|
& + th,
|
|
|
|
& + td {
|
|
|
|
padding-left: 0.5em;
|
|
|
|
}
|
2018-05-02 18:18:02 +00:00
|
|
|
}
|
|
|
|
|
2022-02-05 00:40:03 +00:00
|
|
|
&.is-long-text {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
// Only use px modifiers when text needs to be truncated.
|
|
|
|
// In this and only this scenario are percentages not effective.
|
|
|
|
&.is-200px {
|
|
|
|
width: 200px;
|
|
|
|
max-width: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@for $i from 1 through 11 {
|
|
|
|
&.is-#{$i} {
|
2021-11-05 21:35:01 +00:00
|
|
|
width: math.div(100%, 12) * $i;
|
|
|
|
max-width: math.div(100%, 12) * $i;
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $blue;
|
|
|
|
text-decoration: underline;
|
|
|
|
font-weight: $weight-normal;
|
|
|
|
|
|
|
|
&.is-primary {
|
|
|
|
color: $text;
|
|
|
|
text-decoration: none;
|
|
|
|
font-weight: $weight-semibold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
thead {
|
|
|
|
background: $white-ter;
|
|
|
|
border: 1px solid $grey-blue;
|
|
|
|
|
|
|
|
tr {
|
|
|
|
&:hover {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
color: $grey-light;
|
|
|
|
font-weight: $weight-normal;
|
|
|
|
vertical-align: bottom;
|
|
|
|
border-bottom: 1px solid $grey-blue;
|
|
|
|
|
|
|
|
&.is-selectable {
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
padding: 0.75em 1.5em;
|
|
|
|
width: 100%;
|
|
|
|
text-decoration: none;
|
2019-07-23 20:37:34 +00:00
|
|
|
position: relative;
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: darken($white-ter, 5%);
|
|
|
|
}
|
2019-07-23 20:37:34 +00:00
|
|
|
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
color: $grey-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
transform: translateX(6px);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
transform: translateX(-20px);
|
|
|
|
}
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active {
|
2019-07-23 20:37:34 +00:00
|
|
|
&.desc a::after {
|
|
|
|
content: '⬆';
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|
|
|
|
|
2019-07-23 20:37:34 +00:00
|
|
|
&.asc a::after {
|
2018-01-11 19:37:54 +00:00
|
|
|
content: '⬇';
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|
|
|
|
|
2019-07-23 20:37:34 +00:00
|
|
|
&.has-text-right {
|
|
|
|
a::after {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.desc a::before {
|
|
|
|
content: '⬆';
|
|
|
|
}
|
|
|
|
|
|
|
|
&.asc a::before {
|
|
|
|
content: '⬇';
|
|
|
|
}
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $grey;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
tr {
|
|
|
|
&.is-interactive {
|
|
|
|
cursor: pointer;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active {
|
|
|
|
background: rgba($blue, 0.1);
|
|
|
|
|
|
|
|
td:first-child {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
2018-01-11 19:37:54 +00:00
|
|
|
content: '';
|
2017-09-19 14:47:10 +00:00
|
|
|
width: 3px;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: -1px;
|
|
|
|
display: block;
|
|
|
|
background: $blue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
td.is-subheading {
|
|
|
|
font-weight: $weight-bold;
|
|
|
|
background: $white;
|
|
|
|
color: $blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
border: 1px solid $grey-blue;
|
|
|
|
border-width: 0 0 1px;
|
|
|
|
padding: 1.25em 1.5em;
|
2018-03-28 21:51:54 +00:00
|
|
|
|
|
|
|
&.is-one-line {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-faded {
|
|
|
|
color: $grey-light;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.table tfoot,
|
|
|
|
.table-foot {
|
|
|
|
margin-top: -1px;
|
|
|
|
background: $white-ter;
|
|
|
|
border: 1px solid $grey-blue;
|
|
|
|
border-bottom-right-radius: $radius;
|
|
|
|
border-bottom-left-radius: $radius;
|
|
|
|
overflow: hidden;
|
2020-03-31 04:14:44 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2021-12-23 17:23:18 +00:00
|
|
|
&.with-padding {
|
|
|
|
padding: 6px;
|
|
|
|
}
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
.pagination {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2020-03-31 04:14:44 +00:00
|
|
|
|
2020-04-02 20:41:41 +00:00
|
|
|
// Field overrides specifically for use of Field within a table foot.
|
|
|
|
// Bulma does a lot of typically helpful layout tweaks at different
|
|
|
|
// breakpoints that are undesirable in this context.
|
2020-03-31 04:14:44 +00:00
|
|
|
.field {
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 1.5em;
|
|
|
|
}
|
|
|
|
|
2020-04-02 20:41:41 +00:00
|
|
|
&.is-horizontal {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2020-03-31 04:14:44 +00:00
|
|
|
.label,
|
|
|
|
.field-label {
|
|
|
|
color: $grey;
|
2020-04-02 20:41:41 +00:00
|
|
|
flex-basis: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
&.is-small {
|
|
|
|
font-size: $size-7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.field-body {
|
|
|
|
display: flex;
|
|
|
|
flex-basis: 0;
|
|
|
|
flex-grow: 5;
|
|
|
|
flex-shrink: 1;
|
2020-03-31 04:14:44 +00:00
|
|
|
}
|
|
|
|
}
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|