Commit 76841094 authored by Chi Bui's avatar Chi Bui 👀

fix css 10/09

parent 92ad0608
This diff is collapsed.
......@@ -98,9 +98,9 @@ for (i = 0; i < acc.length; i++) {
$(".sidebar-submenu-2").eq(i).children('li').slice(0, 10).wrapAll("<ul></ul>");
}
}
}
$(".dropdown-toggle").mouseover(function() {
$(this).parent("li.expanded.dropdown").addClass("open");
})
......@@ -127,15 +127,19 @@ for (i = 0; i < acc.length; i++) {
}
// $(".region-middle-bottom-header button").text(" ")
var textPrice = $(".field--name-price");
for(let i =0 ; i < textPrice.length; i++){
let price = textPrice.eq(i).text();
cost = price.split('').slice(0, 1).join("");
if (cost == "0") {
textPrice.eq(i).text("Liên hệ")
textPrice.eq(i).text("Liên hệ");
}
}
console.log(screen.width);
if($("article.commerce-product.full .field--name-price").text() == "Liên hệ"){
$("article.commerce-product.full .product-right .field--name-variations button").hide()
}
$(window).scroll(function() {
if ($(window).scrollTop() > 130) {
......@@ -161,10 +165,10 @@ for (i = 0; i < acc.length; i++) {
numberInput.after('<div class="button btn-inde">+</div>');
numberInput.before('<div class="button btn-inde">-</div>');
$('.btn-inde').click( function() {
var $button = $(this);
var oldValue = $button.parent().find("input").val();
if ($button.text() == "+") {
var newVal = parseFloat(oldValue) + 1;
} else {
......@@ -176,7 +180,7 @@ for (i = 0; i < acc.length; i++) {
}
}
$button.parent().find("input").val(newVal);
});
$('.cart-form .table-responsive').addClass('col-lg-9 col-sm-12 col-xs-12');
$('.cart-form .field--name-total-price').addClass('cart-total col-lg-3 col-sm-12 col-xs-12 text-center')
......@@ -199,4 +203,3 @@ for (i = 0; i < acc.length; i++) {
$(".mobile-modal").hide();
})
})(window.jQuery, window.Drupal);
......@@ -15,9 +15,9 @@
{% if payment_instructions %}
<div class="checkout-complete__payment-instructions">
<h2>{{ 'Payment instructions'|t }}</h2>
<h4 style= "font-weight: 400">{{ 'You can view your order on your account page when logged in.'|t }} </h4>
<h4>{{ 'Your order number is @number.'|t({'@number': order_entity.getOrderNumber}) }}</h4>
<h4>Your order number is <span style="color: #e94337">{{ '@number.'|t({'@number': order_entity.getOrderNumber}) }}</span> </h4>
<h4 style= "font-weight: 400">{{ payment_instructions }}</h4>
</div>
{% endif %}
......
......@@ -135,7 +135,7 @@
<div class="wrap-header">
<div class="middle-header-wrapper clearfix">
<div class="container-fluid">
<div class="col-md-3 col-xs-7">
<div class="col-md-3 col-xs-7 page-logo">
{% if page.left_middle_header %}
{{ page.left_middle_header }}
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment