dumi
Version:
📖 Documentation Generator of React Component
62 lines (53 loc) • 1.14 kB
text/less
@import (reference) '../../styles/variables.less';
.@{prefix}-table {
margin: 24px 0 32px;
transform: translate(0, 0);
&-content {
overflow: auto;
&::before,
&::after {
content: '';
display: block;
position: fixed;
z-index: 1;
top: 0;
bottom: 0;
width: 6px;
pointer-events: none;
}
&[data-left-folded]::before {
left: 0;
background-image: linear-gradient(
to right,
rgba(0, 0, 0, 10%),
rgba(0, 0, 0, 0%)
);
@{dark-selector} & {
background-image: linear-gradient(
to right,
rgba(0, 0, 0, 50%),
rgba(0, 0, 0, 0%)
);
}
}
&[data-right-folded]::after {
right: 0;
background-image: linear-gradient(
to left,
rgba(0, 0, 0, 10%),
rgba(0, 0, 0, 0%)
);
@{dark-selector} & {
background-image: linear-gradient(
to left,
rgba(0, 0, 0, 50%),
rgba(0, 0, 0, 0%)
);
}
}
> table > thead > tr > th,
> table > tr > th {
white-space: nowrap;
}
}
}