Closed (fixed)
Project:
Floating block
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2012 at 20:05 UTC
Updated:
14 Jan 2013 at 11:50 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| floating_fixed.patch | 608 bytes | scito |
Comments
Comment #1
beluedog commentedComment #2
elgandoz commentedEasy and effective!!! A lot better than [extra_settings] stuff (only "top" and "left"!).
Many many thanks!
Comment #3
davemybes commentedHeh, 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.
Comment #4
alexpottI agree with #3 the class should be called "floating-block-active"... pushed to 6.x and 7.x.
Thanks for the work!