Skip to content
Snippets Groups Projects
Commit 6c8c7bfe authored by Ken Hawkins's avatar Ken Hawkins
Browse files

tweak: vf-summary--has-image

Not all image lists have an image every time.

Related to https://gitlab.ebi.ac.uk/emblorg/backlog/issues/147#note_37404
parent 0ee2191e
No related branches found
No related tags found
No related merge requests found
Pipeline #17628 passed with stage
in 1 minute and 43 seconds
......@@ -11,3 +11,15 @@
A database describing biological samples and providing links to associated experimental data.
</p>
</article>
<article class="vf-summary vf-summary--has-image">
<!-- for cases when there is no image -->
<h3 class="vf-summary__title">
<a href="//www.ebi.ac.uk/biosamples/" class="vf-summary__link">
Imageless sample
</a>
</h3>
<p class="vf-summary__text">
Not all lists with images have an image for every item.
</p>
</article>
.vf-summary--has-image {
grid-column-gap: 18px;
grid-template-columns: minmax(0, auto) 1fr;
grid-template-columns: minmax($vf-summary--has-image-width, auto) 1fr;
grid-template-rows: auto;
@include margin--block(bottom, 48px);
......@@ -12,7 +12,7 @@
}
.vf-summary__image--thumbnail {
width: 50px;
width: $vf-summary--has-image-width;
}
.vf-summary__title {
......
......@@ -53,3 +53,5 @@ $vf-summary--article__date-margin-right: .75rem;
$vf-summary--news__category-margin-right: 1rem;
$vf-summary--has-image-width: 50px;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment