[IMP]Added full size in parallax size options.

bzr revid: bth@tinyerp.com-20131022105056-g9rq4gjqsea0c1ey
This commit is contained in:
bth-openerp 2013-10-22 16:20:56 +05:30
parent e546cc4550
commit 6c03d97bd5
5 changed files with 24 additions and 9 deletions

View File

@ -371,7 +371,14 @@ footer {
.parallax.oe_big {
height: 450px;
}
.parallax.oe_full {
height: 600px;
width: 1350px;
z-index: -1000;
margin-left: -105px;
margin-right: 0px;
padding-right: 0px;
}
/* -- Hack for removing double scrollbar from mobile preview -- */
div#mobile-preview.modal {
overflow: hidden;
@ -439,6 +446,6 @@ a[data-publish][data-publish='on']:hover .css_published {
background: rgba(150, 150, 220, 0.3);
}
.pt90 {
padding-top: 90px;
.pt60 {
padding-top: 60px;
}

View File

@ -284,7 +284,13 @@ footer
height: 300px
&.oe_big
height: 450px
&.oe_full
height: 600px
width: 1350px
z-index: -1000
margin-left: -105px
margin-right: 0px
padding-right: 0px
/* -- Hack for removing double scrollbar from mobile preview -- */
div#mobile-preview.modal
overflow: hidden

View File

@ -1226,14 +1226,15 @@
},
change_size: function () {
var self = this;
var $el = $('.oe_big,.oe_medium,.oe_small', this.$target);
var $el = $('.oe_full, .oe_big,.oe_medium,.oe_small', this.$target);
var size = 'oe_big';
if ($el.hasClass('oe_small'))
size = 'oe_small';
else if ($el.hasClass('oe_medium'))
size = 'oe_medium';
else if ($el.hasClass('oe_full'))
size = 'oe_full';
var $ul = this.$editor.find('ul[name="parallax-size"]');
var $li = $ul.find("li");
@ -1244,11 +1245,11 @@
$(this).addClass("active");
})
.on('mouseover', function (event) {
$el.removeClass('oe_big oe_small oe_medium');
$el.removeClass('oe_big oe_small oe_medium oe_full');
$el.addClass($(event.currentTarget).data("value"));
})
.on('mouseout', function (event) {
$el.removeClass('oe_big oe_small oe_medium');
$el.removeClass('oe_big oe_small oe_medium oe_full');
$el.addClass($ul.find('li.active').data("value"));
});
}

View File

@ -683,6 +683,7 @@
<li data-value="oe_small"><a>Small</a></li>
<li data-value="oe_medium"><a>Medium</a></li>
<li data-value="oe_big"><a>Big</a></li>
<li data-value="oe_full"><a>Full</a></li>
</ul>
</li>
<li class="oe_snippet_options dropdown-submenu">

View File

@ -463,7 +463,7 @@ Sitemap: <t t-esc="url_root"/>sitemap.xml
<div class="row col-wrap" id="aboutus">
<div class="col-sm-12 text-center" data-snippet-id="parallax">
<div class="parallax oe_structure oe_big" style="background-image: url('/website/static/src/img/parallax/background1.jpg')" data-stellar-background-ratio="0.3">
<h1 class="pt90">About us</h1>
<h1 class="pt60">About us</h1>
<h3 class="text-muted">A passion for great products</h3>
</div>
</div>