Comments

barraponto’s picture

Title: Homepage responsiveness fails below 780px » Breaks non-layouted pages
Project: radix » Radix Layouts
Version: 7.x-3.x-dev » 7.x-3.0-alpha1

I think Radix Layouts shouldn't add its CSS unless required.

shadcn’s picture

I was actually working on this bug yesterday. I'll push.

Do you have a screenshot or steps to reproduce?

Thanks

barraponto’s picture

Status: Active » Needs review
StatusFileSize
new153.65 KB

I've got better: a patch :D

The issue is that radix_layouts.css applies styles to .container, which is used by Bootstrap (and added in radix's page.tpl.php). My patch avoids adding radix_layouts.css by default, instead declares the CSS to be used in the layout plugin (using hook_ctools_plugin_pre_alter because adding the css key to every single layout plugin would be a pain).

BTW, come back to #panopoly on IRC

shadcn’s picture

Status: Needs review » Needs work

Thanks for the patch Capi.

The problem with this approach is that if you have custom layouts in your module then this does not get executed.

if ($info['type'] == 'layouts' && $plugin['module'] == 'radix_layouts') {
    //
}
barraponto’s picture

Well, if you have custom layouts in another module, add the CSS from the other module (drupal_get_path will be useful).

barraponto’s picture

Status: Needs work » Needs review
StatusFileSize
new1.36 KB

No really, no idea what went into that patch of mine. Here's a sane patch.

PI_Ron’s picture

I think an issue I am seeing may be related to this. Please see attached screenshots of site layouts after enabling radix_core & dependencies (with & without radix theme & subtheme enabled).

Disabling radix modules fixes the layout.

barraponto’s picture

I'll really need steps to reproduce this error. And try not to use Radix_Core right now, because I don't think it's up to date.

PI_Ron’s picture

So just download radix_layouts & radix_admin manually?

PI_Ron’s picture

@barraponto please see my comment #15 & #16 in this issue, they have steps I took to produce this error, including using radix_core:

https://drupal.org/comment/8602937#comment-8602937

PI_Ron’s picture

Which version is this patch meant to be applied to?

PI_Ron’s picture

After some testing it appears the layout overlapping issues mentioned in https://drupal.org/comment/8602937#comment-8602937 only appear when using Panopoly 1.2

I've reverted Panopoly to 1.1 and the layouts are working fine.

shadcn’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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