mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 11:03:05 +00:00
fixed a few sorting, rpp and view persistence issues with grid view
This commit is contained in:
@@ -11,14 +11,33 @@ ds-wrapper-grid-element ::ng-deep {
|
||||
}
|
||||
}
|
||||
|
||||
$gutter: ($grid-gutter-width / 2);
|
||||
$min-width: 300px;
|
||||
$max-cols: 3;
|
||||
|
||||
.card-columns {
|
||||
@include media-breakpoint-only(lg) {
|
||||
column-count: 3;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-left: -$gutter;
|
||||
margin-top: -$gutter;
|
||||
|
||||
.card-column {
|
||||
flex: 1 0 $min-width;
|
||||
margin-left: $gutter;
|
||||
margin-top: $gutter;
|
||||
|
||||
@for $i from 2 through $max-cols {
|
||||
$screen-width: ($min-width*$i)+($gutter*$i);
|
||||
$column-width: (100%/$i);
|
||||
@media (min-width: $screen-width) {
|
||||
max-width: calc(#{$column-width} - #{$gutter});
|
||||
}
|
||||
}
|
||||
|
||||
$column-width: (100%/$max-cols);
|
||||
@media (min-width: $min-width*$max-cols) {
|
||||
min-width: calc(#{$column-width} - #{$gutter});
|
||||
}
|
||||
}
|
||||
@include media-breakpoint-only(sm) {
|
||||
column-count: 2;
|
||||
}
|
||||
@include media-breakpoint-only(xs) {
|
||||
column-count: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user