product slider dots resize and over img
This commit is contained in:
parent
09b9079508
commit
9d7d0a032c
4 changed files with 20 additions and 8 deletions
|
@ -119,8 +119,8 @@
|
||||||
/* Prev/Next Buttons (Desktop only) */
|
/* Prev/Next Buttons (Desktop only) */
|
||||||
.slider-prev, .slider-next {
|
.slider-prev, .slider-next {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10%;
|
top: 50%;
|
||||||
transform: translateY(-10%);
|
transform: translateY(-50%);
|
||||||
background: none;
|
background: none;
|
||||||
color: #424242;
|
color: #424242;
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -163,14 +163,22 @@
|
||||||
|
|
||||||
/* Dots below slider */
|
/* Dots below slider */
|
||||||
.slider-dots {
|
.slider-dots {
|
||||||
text-align: center;
|
position: absolute;
|
||||||
margin-top: 10px;
|
bottom: 10px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
z-index: 15;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 6px;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slider-dot {
|
.slider-dot {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 10px;
|
width: 5px;
|
||||||
height: 10px;
|
height: 5px;
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
|
@ -36,7 +36,10 @@ jQuery(document).ready(function($) {
|
||||||
items.eq(currentIndex).css({ opacity: 1, position: 'relative' });
|
items.eq(currentIndex).css({ opacity: 1, position: 'relative' });
|
||||||
|
|
||||||
// Create and insert dots
|
// Create and insert dots
|
||||||
|
if (items.length <= 1) return;
|
||||||
|
|
||||||
const dotsContainer = $('<div class="slider-dots"></div>');
|
const dotsContainer = $('<div class="slider-dots"></div>');
|
||||||
|
|
||||||
items.each(function(i) {
|
items.each(function(i) {
|
||||||
const dot = $('<span class="slider-dot"></span>');
|
const dot = $('<span class="slider-dot"></span>');
|
||||||
if (i === 0) dot.addClass('active');
|
if (i === 0) dot.addClass('active');
|
||||||
|
@ -46,6 +49,7 @@ jQuery(document).ready(function($) {
|
||||||
});
|
});
|
||||||
dotsContainer.append(dot);
|
dotsContainer.append(dot);
|
||||||
});
|
});
|
||||||
|
|
||||||
container.append(dotsContainer);
|
container.append(dotsContainer);
|
||||||
|
|
||||||
// Slide update function
|
// Slide update function
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
/**
|
/**
|
||||||
* Define Constants
|
* Define Constants
|
||||||
*/
|
*/
|
||||||
define( 'CHILD_THEME_OONT_THEME_VERSION', '1.3.7' );
|
define( 'CHILD_THEME_OONT_THEME_VERSION', '1.3.8' );
|
||||||
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());
|
||||||
|
|
|
@ -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.3.7
|
Version: 1.3.8
|
||||||
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