Added loading spinner to lightbox
This commit is contained in:
parent
2928312199
commit
5758dcde25
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -49,7 +49,7 @@
|
||||
<?php
|
||||
// Lightbox container
|
||||
if ( get_option( 'fictioneer_enable_lightbox' ) ) {
|
||||
echo '<div id="fictioneer-lightbox" class="lightbox"><button type="button" class="lightbox__close" aria-label="' . esc_attr__( 'Close lightbox', 'fictioneer' ) . '">' . fictioneer_get_icon( 'fa-xmark' ) . '</button><div class="lightbox__content target"></div></div>';
|
||||
echo '<div id="fictioneer-lightbox" class="lightbox"><button type="button" class="lightbox__close" aria-label="' . esc_attr__( 'Close lightbox', 'fictioneer' ) . '">' . fictioneer_get_icon( 'fa-xmark' ) . '</button><i class="fa-solid fa-spinner fa-spin loader" style="--fa-animation-duration: .8s;"></i><div class="lightbox__content target"></div></div>';
|
||||
}
|
||||
|
||||
// WordPress footer hook
|
||||
|
@ -32,4 +32,14 @@
|
||||
max-width: calc(100vw - 2rem);
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.loader {
|
||||
display: block;
|
||||
width: fit-content;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user