Layoutwijzigingen minor

This commit is contained in:
2020-01-24 20:51:04 +01:00
parent 23d2ee993a
commit 29a447005c
4 changed files with 19 additions and 9 deletions

View File

@@ -116,11 +116,14 @@ button[disabled]:hover
} }
.blog_grid .post.large { .blog_grid .post.large {
height: 526px; /* small items have 2 x 2px margin, so 3 * 174 + 2 * 2 */ /* Width is 787px, so ensure largest photo has 16:9 ratio. */
height: 442px;
} }
.blog_grid .post.small { .blog_grid .post.small {
height: 174px; /* Height of main is 442, minus two 2px margins, leaves 146px per item */
height: 146px;
overflow: hidden;
} }
.blog.podcasts .post { .blog.podcasts .post {

View File

@@ -149,7 +149,7 @@
@endforeach @endforeach
<div id="items"> <div id="items">
@include('partial/newslist_small', array_slice($news, 10, count($news))) @include('partial/newslist_small', ['news' => array_slice($news, 11, count($news))])
</div> </div>
<div> <div>

View File

@@ -33,7 +33,7 @@
</ul> </ul>
</div> </div>
</li> </li>
@if($loop->index % 3 == 2) @if($loop->index % 3 == 2 || $loop->last)
</ul> </ul>
</div> </div>
@endif @endif

View File

@@ -20,17 +20,24 @@
<div class="author">{{$block->name}}</div> <div class="author">{{$block->name}}</div>
</blockquote> </blockquote>
@elseif($block->type == "image") @elseif($block->type == "image")
<div class="mediabox-image"> <a class="post_image page_margin_top prettyPhoto" href="{{$block->image->imageWide}}" title="{{$block->image->title}} &copy; {{$block->image->author}}">
<img src="{{$block->image->imageWide}}" alt="{{$block->image->title}}" title="{{$block->image->title}} &copy;{{$block->image->author}}"/> <img src="{{$block->image->imageWide}}" class="attachment-small-slider-thumb size-small-slider-thumb wp-post-image" alt="{{$block->image->title}}" title="" style="display: block;">
<span class="mediabox-image-title">{{$block->image->title}} &copy; {{$block->image->author}}</span> </a>
<div class="sentence">
@if($block->image->title)
<span class="text">{{$block->image->title}}</span>
@endif
@if($block->image->author)
<span class="author">{{$block->image->author}}</span>
@endif
</div> </div>
@elseif($block->type == "video") @elseif($block->type == "video")
@include('widgets/mediaplayer') @include('widgets/mediaplayer')
<video controls> <video controls>
@foreach($block->video->streams as $stream) @foreach($block->video->streams as $stream)
<source src="{!!$stream->stream_url!!}" type="application/x-mpegurl" /> <source src="{!!$stream->stream_url!!}" type="application/x-mpegurl" />
@endforeach @endforeach
</video> </video>
<span class="author">{{$block->video->author}}</span> <span class="author">{{$block->video->author}}</span>
@endif @endif
@endforeach @endforeach