Skip to content

Commit

Permalink
+ Little CSS adjustments, specially for mobile. Hide product search.
Browse files Browse the repository at this point in the history
+ Add JS adjustments from production server.
  • Loading branch information
jofemodo committed Mar 10, 2022
1 parent 9e55649 commit cb09ede
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 297 deletions.
28 changes: 22 additions & 6 deletions theme_zynthian/static/src/css/website_zynthian.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ ul.wizard li.text-primary {
display: block;
}
.form-control:focus {
border-color: rgba(192, 1, 39, 0.6);
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(192, 1, 39, 0.6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(192, 1, 39, 0.6);
border-color: rgba(192, 1, 39, 0.6);
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(192, 1, 39, 0.6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(192, 1, 39, 0.6);
}
.nav-pills.nav-stacked > li > a{
background: #EDEDED;
Expand All @@ -282,8 +282,23 @@ ul.wizard li.text-primary {
background: #000000;
color: #FFFFFF;
}

@media only screen and (max-width: 768px) {
section.parallax {
height: 0px !important;
}
.img.padding-xl {
padding: 0px;
}
}

ul.mt16 {
margin-top: 0px !important;
}

.pagination{
margin-top: 30px;
display: none;
margin-top: 0px;
}
.pagination > li > a,
.pagination > li > span {
Expand Down Expand Up @@ -328,8 +343,9 @@ footer .container.mt16.mb8 .text-muted{
}
footer .container.mt16.mb8 a{
color: #FFFFFF;
text-decoration: underline;
/*text-decoration: underline;*/
}
footer .container.mt16.mb8 a:hover{
color: #C00127;
text-decoration: none;
text-decoration: none;
}
286 changes: 0 additions & 286 deletions theme_zynthian/static/src/js/website.js

This file was deleted.

14 changes: 9 additions & 5 deletions theme_zynthian/static/src/js/website_zynthian.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ odoo.define('website.website', function (require) {
console.log("ZYNTHIAN DIRTY TRICKS!");
$(window).on('load',function() {
/* --- Locate the "[!]" string and show the alert banner --- */
if ($('h1:contains("[!]")').length>0 ||
$('table#cart_products:contains("[!]")').length>0) {
if ($('h1:contains("[!]")').length>0 || $('table#cart_products:contains("[!]")').length>0) {
$('.zynthian_alert_message').fadeIn(1000);
}
/* --- Locate the "[*]" string and remove "AddToCart button, replacing
by "SOLD OUT" warning --- */
/* --- Locate the "[*]" string and remove "AddToCart button, replacing by "SOLD OUT" warning --- */
if ($('h1:contains("[*]")').length>0) {
$('#add_to_cart').hide();
$('#sold_out_warning').show();
}
$('div.oe_product_cart').each(function() {
if ($(this).find("a[itemprop='name']:contains('[*]')").length>0) {
$(this).find("a.btn").hide()
}
});
});

});

});

0 comments on commit cb09ede

Please sign in to comment.