summaryrefslogtreecommitdiff
path: root/addons/website_event
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-05-28 10:04:42 +0000
committerqsm-odoo <qsm@odoo.com>2020-06-02 09:42:19 +0000
commit69190959ce8e08481be7ebdfefd314edf0c5dce1 (patch)
tree4932c4f0cec740088892afbc96e2fea6a791b10a /addons/website_event
parent6aa93a9c06b2599b5d1d9f4aedab185afb3234ee (diff)
[IMP] website, *: introduce new classes to color snippets
*: web, web_editor, website_blog, website_event New o_cc${xxx} classes where ${xxx} is a number [1-5] to style snippets: they come with a background color, a text color, headings colors, a link color, primary button colors and secondary button colors which will later be possible to customize by the user. The classes are made so that they are working on two levels. So if a column receives a color class and the snippet too, everything will work fine. More than 2 levels are not supported and the editor is made so those cases should not appear. See o_colored_level class. Part of https://github.com/odoo/odoo/pull/45856 task-2197038
Diffstat (limited to 'addons/website_event')
-rw-r--r--addons/website_event/static/src/scss/website_event.scss2
-rw-r--r--addons/website_event/views/event_templates.xml6
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_event/static/src/scss/website_event.scss b/addons/website_event/static/src/scss/website_event.scss
index 127874736f7..09f45c1a8d9 100644
--- a/addons/website_event/static/src/scss/website_event.scss
+++ b/addons/website_event/static/src/scss/website_event.scss
@@ -1,7 +1,7 @@
.o_wevent_index_topbar_filters {
.dropdown-toggle {
border: $border-width solid gray('400');
- @include o-bg-color(gray('white'), $with-muted: false);
+ @include o-bg-color(gray('white'), $with-extras: false);
@include border-radius($dropdown-border-radius);
@include hover-focus {
border-color: theme-color('primary');
diff --git a/addons/website_event/views/event_templates.xml b/addons/website_event/views/event_templates.xml
index 7a11d08bdcd..4b90c229f03 100644
--- a/addons/website_event/views/event_templates.xml
+++ b/addons/website_event/views/event_templates.xml
@@ -309,13 +309,13 @@
<a href="/event">
<figure class="o_wevent_sidebar_block o_wevent_sidebar_figure figure">
<img class="figure-img img-fluid rounded" src="/website_event/static/src/img/event_past_0.jpg" alt=""/>
- <figcaption class="figure-caption">A past event</figcaption>
+ <figcaption class="figure-caption text-muted">A past event</figcaption>
</figure>
</a>
<a href="/event">
<figure class="o_wevent_sidebar_block o_wevent_sidebar_figure figure">
<img class="figure-img img-fluid rounded" src="/website_event/static/src/img/event_training_0.jpg" alt=""/>
- <figcaption class="figure-caption">Our Trainings</figcaption>
+ <figcaption class="figure-caption text-muted">Our Trainings</figcaption>
</figure>
</a>
</xpath>
@@ -328,7 +328,7 @@
<div class="card-body">
<blockquote class="blockquote mb-0">
<p><em>Write here a quote from one of your attendees. It gives confidence in your events.</em></p>
- <footer class="blockquote-footer">Author</footer>
+ <footer class="blockquote-footer text-muted">Author</footer>
</blockquote>
</div>
</div>