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

+ Little CSS adjustments, specially for mobile. Hide product search. #1

Open
wants to merge 1 commit into
base: testing
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
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()
}
});
});

});

});