Make sure service cards have consistent height
This commit is contained in:
parent
83a18837ec
commit
f4e8d7dcb7
2 changed files with 21 additions and 3 deletions
|
@ -16,10 +16,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row service-cards-container">
|
||||||
{% for service in services %}
|
{% for service in services %}
|
||||||
<div class="col-6 col-lg-3 col-md-4">
|
<div class="col-6 col-lg-3 col-md-4">
|
||||||
<div class="card">
|
<div class="card h-100 d-flex flex-column">
|
||||||
<div class="card-header d-flex align-items-center">
|
<div class="card-header d-flex align-items-center">
|
||||||
{% if service.logo %}
|
{% if service.logo %}
|
||||||
<img src="{{ service.logo.url }}"
|
<img src="{{ service.logo.url }}"
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
<small class="text-muted">{{ service.category }}</small>
|
<small class="text-muted">{{ service.category }}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body flex-grow-1">
|
||||||
{% if service.description %}<p class="card-text">{{ service.description|urlize }}</p>{% endif %}
|
{% if service.description %}<p class="card-text">{{ service.description|urlize }}</p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
|
|
|
@ -174,3 +174,21 @@ a.btn-keycloak {
|
||||||
margin-top: -16px;
|
margin-top: -16px;
|
||||||
padding-right: 28px;
|
padding-right: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Service cards equal height styling */
|
||||||
|
.service-cards-container .card {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.service-cards-container .card-body {
|
||||||
|
flex-grow: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.service-cards-container .card-footer {
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue