product slider link z-index
This commit is contained in:
parent
3cf9fddbdd
commit
c761039d8b
3 changed files with 17 additions and 41 deletions
|
@ -12,52 +12,28 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Slider item base */
|
/* Slider item base */
|
||||||
|
|
||||||
.slider-item {
|
.slider-item {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
|
||||||
height: auto !important;
|
|
||||||
/* No opacity here, no z-index here */
|
|
||||||
}
|
|
||||||
|
|
||||||
.slider-item.active {
|
|
||||||
position: relative;
|
|
||||||
/* still controls visibility order */
|
|
||||||
}
|
|
||||||
|
|
||||||
.slider-item img {
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.5s ease-in-out;
|
transition: opacity 0.5s ease-in-out;
|
||||||
position: relative;
|
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
width: 100%;
|
||||||
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slider-item.active img {
|
/* Active image styling */
|
||||||
|
.slider-item.active {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Image fit */
|
||||||
|
.slider-item img {
|
||||||
|
width: 100%;
|
||||||
|
height: auto !important;
|
||||||
|
object-fit: contain;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
/*.slider-item {*/
|
|
||||||
/* position: absolute;*/
|
|
||||||
/* opacity: 0;*/
|
|
||||||
/* width: 100%;*/
|
|
||||||
/* height: auto !important;*/
|
|
||||||
/*}*/
|
|
||||||
/**/
|
|
||||||
/*/* Active image styling */*/
|
|
||||||
/*.slider-item.active {*/
|
|
||||||
/* opacity: 1;*/
|
|
||||||
/* z-index: -1;*/
|
|
||||||
/* position: relative;*/
|
|
||||||
/*}*/
|
|
||||||
/**/
|
|
||||||
/*/* Image fit */*/
|
|
||||||
/*.slider-item img {*/
|
|
||||||
/* width: 100%;*/
|
|
||||||
/* transition: opacity 0.5s ease-in-out;*/
|
|
||||||
/* z-index: -1;*/
|
|
||||||
/* height: auto !important;*/
|
|
||||||
/* object-fit: contain;*/
|
|
||||||
/* display: block;*/
|
|
||||||
/*}*/
|
|
||||||
|
|
||||||
/* Prev/Next Buttons (Desktop only) */
|
/* Prev/Next Buttons (Desktop only) */
|
||||||
.slider-prev, .slider-next {
|
.slider-prev, .slider-next {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
/**
|
/**
|
||||||
* Define Constants
|
* Define Constants
|
||||||
*/
|
*/
|
||||||
define( 'CHILD_THEME_OONT_THEME_VERSION', '1.4.6' );
|
define( 'CHILD_THEME_OONT_THEME_VERSION', '1.4.7' );
|
||||||
define( 'SOFTOBA_RETURN_POST_TYPE', 'return_request' );
|
define( 'SOFTOBA_RETURN_POST_TYPE', 'return_request' );
|
||||||
define( 'SOFTOBA_EXCHANGE_POST_TYPE', 'exchange_request' );
|
define( 'SOFTOBA_EXCHANGE_POST_TYPE', 'exchange_request' );
|
||||||
define('SOFTOBA_THEME_DIR', get_stylesheet_directory());
|
define('SOFTOBA_THEME_DIR', get_stylesheet_directory());
|
||||||
|
@ -254,7 +254,7 @@ add_shortcode('product_image_slider', 'product_image_slider_shortcode');
|
||||||
|
|
||||||
|
|
||||||
function enqueue_slider_assets() {
|
function enqueue_slider_assets() {
|
||||||
wp_enqueue_style('product-slider-style', get_stylesheet_directory_uri() . '/assets/css/product-slider.css',[], CHILD_THEME_OONT_THEME_VERSION);
|
wp_enqueue_style('product-slider-style', get_stylesheet_directory_uri() . '/assets/css/product-slider.css',[], CHILD_THEME_OONT_THEME_VERSION, 'all');
|
||||||
wp_enqueue_script('product-slider-script', get_stylesheet_directory_uri() . '/assets/js/product-slider.js', ['jquery'], CHILD_THEME_OONT_THEME_VERSION, true);
|
wp_enqueue_script('product-slider-script', get_stylesheet_directory_uri() . '/assets/js/product-slider.js', ['jquery'], CHILD_THEME_OONT_THEME_VERSION, true);
|
||||||
}
|
}
|
||||||
add_action('wp_enqueue_scripts', 'enqueue_slider_assets');
|
add_action('wp_enqueue_scripts', 'enqueue_slider_assets');
|
||||||
|
|
|
@ -3,7 +3,7 @@ Theme Name: OONT THEME V last
|
||||||
Author: Brainstorm Force
|
Author: Brainstorm Force
|
||||||
Author URI: http://wpastra.com/about/
|
Author URI: http://wpastra.com/about/
|
||||||
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
|
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
|
||||||
Version: 1.4.6
|
Version: 1.4.7
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Text Domain: oont-theme
|
Text Domain: oont-theme
|
||||||
|
|
Loading…
Reference in a new issue