From 7c12d5d200141907e5f3b7492e958c3c8c83b6f5 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 3 Feb 2014 17:03:31 +0100 Subject: [IMP] clearer indication that images are being up/downloaded bzr revid: xmo@openerp.com-20140203160331-04h1erlunelb9kkn --- addons/website/static/src/css/common.sass | 44 ++++++++++++++++++++++++ addons/website/static/src/css/editor.css | 14 +++++--- addons/website/static/src/css/editor.sass | 13 ++++--- addons/website/static/src/css/website.css | 1 - addons/website/static/src/js/website.editor.js | 16 ++++++--- addons/website/static/src/xml/website.editor.xml | 4 +++ 6 files changed, 79 insertions(+), 13 deletions(-) (limited to 'addons/website/static/src') diff --git a/addons/website/static/src/css/common.sass b/addons/website/static/src/css/common.sass index 86e1f6655ef..4d5f0673e33 100644 --- a/addons/website/static/src/css/common.sass +++ b/addons/website/static/src/css/common.sass @@ -1,6 +1,7 @@ @import "compass/css3" @import "compass/css3/user-interface" @import "compass/css3/transition" +@import "compass/support" //smartphones, iPhone, portrait 480x320 phones $smart_phone: 320px @@ -23,3 +24,46 @@ $desktop: 1025px @content ::selection @content + +// Lifted from compass-animation +// LICENSED UNDER THE MIT LICENSE (MIT) +// +// Copyright (c) 2012 Eric Meyer +// +// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@mixin set-experimental-support($moz: false, $webkit: false, $ms: false, $o: false, $khtml: false) + $experimental-support-for-mozilla: $moz + $experimental-support-for-webkit: $webkit + $experimental-support-for-microsoft: $ms + $experimental-support-for-opera: $o + $experimental-support-for-khtml: $khtml + +@mixin with-only-support-for($moz: false, $webkit: false, $ms: false, $o: false, $khtml: false) + // Capture the current state + $original-moz: $experimental-support-for-mozilla + $original-webkit: $experimental-support-for-webkit + $original-o: $experimental-support-for-opera + $original-ms: $experimental-support-for-microsoft + $original-khtml: $experimental-support-for-khtml + + @include set-experimental-support($moz, $webkit, $ms, $o, $khtml) + @content + @include set-experimental-support($original-moz, $original-webkit, $original-ms, $original-o, $original-khtml) + +@mixin keyframes($name) + @-moz-keyframes #{$name} + +with-only-support-for($moz: true) + @content + @-webkit-keyframes #{$name} + +with-only-support-for($webkit: true) + @content + @-o-keyframes #{$name} + +with-only-support-for($o: true) + @content + @keyframes #{$name} + +with-only-support-for + @content diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css index 1c54d6f47dd..4fb4496e692 100644 --- a/addons/website/static/src/css/editor.css +++ b/addons/website/static/src/css/editor.css @@ -195,13 +195,19 @@ ul.oe_menu_editor .disclose { text-align: left; } -.modal.nosave .modal-footer button.save { - display: none; -} -.modal.nosave .modal-footer button.wait { +.modal.nosave .wait { display: inline-block !important; visibility: visible !important; } +.modal.nosave .modal-body .filepicker, .modal.nosave .modal-body .image-preview { + display: none; +} +.modal.nosave .modal-body .wait { + width: 100%; +} +.modal.nosave .modal-footer .save { + display: none; +} .modal .font-icons-icons { font-size: 2em; diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index 3abfa4cff05..2e6513f7c1d 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -162,12 +162,17 @@ ul.oe_menu_editor .modal-footer text-align: left -.modal.nosave .modal-footer - button.save - display: none - button.wait +.modal.nosave + .wait display: inline-block !important visibility: visible !important + .modal-body + .filepicker, .image-preview + display: none + .wait + width: 100% + .modal-footer .save + display: none // fontawesome modal .modal diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css index 27c74508e7f..6610a98d0f1 100644 --- a/addons/website/static/src/css/website.css +++ b/addons/website/static/src/css/website.css @@ -1,4 +1,3 @@ -@charset "utf-8"; /* THIS CSS FILE IS FOR WEBSITE THEMING CUSTOMIZATION ONLY * * css for editor buttons, openerp widget included in the website and other diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index ab97ee2bcf9..43b2025e191 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -1265,7 +1265,7 @@ }), start: function () { - this.$('.modal-footer [disabled]').text("Uploading…"); + this.$('button.wait').text("Uploading…"); var $options = this.$('.image-style').children(); this.image_styles = $options.map(function () { return this.value; }).get(); @@ -1327,14 +1327,22 @@ this.set_image(url); }, preview_image: function () { - this.$el.removeClass('nosave'); + var loaded = function () { + this.$el.removeClass('nosave'); + }.bind(this); var image = this.$('input.url').val(); - if (!image) { return; } + if (!image) { loaded(); return; } - this.$('img.image-preview') + var $img = this.$('img.image-preview') .attr('src', image) .removeClass(this.image_styles.join(' ')) .addClass(this.$('select.image-style').val()); + + if ($img.prop('complete')) { + loaded(); + } else { + $img.load(loaded) + } }, browse_existing: function (e) { e.preventDefault(); diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml index 448c615bb07..1a860ec5f77 100644 --- a/addons/website/static/src/xml/website.editor.xml +++ b/addons/website/static/src/xml/website.editor.xml @@ -101,6 +101,7 @@ + + -- cgit v1.2.3 From 1ac9b4d20d0c549be3aa51c13ae4b1448334ff5b Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 10 Feb 2014 16:52:51 +0100 Subject: [IMP] website: banner tutorial: remove step about customize and promote bzr revid: chm@openerp.com-20140210155251-iyj3v06r18vexj7d --- addons/website/static/src/js/website.tour.banner.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'addons/website/static/src') diff --git a/addons/website/static/src/js/website.tour.banner.js b/addons/website/static/src/js/website.tour.banner.js index 7bcd4fbcbd1..e23ea01d0d6 100644 --- a/addons/website/static/src/js/website.tour.banner.js +++ b/addons/website/static/src/js/website.tour.banner.js @@ -109,20 +109,6 @@ placement: 'bottom', title: _t("Add new pages and menus"), content: _t("The 'Content' menu allows you to add pages or add the top menu."), - popover: { next: _t("Continue") }, - }, - { - element: '#customize-menu-button', - placement: 'bottom', - title: _t("Customize your pages"), - content: _t("The 'Customize' menu allows you to activate options and change the theme."), - popover: { next: _t("Continue") }, - }, - { - element: 'a[data-action="promote-current-page"]', - placement: 'bottom', - title: _t("Promote your website"), - content: _t("The 'Promote' menu allows you to promote each page for google and other search engines."), popover: { next: _t("Close Tutorial") }, }, ]; -- cgit v1.2.3 From d31504171c59a3aa2c596b774d41340acb2cce97 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 11 Feb 2014 09:54:50 +0100 Subject: [IMP] Pantone colors of the year bzr revid: fp@tinyerp.com-20140211085450-ny3pgidw5nobjc5x --- addons/website/static/src/css/website.css | 8 ++++---- addons/website/static/src/css/website.sass | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'addons/website/static/src') diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css index 80e223eed00..317d9193d94 100644 --- a/addons/website/static/src/css/website.css +++ b/addons/website/static/src/css/website.css @@ -399,7 +399,7 @@ div.carousel[data-snippet-id="slider"] .carousel-indicators .active { } .oe_green { - background-color: #51d466; + background-color: #169c78; color: white; } .oe_green .text-muted { @@ -407,7 +407,7 @@ div.carousel[data-snippet-id="slider"] .carousel-indicators .active { } .oe_blue_light { - background-color: #4791d2; + background-color: #41b6ab; color: white; } .oe_blue_light .text-muted { @@ -420,7 +420,7 @@ div.carousel[data-snippet-id="slider"] .carousel-indicators .active { } .oe_orange { - background-color: #e67e22; + background-color: #f05442; color: white; } .oe_orange .text-muted { @@ -436,7 +436,7 @@ div.carousel[data-snippet-id="slider"] .carousel-indicators .active { } .oe_red { - background-color: #f75353; + background-color: #9c1b31; color: white; } .oe_red .text-muted { diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass index cea00027315..2390464bfa7 100644 --- a/addons/website/static/src/css/website.sass +++ b/addons/website/static/src/css/website.sass @@ -328,13 +328,13 @@ div.carousel[data-snippet-id="slider"] color: white .oe_green - background-color: #51d466 + background-color: #169C78 color: white .text-muted color: #ddd .oe_blue_light - background-color: #4791d2 + background-color: #41b6ab color: white .text-muted color: #ddd @@ -344,7 +344,7 @@ div.carousel[data-snippet-id="slider"] color: white .oe_orange - background-color: #e67e22 + background-color: #f05442 color: white .text-muted color: #ddd @@ -356,7 +356,7 @@ div.carousel[data-snippet-id="slider"] color: #ddd .oe_red - background-color: #f75353 + background-color: #9C1b31 color: white .text-muted color: #ddd -- cgit v1.2.3 From 7e41345c02048af319d7b8ee137d790257f22812 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 11 Feb 2014 10:14:01 +0100 Subject: [IMP] reduce image size, faster preview bzr revid: fp@tinyerp.com-20140211091401-b3jvu4792bz1de0j --- addons/website/static/src/img/banner/aqua.jpg | Bin 378536 -> 49300 bytes addons/website/static/src/img/banner/baby_blue.jpg | Bin 163999 -> 16596 bytes addons/website/static/src/img/banner/black.jpg | Bin 73303 -> 9112 bytes .../website/static/src/img/banner/business_guy.jpg | Bin 34926 -> 22703 bytes .../website/static/src/img/banner/color_splash.jpg | Bin 401413 -> 45639 bytes addons/website/static/src/img/banner/flower.jpg | Bin 196723 -> 20419 bytes .../website/static/src/img/banner/flower_field.jpg | Bin 844406 -> 203912 bytes .../website/static/src/img/banner/greenfields.jpg | Bin 597610 -> 228764 bytes addons/website/static/src/img/banner/landscape.jpg | Bin 45032 -> 24666 bytes addons/website/static/src/img/banner/landscape.png | Bin 356235 -> 0 bytes addons/website/static/src/img/banner/mango.jpg | Bin 187365 -> 16965 bytes addons/website/static/src/img/banner/mountains.jpg | Bin 242394 -> 18226 bytes .../website/static/src/img/banner/orange_red.jpg | Bin 193196 -> 19722 bytes addons/website/static/src/img/banner/velour.jpg | Bin 296726 -> 44093 bytes addons/website/static/src/img/banner/wood.jpg | Bin 749156 -> 169563 bytes .../website/static/src/img/banner/yellow_green.jpg | Bin 230621 -> 27855 bytes 16 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 addons/website/static/src/img/banner/landscape.png (limited to 'addons/website/static/src') diff --git a/addons/website/static/src/img/banner/aqua.jpg b/addons/website/static/src/img/banner/aqua.jpg index 47ce77005d4..23f4bb820db 100644 Binary files a/addons/website/static/src/img/banner/aqua.jpg and b/addons/website/static/src/img/banner/aqua.jpg differ diff --git a/addons/website/static/src/img/banner/baby_blue.jpg b/addons/website/static/src/img/banner/baby_blue.jpg index 38a3d85bc28..d13c6683c1d 100644 Binary files a/addons/website/static/src/img/banner/baby_blue.jpg and b/addons/website/static/src/img/banner/baby_blue.jpg differ diff --git a/addons/website/static/src/img/banner/black.jpg b/addons/website/static/src/img/banner/black.jpg index 7aaee7a0fb4..800d529d032 100644 Binary files a/addons/website/static/src/img/banner/black.jpg and b/addons/website/static/src/img/banner/black.jpg differ diff --git a/addons/website/static/src/img/banner/business_guy.jpg b/addons/website/static/src/img/banner/business_guy.jpg index 691729beb7e..04551e6ae01 100644 Binary files a/addons/website/static/src/img/banner/business_guy.jpg and b/addons/website/static/src/img/banner/business_guy.jpg differ diff --git a/addons/website/static/src/img/banner/color_splash.jpg b/addons/website/static/src/img/banner/color_splash.jpg index 7033d3cb41f..a16cf2367ca 100644 Binary files a/addons/website/static/src/img/banner/color_splash.jpg and b/addons/website/static/src/img/banner/color_splash.jpg differ diff --git a/addons/website/static/src/img/banner/flower.jpg b/addons/website/static/src/img/banner/flower.jpg index 7208e4c99d9..ed33976aa38 100644 Binary files a/addons/website/static/src/img/banner/flower.jpg and b/addons/website/static/src/img/banner/flower.jpg differ diff --git a/addons/website/static/src/img/banner/flower_field.jpg b/addons/website/static/src/img/banner/flower_field.jpg index eec572fbb89..23bf90844b7 100644 Binary files a/addons/website/static/src/img/banner/flower_field.jpg and b/addons/website/static/src/img/banner/flower_field.jpg differ diff --git a/addons/website/static/src/img/banner/greenfields.jpg b/addons/website/static/src/img/banner/greenfields.jpg index 58c7bc49738..205406d24d4 100644 Binary files a/addons/website/static/src/img/banner/greenfields.jpg and b/addons/website/static/src/img/banner/greenfields.jpg differ diff --git a/addons/website/static/src/img/banner/landscape.jpg b/addons/website/static/src/img/banner/landscape.jpg index 35dfa6206c4..08a7f233cdd 100644 Binary files a/addons/website/static/src/img/banner/landscape.jpg and b/addons/website/static/src/img/banner/landscape.jpg differ diff --git a/addons/website/static/src/img/banner/landscape.png b/addons/website/static/src/img/banner/landscape.png deleted file mode 100644 index 27b1b92e048..00000000000 Binary files a/addons/website/static/src/img/banner/landscape.png and /dev/null differ diff --git a/addons/website/static/src/img/banner/mango.jpg b/addons/website/static/src/img/banner/mango.jpg index 9f88e2fb987..7582d4f548e 100644 Binary files a/addons/website/static/src/img/banner/mango.jpg and b/addons/website/static/src/img/banner/mango.jpg differ diff --git a/addons/website/static/src/img/banner/mountains.jpg b/addons/website/static/src/img/banner/mountains.jpg index 47e53c82c8c..7ea1ea48000 100644 Binary files a/addons/website/static/src/img/banner/mountains.jpg and b/addons/website/static/src/img/banner/mountains.jpg differ diff --git a/addons/website/static/src/img/banner/orange_red.jpg b/addons/website/static/src/img/banner/orange_red.jpg index 18838410c9f..3f7b2ebeaa9 100644 Binary files a/addons/website/static/src/img/banner/orange_red.jpg and b/addons/website/static/src/img/banner/orange_red.jpg differ diff --git a/addons/website/static/src/img/banner/velour.jpg b/addons/website/static/src/img/banner/velour.jpg index f3b0cf1d528..8a6b034b815 100644 Binary files a/addons/website/static/src/img/banner/velour.jpg and b/addons/website/static/src/img/banner/velour.jpg differ diff --git a/addons/website/static/src/img/banner/wood.jpg b/addons/website/static/src/img/banner/wood.jpg index 738ff955918..4554794ff19 100644 Binary files a/addons/website/static/src/img/banner/wood.jpg and b/addons/website/static/src/img/banner/wood.jpg differ diff --git a/addons/website/static/src/img/banner/yellow_green.jpg b/addons/website/static/src/img/banner/yellow_green.jpg index efd4dad9278..4d98768e8b0 100644 Binary files a/addons/website/static/src/img/banner/yellow_green.jpg and b/addons/website/static/src/img/banner/yellow_green.jpg differ -- cgit v1.2.3