[IMP] rename class to be reusable
authorFabien Pinckaers <fp@tinyerp.com>
Tue, 1 Apr 2014 07:25:04 +0000 (09:25 +0200)
committerFabien Pinckaers <fp@tinyerp.com>
Tue, 1 Apr 2014 07:25:04 +0000 (09:25 +0200)
bzr revid: fp@tinyerp.com-20140401072504-6hbwo2jui240jng7

addons/website_blog/static/src/css/website_blog.css
addons/website_blog/static/src/css/website_blog.sass
addons/website_blog/static/src/js/website_blog.editor.js
addons/website_blog/static/src/js/website_blog.js
addons/website_blog/views/website_blog_templates.xml

index 19852ce..9097e3a 100644 (file)
@@ -27,6 +27,10 @@ p.post-meta {
   top: -5px;
 }
 
+div#blog_angle_down a:hover {
+  text-decoration: none;
+}
+
 .cover {
   -webkit-background-size: cover;
   -moz-background-size: cover;
index 4aa510f..6342c6b 100644 (file)
@@ -24,6 +24,10 @@ p.post-meta
     position: relative
     top: -5px
 
+div#blog_angle_down
+    a:hover
+        text-decoration: none
+
 .cover
     -webkit-background-size: cover
     -moz-background-size: cover
index b318a1d..81a4011 100644 (file)
             return res;
         },
         clean_bg : function(vHeight) {
-            $('.js_header').css({"background-image":'none', 'min-height': vHeight});
+            $('.js_fullheight').css({"background-image":'none', 'min-height': vHeight});
         },
         change_bg : function(vHeight) {
             var self  = this;
             var editor  = new  website.editor.ImageDialog();
             editor.on('start', self, function (o) {
-                o.url = $('.js_header').length ? $('.js_header').css('background-image').replace(/url\(|\)|"|'/g,'') : ''; 
+                o.url = $('.js_fullheight').length ? $('.js_fullheight').css('background-image').replace(/url\(|\)|"|'/g,'') : ''; 
             });
             editor.on('save', self, function (o) {
-                $('.js_header').css({"background-image": o.url && o.url !== "" ? 'url(' + o.url + ')' : "", 'min-height': vHeight})
+                $('.js_fullheight').css({"background-image": o.url && o.url !== "" ? 'url(' + o.url + ')' : "", 'min-height': vHeight})
             });
             editor.appendTo('body');
         },
index e1fb6be..6e8dbb2 100644 (file)
@@ -32,7 +32,7 @@ $(document).ready(function() {
         });
     }
 
-    $('.js_header').css('min-height', $(window).height());
+    $('.js_fullheight').css('min-height', $(window).height());
     $(".js_tweet").share({'author_name':$('#blog_author').text()});
     $('.cover_footer').on('click',page_transist);
     $('a[href^="#blog_content"]').on('click', animate);
index 176ce32..2616193 100644 (file)
 <template id="blog_post_complete" name="Blog Post">
   <t t-call="website_blog.index">
 
-    <div class="cover js_header" id="title" t-attf-style="background-image: url(#{blog_post.content_image})" t-ignore="True">
+    <div class="cover js_fullheight" id="title" t-attf-style="background-image: url(#{blog_post.content_image})" t-ignore="True">
         <div class="container">
           <div class="container text-right mt16">
             <div class="btn-group css_non_editable_mode_hidden">