2018-10-19 15:17:02 +00:00
|
|
|
/* TODO: rename: %details-table */
|
|
|
|
%tabular-details tr > .actions {
|
|
|
|
@extend %table-actions;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
%tabular-details td:only-child > div {
|
|
|
|
@extend %tabular-detail;
|
|
|
|
}
|
|
|
|
%tabular-details-toggle-button {
|
|
|
|
@extend %toggle-button;
|
|
|
|
pointer-events: auto;
|
|
|
|
position: absolute;
|
2019-05-01 18:09:29 +00:00
|
|
|
top: 8px;
|
2018-10-19 15:17:02 +00:00
|
|
|
}
|
|
|
|
%tabular-details td > label {
|
|
|
|
@extend %tabular-details-toggle-button;
|
2019-05-01 18:09:29 +00:00
|
|
|
right: 2px;
|
|
|
|
}
|
|
|
|
%tabular-details tr:nth-child(even) td {
|
|
|
|
height: auto;
|
|
|
|
position: relative;
|
|
|
|
display: table-cell;
|
2018-10-19 15:17:02 +00:00
|
|
|
}
|
|
|
|
%tabular-details tr:nth-child(even) td > * {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
%tabular-detail > label {
|
|
|
|
@extend %tabular-details-toggle-button;
|
2019-05-01 18:09:29 +00:00
|
|
|
right: 11px;
|
2018-10-19 15:17:02 +00:00
|
|
|
}
|
|
|
|
%tabular-details tr:nth-child(even) td > input:checked + * {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
%tabular-details td:only-child {
|
|
|
|
overflow: visible;
|
2019-05-01 18:09:29 +00:00
|
|
|
width: 100%;
|
2018-10-19 15:17:02 +00:00
|
|
|
}
|
2019-05-01 18:09:29 +00:00
|
|
|
|
|
|
|
// detail
|
2018-10-19 15:17:02 +00:00
|
|
|
%tabular-detail {
|
|
|
|
position: relative;
|
|
|
|
left: -10px;
|
|
|
|
right: -10px;
|
|
|
|
width: calc(100% + 20px);
|
2019-05-01 18:09:29 +00:00
|
|
|
margin-top: -51px;
|
2018-10-19 15:17:02 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
%tabular-detail {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
2019-05-01 18:09:29 +00:00
|
|
|
%tabular-detail::after {
|
2018-10-19 15:17:02 +00:00
|
|
|
content: '';
|
|
|
|
display: block;
|
2019-05-01 18:09:29 +00:00
|
|
|
clear: both;
|
2018-10-19 15:17:02 +00:00
|
|
|
}
|
|
|
|
%tabular-detail > div {
|
|
|
|
pointer-events: auto;
|
|
|
|
margin-top: 36px;
|
|
|
|
}
|