[IMP] website_event_online: add some CSS tools / fixes
RATIONALE
Events are sometimes held online, gathering a community. In this merge we
improve Event application to better support full-online events with improved
tracks, wishlists, chat rooms, ...
SPECIFICATIONS
Add some common CSS to be used in several new modules that will use a "aside
panel / main content" like display. This will be used for
* exhibitor: display exhibitors list (cards) / page view (main content of
exhibitor with jitsi + suggestions on left);
* tracks: display track list (cards + list) / page view (main content of
track, with youtube and/or quiz + suggestions on left);
* community: display room list (cards) / page view (main content of room
with jitsi + suggestions on left);
Incoming modules will soon use this SCSS.
LINKS
Community PR #53540
Enterprise PR odoo/enterprise#11384
Task ID-2252655 (Main Online Event task)
Task ID-2283796 (Event B2Basics / Registration Flow)
Task ID-2299857 (Event Design Review)
Task ID-2284043 (Visitor-based track wishlist)
Task ID-2283738 (Sponsors -> Exhibitors upgrade)
Task ID-2283735 (Talks -> Session upgrade)
Task ID-2283742 (Community gathering on chat rooms)
Co-Authored-By: Aurélien Warnon <awa@odoo.com>
Co-Authored-By: David Beguin <dbe@odoo.com>
Co-Authored-By: Thibault Delavallée <tde@odoo.com>
This commit is contained in:
co-authored by
Aurélien Warnon
David Beguin
parent
b3d2df460f
commit
a0892ad39e
@@ -2,6 +2,14 @@
|
||||
|
||||
.o_wevent_index, .o_wevent_event {
|
||||
|
||||
// Text Ellipsis for Event title in mobile mode
|
||||
nav > div > a.navbar-brand {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
max-width: calc(100% - 80px);
|
||||
}
|
||||
|
||||
// Simple colored tags according to assigned background color
|
||||
@for $size from 1 through length($o-colors) {
|
||||
.o_tag_color_#{$size - 1} {
|
||||
@@ -48,4 +56,75 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* COMMON TO ALL ONLINE-* PAGES
|
||||
*/
|
||||
|
||||
.o_wevent_online {
|
||||
// unpublished badge: put opacity to distinguish form other badges
|
||||
.o_wevent_online_badge_unpublished{
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
&.o_wevent_online_bg {
|
||||
@if (color('body') == $o-portal-default-body-bg) {
|
||||
@extend .bg-100;
|
||||
}
|
||||
}
|
||||
|
||||
.o_wevent_online_page_container {
|
||||
// Widescreen mode
|
||||
@include media-breakpoint-up(md) {
|
||||
&:not(.container) {
|
||||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
// Main panel
|
||||
.o_wevent_online_page_main {
|
||||
border: 1px solid $border-color;
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
border-top-width: 0;
|
||||
}
|
||||
|
||||
.o_wevent_online_page_avatar {
|
||||
min-width: 64px;
|
||||
|
||||
img {
|
||||
max-width: 96px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Left panel
|
||||
.o_wevent_online_page_aside {
|
||||
|
||||
// Left panel: content display
|
||||
.o_wevent_online_page_aside_content {
|
||||
border: 1px solid $border-color;
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
border-top-width: 0;
|
||||
}
|
||||
|
||||
li:not(.nav-item) {
|
||||
border-bottom: 1px solid $border-color;
|
||||
&:first-child {
|
||||
border-top: 1px solid $border-color;
|
||||
}
|
||||
&:last-child {
|
||||
border-bottom: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.o_wevent_online_page_aside_collapse:not(.collapsed) {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user