Adds attachment title to attachments carousel on item single and fixes arrow color using customizer.

This commit is contained in:
mateuswetah 2019-08-19 14:27:31 -03:00
parent 0cf401537c
commit c97754b927
3 changed files with 20 additions and 3 deletions

View File

@ -382,8 +382,9 @@
}
}
.single-item-collection--attachments {
.single-item-collection--attachments-img {
.single-item-collection--attachments-file {
margin: 10px;
img {
width: 125px;
height: 125px;
@ -391,8 +392,18 @@
outline: none;
}
}
a:focus {
a {
display: inline-block;
font-size: 0.875rem;
text-align: center;
}
a,
a:focus,
a:hover {
outline: none;
text-decoration: none;
cursor: pointer;
color: black;
}
}
.single-item-collection--attachments-prev {

View File

@ -584,6 +584,11 @@ function tainacan_get_color_scheme_css( $colors ) {
fill: {$colors['tainacan_link_color']} !important;
}
.tainacan-single-post .single-item-collection--attachments .single-item-collection--attachments-next,
.tainacan-single-post .single-item-collection--attachments .single-item-collection--attachments-prev {
color: {$colors['tainacan_link_color']} !important;
}
/* Header Menu */
nav .dropdown-menu .dropdown-item:hover {
background-color: {$colors['backtransparent']};

View File

@ -75,10 +75,11 @@
<section class="tainacan-content single-item-collection margin-two-column">
<div class="single-item-collection--attachments">
<?php foreach ( $attachment as $attachment ) { ?>
<div class="single-item-collection--attachments-img">
<div class="single-item-collection--attachments-file">
<a href="<?php echo $attachment->guid; ?>" data-toggle="lightbox" data-gallery="example-gallery">
<?php
echo wp_get_attachment_image( $attachment->ID, 'tainacan-interface-item-attachments' );
echo get_the_title( $attachment->ID );
?>
</a>
</div>