Просмотр исходного кода

Modificaciones en DiseÃo de Pagina Web, blog, css, less y js

edgar 8 лет назад
Родитель
Сommit
7331ed3e55

+ 26 - 0
static/src/css/custom.css

@@ -0,0 +1,26 @@
+.cover {
+  -webkit-background-size: cover;
+  -moz-background-size: cover;
+  -o-background-size: cover;
+  background-size: cover;
+  background-position: center;
+  background-repeat: no-repeat;
+  background-color: grey;
+  color: white;
+  position: relative;
+}
+
+.cover .blog_title {
+  position: absolute;
+  text-align: center;
+  top: -5%;
+  left: 0;
+  right: 0;
+}
+
+
+.cover_footer {
+  min-height: 215px;
+  height: 215px;
+  cursor: pointer;
+}

+ 0 - 0
static/src/js/custom.js


+ 41 - 0
static/src/js/customdos.js

@@ -0,0 +1,41 @@
+$(document).ready(function() {
+    if ($('.website_blog').length) {
+        function page_transist(event) {
+            event.preventDefault();
+            newLocation = $('.js_next')[0].href;
+            var top = $('.cover_footer').offset().top;
+            $('.cover_footer').animate({
+                height: $(window).height()+'px'
+            }, 300);
+            $('html, body').animate({
+                scrollTop: top
+            }, 300, 'swing', function() {
+               window.location.href = newLocation;
+            });
+        }
+        function animate(event) {
+            event.preventDefault();
+            event.stopImmediatePropagation();
+            var target = $(this.hash);
+            $('html, body').stop().animate({
+                'scrollTop': target.offset().top - 32
+            }, 500, 'swing', function () {
+                window.location.hash = 'blog_content';
+            });
+        }
+
+        var content = $("div[enable_chatter_discuss='True']").find('p[data-chatter-id]');
+        if (content) {
+            openerp.jsonRpc("/blog/get_user/", 'call', {}).then(function(data){
+                $('#discussions_wrapper').empty();
+                new openerp.website.blog_discussion({'content' : content, 'public_user':data[0]});
+            });
+        }
+
+        $('.js_fullheight').css('min-height', '215px');
+        $(".js_tweet").share({'author_name':$('#blog_author').text()});
+        $('.cover_footer').on('click',page_transist);
+        $('a[href^="#blog_content"]').on('click', animate);
+    }
+
+});

+ 4 - 4
static/src/less/header.less

@@ -613,7 +613,7 @@ header {
 		}
 		.search-toggle {
 			position: absolute;
-			right: 10px;
+			right: -80px;
 			top: 0;
 			z-index: 1;
 
@@ -724,7 +724,7 @@ header {
 						line-height: 55px;
 						
 						font-weight: bold;
-						.transition(all, 0.3s, ease);
+						.transition(all, 0.1s, ease);
 						text-decoration: none;
 						color: @dark-color;
 
@@ -776,8 +776,8 @@ header {
 							background: transparent;
 
 							&:hover, &:focus, &:active {
-								background: transparent;
-								color: @theme;
+								background: @theme;
+								color: #fff;
 
 								@media (max-width:767px) {
 									color: @light-color;

+ 11 - 22
static/src/less/web.less

@@ -1305,7 +1305,7 @@ a:hover {
 		width: 100%;
 		display: inline-block;
 		vertical-align: top;
-		margin: 33px 0 0;
+		margin: 40px 0 0;
 
 		a {
 			display: block;
@@ -2653,6 +2653,9 @@ header a.navbar-brand img {
 				text-decoration: none;
 				color: @dark-color;
 			}
+			a:hover {
+					color: @theme;
+				}
 		}
 		.slider_header {
 			color: @theme;
@@ -2838,6 +2841,7 @@ header a.navbar-brand img {
 		text-align: center;
 		line-height: 35px;
 	}
+	
 	.hsearch-block {
 		visibility: hidden;
 		opacity: 0;
@@ -2851,12 +2855,12 @@ header a.navbar-brand img {
 		.form-control {
 			border-radius: 0px;
 			border: 1px solid @theme;
-			width: 174px;
+			width: 240px;
 			height: 35px;
 			padding:6px 4px; font-size:@font-size-base - 2;
 
 			&:focus {
-				box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgb(195, 134, 71);
+				box-shadow: inset 0 2px 2px rgba(0, 0, 0, .075), 0 0 8px @theme;
 			}
 			@media (max-width:500px) {
 				width:  155px;
@@ -2874,8 +2878,9 @@ header a.navbar-brand img {
 			background: @theme;
 
 			.fa-search {
-				color: @light-color;
+				color: @theme;
 			}
+
 		}
 		.hsearch-block {
 			visibility: visible;
@@ -3491,27 +3496,11 @@ white-space: nowrap;
 }
 
 
-header .header-nav .navbar-collapse .navbar-nav > li:hover > a:hover{
-    background: @theme;
-    color: #ffffff;
-}
-
-header .header-nav .navbar-collapse .navbar-nav > li:active > a:active {
-    background: @theme;
-    color: #ffffff;
-}
-
-.search-toggle.search-toggle-open .st-toggle .fa-search {
-    color: @theme;
-}
 
-.search-toggle .hsearch-block .form-control {
-  
-    width: 240px;
- 
-}
 .facil{
 	color: @theme;
     font-size: 12px;
 }
 
+
+

+ 0 - 0
views/product_view.xml


+ 5 - 5
views/snippets.xml

@@ -532,7 +532,7 @@
                                                             </a>
                                                         </p>
                                                         <p class="price">
-                                                            <span class="price">
+                                                            <span class="price" t-esc="str('{p:0,.0f}'.format(p=product.lst_price).replace(',','.' ) + ' ₲s.')">
                                                                 <span t-field="product.lst_price"
                                                                       t-field-options='{
                                                                          "widget": "monetary",
@@ -582,7 +582,7 @@
                                                                 <span t-field='product.name'/>
                                                             </a>
                                                         </p>
-                                                        <p class="price">
+                                                        <p class="price" t-esc="str('{p:0,.0f}'.format(p=product.lst_price).replace(',','.' ) + ' ₲s.')">
                                                             <span class="price">
                                                                 <span t-field="product.lst_price"
                                                                       t-field-options='{
@@ -630,7 +630,7 @@
                                                             </a>
                                                         </p>
                                                         <p class="price">
-                                                            <span class="price">
+                                                            <span class="price" t-esc="str('{p:0,.0f}'.format(p=product.lst_price).replace(',','.' ) + ' ₲s.')">
                                                                 <span t-field="product.lst_price"
                                                                       t-field-options='{
                                                                          "widget": "monetary",
@@ -674,7 +674,7 @@
                                                             </a>
                                                         </p>
                                                         <p class="price">
-                                                            <span class="price">
+                                                            <span class="price" t-esc="str('{p:0,.0f}'.format(p=product.lst_price).replace(',','.' ) + ' ₲s.')">
                                                                 <span t-field="product.lst_price"
                                                                       t-field-options='{
                                                                          "widget": "monetary",
@@ -718,7 +718,7 @@
                                                             </a>
                                                         </p>
                                                         <p class="price">
-                                                            <span class="price">
+                                                            <span class="price" t-esc="str('{p:0,.0f}'.format(p=product.lst_price).replace(',','.' ) + ' ₲s.')">
                                                                 <span t-field="product.lst_price"
                                                                       t-field-options='{
                                                                          "widget": "monetary",

+ 7 - 0
views/theme.xml

@@ -1626,5 +1626,12 @@
         </xpath>
     </template>
 
+    <template id="CustomBlogAmoJeans" name="Kingfisher_Blog_Cutomisation" inherit_id="website_blog.blog_post_complete">
+        <xpath expr="." position="inside">
+          <link rel="stylesheet" href="/kingfisher_pro/static/src/css/custom.css"/>
+          <script type="text/javascript" src="/kingfisher_pro/static/src/js/customdos.js"/>
+        </xpath>
+    </template>
+
 </data>
 </openerp>