Skip to content
Snippets Groups Projects
Commit 14409f80 authored by Uwe Jandt (DESY, HIFIS)'s avatar Uwe Jandt (DESY, HIFIS)
Browse files

Merge branch 'spotlights_list_image_spacing' into 'master'

Improve layout of Spotlights list

See merge request !355
parents 5632856d 5874cacd
No related branches found
No related tags found
1 merge request!355Improve layout of Spotlights list
{% include top.html %} {% include top.html %}
<body> <body>
<link rel="stylesheet" href="{{ '/assets/css/spotlights.css' | relative_url }}">
{% include header.html %} {% include header.html %}
...@@ -11,22 +12,23 @@ ...@@ -11,22 +12,23 @@
{% assign spotlights = site.spotlights %} {% assign spotlights = site.spotlights %}
<div class="alert alert-success"> <article class="salert alert-success">
This is a preliminary list of software spotlights and more will be added soon. Stay tuned! This is a preliminary list of software spotlights and more will be added soon. Stay tuned!
</div> </article>
{% for spotlight in spotlights %} {% for spotlight in spotlights %}
<article class="list-entry"> <article class="list-entry">
<div class="image-block"> <div class="spotlight-image-block">
<a href="{{ spotlight.url | relative_url}}"> <div class= "image-container">
<img <a href="{{ spotlight.url | relative_url}}">
class="help-image left" <img
alt="Logo of {{ spotlight.name }}" class="help-image left"
src="{{ site.directory.images | relative_url }}spotlights/{{spotlight.preview_image}}" alt="Logo of {{ spotlight.name }}"
style="max-height:7rem;" src="{{ site.directory.images | relative_url }}spotlights/{{spotlight.preview_image}}"
/> />
</a> </a>
<div> </div>
<div class="teaser">
<h3> <h3>
<a href="{{ spotlight.url | relative_url }}"> <a href="{{ spotlight.url | relative_url }}">
{{ spotlight.name }} {{ spotlight.name }}
......
...@@ -3,6 +3,39 @@ ...@@ -3,6 +3,39 @@
@import "boilerplate/breakpoints"; @import "boilerplate/breakpoints";
.spotlight-image-block {
display: flex;
padding: 1rem 0;
align-items: center;
.image-container {
flex: 1 0 0;
display: flex;
justify-content: center;
padding-right: 1.0rem;
}
.teaser {
flex: 2 0 0;
}
.help-image {
max-width: 14rem; // needed for Chrome on large screens
max-height: 7rem;
min-height: 5rem; // needed for Firefox on small screens
&.right {
@include medium-is-tablet-plus {
order: 1
}
}
}
@include medium-is-phone {
flex-direction: column;
}
}
.spotlight-info { .spotlight-info {
zoom: 90%; zoom: 90%;
display: inline-table; display: inline-table;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment