From 5ccdef06a70ce628ee7a4ce6e5e16c8690786250 Mon Sep 17 00:00:00 2001 From: Adrien Schoffeniels Date: Mon, 2 May 2022 09:16:33 +0000 Subject: [PATCH] [IMP] website_event: lower footer on event pages PURPOSE: This commit adds a min-height property to event pages so that the footer does not take the entirety of the screen when a page has little content. To not have a strange empty space on the booth event page when no booth is set or when the event is finished, the related error messages are now displayed below the cover instead of inside it. It also removes the default grey background on some templates, so that the theme background color is used instead. Task-2831951 closes odoo/odoo#89602 Signed-off-by: Thibault Delavallee (tde) --- .../src/scss/event_templates_common.scss | 7 ---- .../static/src/scss/event_templates_page.scss | 6 ++++ .../views/event_booth_templates.xml | 35 +++++++++---------- .../views/event_exhibitor_templates_list.xml | 2 +- .../views/event_exhibitor_templates_page.xml | 2 +- .../views/event_meet_templates_list.xml | 2 +- .../views/event_meet_templates_page.xml | 2 +- .../views/event_track_templates_page.xml | 2 +- 8 files changed, 28 insertions(+), 30 deletions(-) diff --git a/addons/website_event/static/src/scss/event_templates_common.scss b/addons/website_event/static/src/scss/event_templates_common.scss index 882539acbe4..19aa8a17a03 100644 --- a/addons/website_event/static/src/scss/event_templates_common.scss +++ b/addons/website_event/static/src/scss/event_templates_common.scss @@ -92,13 +92,6 @@ .o_wevent_online_badge_unpublished{ opacity: 0.4; } - - &.o_wevent_online_bg { - @if (color('body') == $o-portal-default-body-bg) { - @extend .bg-100; - } - } - // background color-based for new styling .event_color_0 { // bg-100 background but DO NOT extend bg-100 as it messes with text-muted colors diff --git a/addons/website_event/static/src/scss/event_templates_page.scss b/addons/website_event/static/src/scss/event_templates_page.scss index 97dc25b289e..da9a862444a 100644 --- a/addons/website_event/static/src/scss/event_templates_page.scss +++ b/addons/website_event/static/src/scss/event_templates_page.scss @@ -1,4 +1,10 @@ +.o_connected_user .o_wevent_event { + min-height: calc(98vh - 110px) +} + .o_wevent_event { + min-height: calc(98vh - 70px); + // Multi-line event title, even in mobile mode nav > div > a.navbar-brand { text-overflow: revert; diff --git a/addons/website_event_booth/views/event_booth_templates.xml b/addons/website_event_booth/views/event_booth_templates.xml index 30433932b26..598c56ab8ef 100644 --- a/addons/website_event_booth/views/event_booth_templates.xml +++ b/addons/website_event_booth/views/event_booth_templates.xml @@ -13,24 +13,6 @@

Get A Booth

-
- This event is finished. It's no longer possible to book a booth. -
-
- This event is not open to exhibitors registration, - - you can - - Configure Booths - - for this event. - - - check our list of future events. - - -
-
@@ -40,6 +22,23 @@
+
+ This event is finished. It's no longer possible to book a booth. +
+
+ This event is not open to exhibitors registration, + + you can + + Configure Booths + + for this event. + + + check our list of future events. + + +
diff --git a/addons/website_event_exhibitor/views/event_exhibitor_templates_list.xml b/addons/website_event_exhibitor/views/event_exhibitor_templates_list.xml index 8710c59ad87..ae68feb252f 100644 --- a/addons/website_event_exhibitor/views/event_exhibitor_templates_list.xml +++ b/addons/website_event_exhibitor/views/event_exhibitor_templates_list.xml @@ -3,7 +3,7 @@