From 8c5dda24801d5b95a6dc42ff30ded6fd699aba8c Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 24 Jan 2014 10:28:53 +0100 Subject: [PATCH] [FIX] website css: rev/fix: Page under construction css; Add a choice 'non' for background snippet bzr revid: chm@openerp.com-20140124092853-taal585yz4v7fh20 --- addons/website/static/src/css/website.css | 19 +++++++++++++++---- addons/website/static/src/css/website.sass | 20 +++++++++++++++----- addons/website/views/snippets.xml | 1 + 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css index ba04fed56f0..da599752679 100644 --- a/addons/website/static/src/css/website.css +++ b/addons/website/static/src/css/website.css @@ -1,3 +1,4 @@ +@charset "utf-8"; /* THIS CSS FILE IS FOR WEBSITE THEMING CUSTOMIZATION ONLY * * css for editor buttons, openerp widget included in the website and other @@ -162,19 +163,29 @@ footer { background-image: url("/website/static/src/img/drag_here.png"); } +.oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child { + background-image: none; + background-repeat: no-repeat; + background-position: center; + height: 220px !important; +} + .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child { position: static; } -.oe_structure.oe_editable.oe_empty:empty:before, .oe_editable[data-oe-type=html]:empty:before, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before { - content: "Drag Building Blocks Here"; -} - .oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before { content: " "; + text-align: center; display: block; padding-top: 160px; padding-bottom: 30px; + color: grey; + font-size: 24px; +} + +.oe_structure.oe_editable.oe_empty:empty:before, .oe_editable[data-oe-type=html]:empty:before, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before { + content: "Drag Building Blocks Here"; } .css_editable_display { diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass index fe85e5bdd4c..fe3bc6fde56 100644 --- a/addons/website/static/src/css/website.sass +++ b/addons/website/static/src/css/website.sass @@ -122,17 +122,27 @@ footer .oe_structure.oe_editable.oe_empty:empty, .oe_editable[data-oe-type=html]:empty, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child background-image: url('/website/static/src/img/drag_here.png') +.oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child + background-image: none /*url('/website/static/src/img/under_construction.png')*/ + background-repeat: no-repeat + background-position: center + height: 220px !important + .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child position: static +.oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before + content: ' ' + text-align: center + display: block + padding-top: 160px + padding-bottom: 30px + color: grey + font-size: 24px + .oe_structure.oe_editable.oe_empty:empty:before, .oe_editable[data-oe-type=html]:empty:before, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before content: 'Drag Building Blocks Here' -.oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before - content: ' ' - display: block - padding-top: 160px - padding-bottom: 30px .css_editable_display display: none diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index bc8abd9bb66..d788f2ecb68 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -942,6 +942,7 @@
  • Quote
  • +
  • None
  • Choose an image...