Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Adjust content classes depending on if there is a sidebar #27

Open
rvtraveller opened this issue Sep 1, 2022 · 1 comment
Open

Adjust content classes depending on if there is a sidebar #27

rvtraveller opened this issue Sep 1, 2022 · 1 comment

Comments

@rvtraveller
Copy link

There is at least 1 place in the templates where it is assumed that the main content area should always be 75% of the width, even if the sidebar is empty. This in particular is a challenge for pages with embedded content (for example, embedding University maps) where having every inch of available width is beneficial to the user.

Perhaps we can conditionally set the class on that wrapper div to col-800-12 when there is no sidebar?

@drogers98
Copy link
Collaborator

@rvtraveller I believe this was a design choice, to keep the page constrained, and centered. I agree with your recommendation but am unsure if we could implement this change without UMD DIT approving/reviewing/agreeing to it first.

You could always create a child theme, and override this template, if desired.

Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants