Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UI issue & develop custom color filter widget #36

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,579 changes: 1,579 additions & 0 deletions assets/css/animate.css

Large diffs are not rendered by default.

667 changes: 636 additions & 31 deletions assets/css/master.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/master.css.map

Large diffs are not rendered by default.

59 changes: 48 additions & 11 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jQuery(function ($) {

if (contentArea.height() > dashboardMenu.height()) {
if ($(window).width() > 767) {
dashboardMenu.css({height: contentArea.height()});
dashboardMenu.css({ height: contentArea.height() });
}
}

Expand Down Expand Up @@ -104,31 +104,68 @@ jQuery(function ($) {
$(button).children('i').addClass('fa-spin');
});

$( document ).on( 'ready', function(){
if( ! $('.profile-frame').hasClass('layout1') && window.innerWidth < 768 ) {
$(document).on('ready', function () {
if (!$('.profile-frame').hasClass('layout1') && window.innerWidth < 768) {
$('.profile-frame').removeClass('layout3');
$('.profile-frame').addClass('layout1');
}
} )
})

// quantity product single page
$(document).on('click', '.quantity-btn .plus', function(e) {
$(document).on('click', '.quantity-btn .plus', function (e) {
$input = $(this).parents('.quantity_wrap').children('input.qty');
var val = parseInt($input.val());
var step = $input.attr('step');
step = 'undefined' !== typeof(step) ? parseInt(step) : 1;
$input.val( val + step ).change();
step = 'undefined' !== typeof (step) ? parseInt(step) : 1;
$input.val(val + step).change();
});
$(document).on('click', '.quantity-btn .minus', function(e) {
$(document).on('click', '.quantity-btn .minus', function (e) {
$input = $(this).parents('.quantity_wrap').children('input.qty');
var val = parseInt($input.val());
var step = $input.attr('step');
step = 'undefined' !== typeof(step) ? parseInt(step) : 1;
step = 'undefined' !== typeof (step) ? parseInt(step) : 1;
if (val > 0) {
$input.val( val - step ).change();
}
$input.val(val - step).change();
}
});

/* Product Sidebar */
$(document).ready(function () {
$('.product-categories .cat-parent .children').before('<span class="toggleIcon"><i class="flaticon-arrow-down-sign-to-navigate"></i></span>');
$('.product-categories .cat-parent .children').hide();
toggleIcon = $('.product-categories .cat-parent .toggleIcon');
toggleIcon.on('click', function () {
$(this).next().slideToggle();
})
})

// Change variation
$(document).on('change', '.dokani-product-variation input', function () {
$('.dokani-product-variation input:checked').each(function (index, element) {
var $el = $(element);
var thisName = $el.attr('name');
var thisVal = $el.attr('value');
$('select[name="' + thisName + '"]').val(thisVal).trigger('change');

});
});

$(document).on('click', '.dokani-product-variation input[name="attribute_pa_color"]', function () {
$('.dokani-product-variation.pa_color .single-item').removeClass("active-item");
$(this).parent().addClass('active-item');
})

$(document).on('click', '.dokani-product-variation input[name="attribute_pa_size"]', function () {
$('.dokani-product-variation.pa_size .single-item').removeClass("active-item");
$(this).parent().toggleClass('active-item');
})

$(document).on('click', '.reset_variations', function () {
$('.dokani-product-variation .single-item').removeClass("active-item");

})


});


Expand Down
7 changes: 7 additions & 0 deletions assets/less/blog.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

}

body.blog {
#page {
padding: 43px 0 46px;

}
}

// article box

.separate-containers .inside-article,
Expand Down
Loading