mirror of https://github.com/hashicorp/consul
70 lines
1.4 KiB
SCSS
70 lines
1.4 KiB
SCSS
|
/* TODO: rename: %details-table */
|
||
|
%tabular-details {
|
||
|
width: 100%;
|
||
|
table-layout: fixed;
|
||
|
}
|
||
|
%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;
|
||
|
}
|
||
|
%tabular-details td > label {
|
||
|
@extend %tabular-details-toggle-button;
|
||
|
/*TODO: This needs to be figured out with %toggle-button/%action-group */
|
||
|
top: 8px;
|
||
|
right: 15px;
|
||
|
}
|
||
|
%tabular-details tr:nth-child(even) td > * {
|
||
|
display: none;
|
||
|
}
|
||
|
%tabular-details tr:nth-child(odd) td {
|
||
|
width: calc(50% - 30px);
|
||
|
}
|
||
|
%tabular-details tr:nth-child(odd) td:last-child {
|
||
|
width: 60px;
|
||
|
}
|
||
|
%tabular-detail > label {
|
||
|
@extend %tabular-details-toggle-button;
|
||
|
top: 8px;
|
||
|
right: 24px;
|
||
|
}
|
||
|
%tabular-details tr:nth-child(even) td > input:checked + * {
|
||
|
display: block;
|
||
|
}
|
||
|
%tabular-details td:only-child {
|
||
|
overflow: visible;
|
||
|
position: relative;
|
||
|
}
|
||
|
%tabular-detail {
|
||
|
position: relative;
|
||
|
left: -10px;
|
||
|
right: -10px;
|
||
|
width: calc(100% + 20px);
|
||
|
margin-top: -48px;
|
||
|
pointer-events: none;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
%tabular-detail {
|
||
|
padding: 10px;
|
||
|
}
|
||
|
%tabular-detail::before {
|
||
|
content: '';
|
||
|
display: block;
|
||
|
height: 1px;
|
||
|
position: absolute;
|
||
|
top: -2px;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
}
|
||
|
%tabular-detail > div {
|
||
|
pointer-events: auto;
|
||
|
margin-top: 36px;
|
||
|
}
|