summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/rainbow.less
AgeCommit message (Collapse)Author
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.
2017-12-01[FIX] web: rainbow man followed by error dialogqsm-odoo
The rainbow man should not be marked to be on top of every modal, just the modals that were opened before its apparition. opw-781102
2017-11-13[FIX] web: remove slow css ruleGéry Debongnie
We do not take CSS seriously enough, but it has an impact on rendering speed. The rule removed in this commit slowed down the Qunit JS test suite by a considerable amount: With a fresh db with no extra addon installed, community version: - in chrome, before this commit: 103.2s, with this commit: 54.8s - in firefox, before this commit: 194.9s, with this commit: 117.7s This is due to the way rendering is done in web browser. They start checking css rules from the right, so the *:nth-last-child(2) rule was checked for every element in the dom, each time it was added/modified. Note that the rule just above (*:first-child) had no noticeable impact, but I still think that the universal css selector should still be avoided in general. The fun part is that I did not find the place where this rule was supposed to be applied. I assume that it is just a dead rule. If this is not the case, we can reintroduce the margin-top with the class mt0, applied on the specific element.
2017-09-20[FIX] web: smaller rainbow man on mobileMahendra barad
to prevent it from overflowing the view port
2017-07-12[ADD] web, *: add rainbowificationDharmraj Jhala
This commit introduces the 'rainbowification' feature to the web client (and to some affected addons). This feature is essentially a way to display a nice friendly message when some business event happens. For example, a encouraging message is displayed when the user clear her/his inbox, or when a salesman closes a deal. The mechanism currently only displays a 'rainbowman', but could be extended later to add other kind of animation. There are a few different ways to display a 'rainbowman': - any JS code can simply trigger_up an event ('show_effect') with some options: for example this.trigger_up('show_effect', { type: 'rainbow_man', fadeout: 'no', message: $done, click_close: false, }); - an action returned by the server can have an 'effect' key, with some options - the do_execute_action method accepts a 'effect' option. This is useful when one wants to specify a rainbow on an action button in a form view Joint work with: dbh <dbh@odoo.com>, ged <ged@odoo.com>