#88 Extra biotope codes templates
* extends the detail view templates for all compensation related models to render extra CompensationState details as well * reduces number of landing page news from 4 to 3 * improves .card-text in favor of .scroll-150 * improves .card font size
This commit is contained in:
@@ -121,18 +121,12 @@ a {
|
||||
|
||||
.card{
|
||||
margin: 0 0.5rem 0.5rem 0;
|
||||
font-size: 12px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.card:hover{
|
||||
box-shadow: 1px 1px 3px var(--rlp-gray-light);
|
||||
}
|
||||
|
||||
.card .card-text{
|
||||
font-size: 12px;
|
||||
max-height: 150px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.qs-box{
|
||||
background-color: var(--rlp-red);
|
||||
color: white;
|
||||
@@ -215,6 +209,11 @@ Overwrites bootstrap .btn:focus box shadow color
|
||||
color: var(--rlp-red);
|
||||
}
|
||||
|
||||
.scroll-150{
|
||||
max-height: 150px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.scroll-300{
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="card-text font-italic">
|
||||
<div class="scroll-150 font-italic">
|
||||
{{obj.comment}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -60,7 +60,7 @@ def home_view(request: HttpRequest):
|
||||
unpublish_on__gte=now,
|
||||
).order_by(
|
||||
"-publish_on"
|
||||
)[:4]
|
||||
)[:3]
|
||||
|
||||
# First fetch all valid objects (undeleted, only newest versions)
|
||||
interventions = Intervention.objects.filter(
|
||||
|
||||
Reference in New Issue
Block a user