diff options
| author | Fabien Pinckaers <fp@openerp.com> | 2013-10-19 23:17:09 +0200 |
|---|---|---|
| committer | Fabien Pinckaers <fp@openerp.com> | 2013-10-19 23:17:09 +0200 |
| commit | bda5d6bbfed322aa8791e21f37469e2f387ea4c8 (patch) | |
| tree | 9c7a424e6d1dcfe67420a76b9ea1d88a05596fd6 | |
| parent | b461fc3253789817f696854f95acb6e930c849b8 (diff) | |
[IMP] parallax css. I think we should use elements <img> instead of bg
bzr revid: fp@openerp.com-20131019211709-5zxz9601fw7qtu1k
| -rw-r--r-- | addons/website/static/src/css/website.css | 2 | ||||
| -rw-r--r-- | addons/website/static/src/css/website.sass | 2 | ||||
| -rw-r--r-- | addons/website/views/snippets.xml | 7 |
3 files changed, 4 insertions, 7 deletions
diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css index eea97a81bcf..c851c7e43f6 100644 --- a/addons/website/static/src/css/website.css +++ b/addons/website/static/src/css/website.css @@ -361,9 +361,7 @@ footer { } .parallax { - background: no-repeat top center; background-attachment: fixed; - width: 100%; background-size: 100%; } .parallax.oe_small { diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass index 26f70f27e75..4d9a6ae01c0 100644 --- a/addons/website/static/src/css/website.sass +++ b/addons/website/static/src/css/website.sass @@ -276,9 +276,7 @@ footer background-color: grey .parallax - background: no-repeat top center background-attachment: fixed - width: 100% background-size: 100% &.oe_small height: 200px diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 96a2aebf1e8..46709b056f1 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -698,15 +698,16 @@ <li class="oe_snippet_options dropdown-submenu"> <a tabindex="-1" href="#">Scroll Speed</a> <ul class="dropdown-menu" name="parallax-scroll"> - <li data-value="0.25"><a>Very Slow</a></li> - <li data-value="0.5"><a>Slow</a></li> + <li data-value="0"><a>Static</a></li> + <li data-value="0.3"><a>Very Slow</a></li> + <li data-value="0.6"><a>Slow</a></li> <li data-value="1"><a>Fixed</a></li> <li data-value="1.5"><a>Fast</a></li> <li data-value="2"><a>Very Fast</a></li> </ul> </li> <div class="oe_snippet_body" style="position:relative"> - <div class="parallax oe_structure oe_medium" style="background-image: url('/website/static/src/img/banner/greenfields.jpg')" data-stellar-background-ratio="0.5"> + <div class="parallax oe_structure oe_medium" style="background-image: url('/website/static/src/img/banner/greenfields.jpg')" data-stellar-background-ratio="0.3"> </div> </div> |
