Adds skeleton template to grid view mode.
This commit is contained in:
parent
a5229b0489
commit
73cb6ee5eb
|
@ -6,21 +6,24 @@
|
|||
grid-template-columns: repeat(auto-fill, 285px);
|
||||
grid-gap: 0px;
|
||||
justify-content: space-evenly;
|
||||
animation-name: item-appear;
|
||||
animation-name: appear;
|
||||
animation-duration: 0.5s;
|
||||
|
||||
.row { justify-content: space-around }
|
||||
.col { flex-grow: 0; }
|
||||
|
||||
.tainacan-grid-item {
|
||||
animation-name: item-appear;
|
||||
animation-duration: 0.5s;
|
||||
max-width: 255px;
|
||||
width: 255px;
|
||||
margin: 12px 15px 24px 15px;
|
||||
text-align: center;
|
||||
display: block;
|
||||
text-decoration: none !important;
|
||||
|
||||
&.skeleton {
|
||||
width: 255px;
|
||||
height: 295px;
|
||||
}
|
||||
|
||||
.grid-item-thumbnail {
|
||||
width: 255px;
|
||||
height: 255px;
|
||||
|
|
|
@ -72,6 +72,20 @@ if ( ! function_exists( 'tainacan_setup' ) ) {
|
|||
'icon' => '<span class="icon"><i class="mdi mdi-apps mdi-24px"></i></span>',
|
||||
'dynamic_metadata' => false,
|
||||
'template' => get_template_directory() . '/tainacan/view-mode-grid.php',
|
||||
'skeleton_template' => '<div class="tainacan-grid-container">
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
<div class="skeleton tainacan-grid-item"></div>
|
||||
</div>'
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue