I would like the BEF checkboxes to be laid out vertically in some cases and horizontally in others. I found a discussion where the following css does lay out the checkboxes inline (horizontally)
.bef-checkboxes .form-item {
float: left;
}
But the impact is site-wide. Does anyone know of a way to style a BEF filter on a specific view? In some cases the filter might be in a block, and in others not. I think there are ways to style specific blocks and that might be a solution for some instances. But particularly for horizontal filters a block may not be the best host.
It would be ideal if BEF included a layout setting (H or V) which would impact just the specific view/filter. It is a very useful module, thank you.
Comment | File | Size | Author |
---|---|---|---|
#5 | better_exposed_filters-horizontal_checkboxes-3102468-5.patch | 3.17 KB | mortona2k |
#3 | better_exposed_filters-horizontal_checkboxes-3102468-3.patch | 2.57 KB | mortona2k |
Comments
Comment #2
mortona2k CreditAttribution: mortona2k commentedI'm bumping this to 4.x. I think we can add an option to the plugin to set checkboxes to be inline.
The bef css has:
This makes it so not all .form-item(s) inside .form--inline are inline, only ones directly inside the form. I'm not sure if this is the best approach to set this option, but we can add .form--inline to the checkboxes wrapper.
Comment #3
mortona2k CreditAttribution: mortona2k commentedComment #4
Etroid CreditAttribution: Etroid commented@mortona2k thanks for the issue and patch. Can we also apply this to radio buttons?
Comment #5
mortona2k CreditAttribution: mortona2k commentedThis patch extends to radios.
Comment #6
Etroid CreditAttribution: Etroid commented@mortona2k, looks good to me. Going to commit to 8.x-4.x-dev branch
Comment #8
Etroid CreditAttribution: Etroid commentedComment #10
Neeraj420 CreditAttribution: Neeraj420 as a volunteer commentedCan we have this for 7.x version also please.