Closed rupertj closed 3 months ago
Hi,
I'd prefer the HTML and CSS for this to be in this theme rather than in the module. We can add HTML and CSS to the module as well if we want so that it works even if localgov_base
is not the base theme being used.
Keep the variables here means we can place them all in the variables.css file for consistency, and it will make it easier for sub-themes to find them and override them.
Hi @markconroy The HTML and CSS in the three commits are examples though and don't do anything unless a menu called 'subsites' is created. They will have to be overridden/re-created for whatever the specific implementation calls its menus.
Hi @dedavidson,
Yep, I've noticed that. I'm doing a rewrite of this PR at the moment, hoping to have something ready for it by EOD today, if not, I'll definitely have it ready over the weekend.
The HTML and CSS in the three commits are examples though and don't do anything unless a menu called 'subsites' is created. They will have to be overridden/re-created for whatever the specific implementation calls its menus.
Subsites extras does create a menu called 'subsites' by default on install now.
I've a pretty major re-write of this done now if anyone wants to review it.
I've no JS done yet. Let's get this reviewed and merged and I'll get the JS done then.
Also, related PR: https://github.com/localgovdrupal/localgov_scarfolk/pull/36 (it's just one line of code)
A few small updates since Friday, and the JS added for the menu to toggle on/off on small screens.
I was in two minds about that myself.