datatable.directory codebase https://datatable.directory/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
datatable.directory/resources/assets/sass/_block-collapse.scss

38 lines
552 B

.block-collapse {
overflow: hidden;
text-overflow: ellipsis;
position: relative;
&::before,
&::after {
position: absolute;
right: 0;
bottom: 0;
text-align: right;
height: 1.7em;
line-height: 1.7em;
cursor: pointer;
}
&::after{
content: '';
width: 70%;
background: linear-gradient(to right, rgba(255, 255, 255, 0), white 90%);
}
&::before {
content: '';
z-index: 10;
color: $gray-500;
}
&.reveal {
max-height: unset !important; // override inline styles
&::before, &::after {
display: none;
}
}
}