Adjust desktop/mobile article layout and restore video/map ordering in admin/public views
This commit is contained in:
parent
5408aba01a
commit
f95b5d4f0b
2 changed files with 23 additions and 6 deletions
27
index.php
27
index.php
|
|
@ -203,11 +203,23 @@ $baseParams = ($rawKeyword !== '') ? ['q' => $rawKeyword] : [];
|
||||||
.filter-submit .icon{font-size:1.02rem;line-height:1;transform:translateY(.01em)}
|
.filter-submit .icon{font-size:1.02rem;line-height:1;transform:translateY(.01em)}
|
||||||
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
|
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
|
||||||
.filter-summary{color:#A0A4AB;font-size:.9rem;margin:0 0 .8rem}
|
.filter-summary{color:#A0A4AB;font-size:.9rem;margin:0 0 .8rem}
|
||||||
.video-row-head{grid-column:1 / -1;margin:0 0 .15rem}
|
.video-row-title{font-size:1.35rem;line-height:1.2;color:#F3F4F6}
|
||||||
.video-row-title{font-size:1.35rem;line-height:1.2;margin:.1rem 0 .45rem;color:#F3F4F6}
|
.video-row-head-mobile{display:none}
|
||||||
.video-row-head .meta{margin:0 0 .45rem}
|
.video-info .video-row-title{margin:0 0 .35rem}
|
||||||
|
.video-info .meta{margin:0 0 .45rem}
|
||||||
|
#videos .video-wrapper{align-self:start}
|
||||||
|
#videos .video-info{align-self:start}
|
||||||
|
#videos .video-info .description{margin-top:0}
|
||||||
.meta a{color:inherit;text-decoration:none}
|
.meta a{color:inherit;text-decoration:none}
|
||||||
.meta a:hover{text-decoration:underline}
|
.meta a:hover{text-decoration:underline}
|
||||||
|
@media (max-width:900px){
|
||||||
|
.video-row-head-mobile{display:block;grid-column:1 / -1;margin:0 0 .05rem}
|
||||||
|
#videos .video-wrapper{grid-column:1 / -1}
|
||||||
|
#videos .video-info{grid-column:1 / -1}
|
||||||
|
.video-info .video-row-title.video-row-title-desktop,
|
||||||
|
.video-info .meta.meta-desktop{display:none}
|
||||||
|
#videos .video-info .description{margin-top:.8rem}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -242,7 +254,7 @@ $baseParams = ($rawKeyword !== '') ? ['q' => $rawKeyword] : [];
|
||||||
?>
|
?>
|
||||||
<article class="video-row">
|
<article class="video-row">
|
||||||
<time class="created-at" datetime="<?=h(date('c', filemtime($v)))?>"><?=h(date('d.m.Y H:i', filemtime($v)))?></time>
|
<time class="created-at" datetime="<?=h(date('c', filemtime($v)))?>"><?=h(date('d.m.Y H:i', filemtime($v)))?></time>
|
||||||
<div class="video-row-head">
|
<div class="video-row-head video-row-head-mobile">
|
||||||
<h2 class="video-row-title"><?=h($m['title'])?></h2>
|
<h2 class="video-row-title"><?=h($m['title'])?></h2>
|
||||||
<p class="meta">
|
<p class="meta">
|
||||||
<span><a href="<?=h($dateFilterUrl)?>"><?=h($m['date'])?></a></span>
|
<span><a href="<?=h($dateFilterUrl)?>"><?=h($m['date'])?></a></span>
|
||||||
|
|
@ -259,6 +271,11 @@ $baseParams = ($rawKeyword !== '') ? ['q' => $rawKeyword] : [];
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="video-info">
|
<div class="video-info">
|
||||||
|
<h2 class="video-row-title video-row-title-desktop"><?=h($m['title'])?></h2>
|
||||||
|
<p class="meta meta-desktop">
|
||||||
|
<span><a href="<?=h($dateFilterUrl)?>"><?=h($m['date'])?></a></span>
|
||||||
|
<?php if(!empty($m['location'])): ?><span><a href="<?=h($locFilterUrl)?>"><?=h($m['location'])?></a></span><?php endif; ?>
|
||||||
|
</p>
|
||||||
<?php if(!empty($m['description'])): ?><p class="description"><?=nl2br(h($m['description']), false)?></p><?php endif; ?>
|
<?php if(!empty($m['description'])): ?><p class="description"><?=nl2br(h($m['description']), false)?></p><?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
@ -305,6 +322,6 @@ $baseParams = ($rawKeyword !== '') ? ['q' => $rawKeyword] : [];
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script src="js/map_lightbox.js?v=20260531c" defer></script>
|
<script src="js/map_lightbox.js?v=20260531b" defer></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
2
new.php
2
new.php
|
|
@ -1098,5 +1098,5 @@ function applySwitchPayload(payload){
|
||||||
|
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script src="js/map_lightbox.js?v=20260531c" defer></script>
|
<script src="js/map_lightbox.js?v=20260531b" defer></script>
|
||||||
</body></html>
|
</body></html>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue