Merge branch 'refactor/taglist-compact-rows' into dev
Build and Deploy (dev) / build (push) Successful in 6m38s
Build and Deploy (dev) / build (push) Successful in 6m38s
# Conflicts: # resources/views/newslist.blade.php
This commit is contained in:
commit
5c3fcf590b
4 files changed
+37
-65
No files matched your search
Vendored
+13
-4
@@ -1264,6 +1264,19 @@ div.pp_default .pp_close:hover {
|
|||||||
}
|
}
|
||||||
.blog .post > .row {
|
.blog .post > .row {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
}
|
||||||
|
.blog .post > .row > .col-4 {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
width: auto;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
.blog .post > .row > .col-8 {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
width: auto;
|
||||||
|
min-width: 0;
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: calc(var(--bs-gutter-x) * 0.5);
|
||||||
}
|
}
|
||||||
.blog .post img {
|
.blog .post img {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -1712,10 +1725,6 @@ h2.box_header span {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.news .blog .post {
|
|
||||||
height: 115px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bread_crumb {
|
.bread_crumb {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
+18
@@ -10,6 +10,24 @@
|
|||||||
// hoogte volgt de inhoud (titel + datum), zodat er geen lege ruimte onder korte berichten ontstaat
|
// hoogte volgt de inhoud (titel + datum), zodat er geen lege ruimte onder korte berichten ontstaat
|
||||||
> .row {
|
> .row {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
|
||||||
|
// Image column exactly as wide as the image, the text right next to it
|
||||||
|
// (was a third of the row, which left a large gap on wide lists)
|
||||||
|
> .col-4 {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
width: auto;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .col-8 {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
width: auto;
|
||||||
|
min-width: 0;
|
||||||
|
padding-left: 12px;
|
||||||
|
// Cancels the row's negative margin, so long titles stay inside the list
|
||||||
|
padding-right: calc(var(--bs-gutter-x) * 0.5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|||||||
+2
-5
@@ -1,7 +1,4 @@
|
|||||||
@use "../components/news_post";
|
@use "../components/news_post";
|
||||||
|
|
||||||
.news {
|
// News list rows (/nieuws and tag pages) follow their content, like the other
|
||||||
.blog .post {
|
// lists; they used to have a fixed height of 115px
|
||||||
height: 115px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -10,7 +10,8 @@
|
|||||||
news_post post_container
|
news_post post_container
|
||||||
@endsection
|
@endsection
|
||||||
@section('page_container_class')
|
@section('page_container_class')
|
||||||
grey_background
|
{{-- 'news': same list rows as on /nieuws --}}
|
||||||
|
grey_background news
|
||||||
@endsection
|
@endsection
|
||||||
@section('site_container_class')
|
@section('site_container_class')
|
||||||
grey_background
|
grey_background
|
||||||
@@ -30,62 +31,9 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="post_body">
|
<div class="post_body">
|
||||||
{{-- Nieuws komt met 15 berichten per pagina. Deel op in 3 x 2-breed + 3 x 3-breed --}}
|
{{-- All articles as compact rows, the same as on /nieuws and the homepage lists --}}
|
||||||
@foreach(array_slice($news, 0, 6) as $item)
|
|
||||||
@if($loop->index % 2 == 0)
|
|
||||||
<div class="row">
|
|
||||||
@endif
|
|
||||||
<div class="column column_1_2">
|
|
||||||
<ul class="blog">
|
|
||||||
<li class="post auto_height">
|
|
||||||
<a href="{{url($item->url)}}" title="{{$item->title}}">
|
|
||||||
@if($item->video)
|
|
||||||
<span class="icon video"></span>
|
|
||||||
@elseif($item->images && count($item->images) > 1)
|
|
||||||
<span class="icon gallery"></span>
|
|
||||||
@endif
|
|
||||||
<img src='{{$item->images && count($item->images) ? $imgBase . $item->images[0]->url : '/images/noimage.svg'}}'
|
|
||||||
alt='img'>
|
|
||||||
</a>
|
|
||||||
@if($item->tags)
|
|
||||||
<ul class="post_tags">
|
|
||||||
@include('partial/tag_list', ['tags' => $item->tags])
|
|
||||||
</ul>
|
|
||||||
@endif
|
|
||||||
<h2 class="post_title"><a href="{{url($item->url)}}"
|
|
||||||
title="{{strip_tags($item->title)}}">{!!$item->title!!}</a>
|
|
||||||
</h2>
|
|
||||||
<ul class="post_details clearfix">
|
|
||||||
@if($item->edited && ($item->edited != $item->published))
|
|
||||||
<li class="date edited">
|
|
||||||
<i class="fa-regular fa-clock"></i>
|
|
||||||
Bijgewerkt:
|
|
||||||
@if($item->edited->format('d m') != $item->published->format('d m'))
|
|
||||||
{{Formatter::relativeDate($item->edited)}} om
|
|
||||||
@endif
|
|
||||||
{{$item->edited->format('H:i')}} uur
|
|
||||||
</li>
|
|
||||||
@else
|
|
||||||
<li class="date">
|
|
||||||
<i class="fa-regular fa-clock"></i>
|
|
||||||
{{Formatter::relativeDate($item->published)}}
|
|
||||||
om {{$item->published->format('H:i')}} uur
|
|
||||||
</li>
|
|
||||||
@endif
|
|
||||||
</ul>
|
|
||||||
<p>{!!Formatter::excerpt($item->content, 150)!!}</p>
|
|
||||||
<a class="read_more" href="{{url($item->url)}}" title="Lees verder"><span
|
|
||||||
class="arrow"></span><span>Lees verder...</span></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@if($loop->index % 2 == 1)
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
<div id="items">
|
<div id="items">
|
||||||
@include('partial/newslist_small', ['id' => 'items-more-news', 'news' => array_slice($news, 6, count($news))])
|
@include('partial/newslist_small', ['id' => 'items-more-news', 'news' => $news])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if(count($news) >= 15)
|
@if(count($news) >= 15)
|
||||||
|
|||||||
Reference in new issue
Block a user