Avoids thumbnail streching on atachments. Better alignement of documents carousel.
This commit is contained in:
parent
187dba40df
commit
2ecf645f20
|
@ -597,6 +597,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.single-item-collection--document {
|
.single-item-collection--document {
|
||||||
|
position: relative;
|
||||||
&:hover {
|
&:hover {
|
||||||
.tainacan-item-file-download {
|
.tainacan-item-file-download {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -610,6 +611,8 @@
|
||||||
}
|
}
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 10vh;
|
||||||
|
|
||||||
> iframe, img.attachment-large {
|
> iframe, img.attachment-large {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -618,7 +621,7 @@
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
> audio {
|
> audio {
|
||||||
width: 100%;
|
width: 95%;
|
||||||
}
|
}
|
||||||
> iframe {
|
> iframe {
|
||||||
@media only screen and (min-width: 768px){
|
@media only screen and (min-width: 768px){
|
||||||
|
@ -757,6 +760,7 @@
|
||||||
width: 125px;
|
width: 125px;
|
||||||
height: 125px;
|
height: 125px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
object-fit: cover;
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
@ -780,8 +784,9 @@
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
.attachment-without-image img {
|
.attachment-without-image img {
|
||||||
padding: 42px;
|
padding: 36px;
|
||||||
background-color: #dbdbdb;
|
background-color: #dbdbdb;
|
||||||
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
.item-card--thumbnail {
|
.item-card--thumbnail {
|
||||||
margin: 0 0 4px 0 !important;
|
margin: 0 0 4px 0 !important;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
?>
|
?>
|
||||||
<?php if ($previous !== '' || $next !== '') : ?>
|
<?php if ($previous !== '' || $next !== '') : ?>
|
||||||
<div class="tainacan-single-post">
|
<div class="tainacan-single-post">
|
||||||
<div class="d-flex flex-wrap justify-content-between align-items-center">
|
<div class="d-flex flex-wrap justify-content-between align-items-center mb-3">
|
||||||
|
|
||||||
<?php if ( get_theme_mod('tainacan_single_item_navigation_section_label', __( 'Continue browsing', 'tainacan-interface' )) != '') : ?>
|
<?php if ( get_theme_mod('tainacan_single_item_navigation_section_label', __( 'Continue browsing', 'tainacan-interface' )) != '') : ?>
|
||||||
<h2 class="mb-0 title-content-items" id="single-item-navigation-label">
|
<h2 class="mb-0 title-content-items" id="single-item-navigation-label">
|
||||||
|
|
Loading…
Reference in New Issue