mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
83394: Make grid view thumbnail CSS more specific
This commit is contained in:
@@ -1,18 +1,19 @@
|
|||||||
:host ::ng-deep {
|
:host ::ng-deep {
|
||||||
--ds-wrapper-grid-spacing: calc(var(--bs-spacer) / 2);
|
--ds-wrapper-grid-spacing: calc(var(--bs-spacer) / 2);
|
||||||
|
|
||||||
div.thumbnail > .thumbnail-content {
|
|
||||||
height: var(--ds-card-thumbnail-height);
|
|
||||||
width: 100%;
|
|
||||||
display: block;
|
|
||||||
min-width: 100%;
|
|
||||||
min-height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
object-position: 50% 15%;
|
|
||||||
}
|
|
||||||
div.card {
|
div.card {
|
||||||
margin-top: var(--ds-wrapper-grid-spacing);
|
margin-top: var(--ds-wrapper-grid-spacing);
|
||||||
margin-bottom: var(--ds-wrapper-grid-spacing);
|
margin-bottom: var(--ds-wrapper-grid-spacing);
|
||||||
|
|
||||||
|
div.thumbnail > .thumbnail-content {
|
||||||
|
height: var(--ds-card-thumbnail-height);
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
min-width: 100%;
|
||||||
|
min-height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
object-position: 50% 15%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,4 +27,3 @@
|
|||||||
padding-right: var(--ds-wrapper-grid-spacing);
|
padding-right: var(--ds-wrapper-grid-spacing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user