mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_responsive: public message chatter color
We give a color clue to the users so they can better tell if they're sending an internal note or a public message. Dislaimer: we use the `has()` pseudo class mainly because is simpler to implement and the support is quite extended right now. Even Firefox will catch up soon (now it has support behing a config flag). So users with compatible browser will enjoy it, while others will just stay as they were. TT44953
This commit is contained in:
@@ -464,3 +464,13 @@ html .o_web_client .o_action_manager .o_action {
|
||||
ul.ui-autocomplete .dropdown-item.ui-menu-item-wrapper {
|
||||
white-space: initial;
|
||||
}
|
||||
|
||||
// Color clue to tell the difference between a note and a public message
|
||||
.o_Chatter_composer {
|
||||
// HACK: has() pseudo class is broadly supported in desktop, even FF will deploy
|
||||
// full support soon (now it's available behind a config flag)
|
||||
// https://caniuse.com/css-has
|
||||
&:has(div.o_Composer_coreHeader) {
|
||||
background-color: lighten($o-brand-primary, 40%);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user