I propose to add a CSS class if the floating block is fixed.
Such a CSS class allows to style a fixed floating block, e.g. set higher z-index, or increase the margins.

CommentFileSizeAuthor
floating_fixed.patch608 bytesscito

Comments

beluedog’s picture

elgandoz’s picture

Easy and effective!!! A lot better than [extra_settings] stuff (only "top" and "left"!).
Many many thanks!

davemybes’s picture

Status: Needs review » Reviewed & tested by the community

Heh, I just did the exact same code and was checking to see if someone had requested something so I could submit a patch. So I can confirm that this works and allows you to style the floating block separately from the regularly positioned block. The only possible suggestion would be to name the CSS class something like floating-block-active i.e. use the module name to minimize any namespace collisions.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

I agree with #3 the class should be called "floating-block-active"... pushed to 6.x and 7.x.

Thanks for the work!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.