Merge pull request 'Item to media link. CSS fixes' (#50) from develop into main

Reviewed-on: #50
This commit is contained in:
jorge 2022-03-16 11:44:07 +01:00
commit 3598879c41
4 changed files with 20 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,11 +8,9 @@
}
.hero {
@include breakpoint(small) {
aside {
nav {
.dropdown.menu > li > a {
padding: $global-menu-padding/2;
}
padding: $global-menu-padding/2 $global-menu-padding/2;
}
}
}

6
package-lock.json generated
View File

@ -924,9 +924,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001236",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001236.tgz",
"integrity": "sha512-o0PRQSrSCGJKCPZcgMzl5fUaj5xHe8qA2m4QRvnyY4e1lITqoNkr7q/Oh1NcpGSy0Th97UZ35yoKcINPoq7YOQ==",
"version": "1.0.30001312",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001312.tgz",
"integrity": "sha512-Wiz1Psk2MEK0pX3rUzWaunLTZzqS2JYZFzNKqAiJGiuxIjRPLgV6+VDPOg6lQOUxmDwhTlh198JsTTi8Hzw6aQ==",
"dev": true
},
"caseless": {

View File

@ -47,17 +47,24 @@ $("#archive_page_title").html('<?php echo $_html ?>');
</div>
<?php endif; ?>
<!-- code to link directly to media
<div class="resource">
<a class="resource-link" href="< ?= $media->originalUrl(); ?>">
<img src="< ?= $media->thumbnailUrl("square"); ?>" />
<span class="resource-name">
< ?= $media->displayTitle(); ?>
</span>
</a>
</div>
-->
<?php if (!$embedMedia && $itemMedia): ?>
<div class="media-list" style="display: flex;">
<?php foreach ($itemMedia as $media): ?>
<?php echo $media->linkPretty(); ?>
<div class="resource">
<a class="resource-link" href="<?= $media->originalUrl(); ?>">
<img src="<?= $media->thumbnailUrl("square"); ?>" />
<span class="resource-name">
<?= $media->displayTitle(); ?>
</span>
</a>
<?php echo $media->linkPretty(); ?>
<!-- include code to link directly to media here -->
</div>
<?php endforeach; ?>
</div>