Skip to content

Conversation

@foxbunny
Copy link
Collaborator

@foxbunny foxbunny commented Oct 1, 2025

I was preparing to do some layout changes to do some layout changes to the conference page, but noticed the themes had quite a few overrides and wasn't very clear what the relationship was between them. I cleaned them up using CSS variables. Tried not to change the look of the themes so there's still some overrides here and there that are inconsistent between the themes. Should make theming a lot easier, though.

@ThiefMaster
Copy link
Member

Nice!

Just be aware that many conference organizers provide their own CSS to theme the conference.
But AFAICT your PR is unlikely to break any such customizations, because all you did was moving values to CSS vars which would actually make it easier to customize them (just setting vars instead of replicating the actual css rules)

@ThiefMaster
Copy link
Member

However, for further changes to the conference page structure that involves touching the HTML structure etc, you'd need to be very careful about not breaking customizations. If needed I can check our database for certain things.

In fact, depending on the changes, we might want to see whether to only apply it to new events (and maybe old events w/o CSS customization), e.g. by introducing an internal event setting and setting this for any event w/ custom CSS to use the current structure instead.

@foxbunny
Copy link
Collaborator Author

foxbunny commented Oct 2, 2025

In general, I don't intend to mess with HTML at all (unless I hit some kind of snag), but anyway I'll be sure to note any changes I make.

min-height: 90px;
text-align: left;
background: #1a64a0;
border-top: 3px solid var(--conf-theme-header-border-top);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This 3px border looks quite out of place IMHO. It was previously only set in the non-standard themes and the standard.css which is a bit misleading because it's the "you can download this as a starting point" css file which is never used directly by indico.

Comment on lines 1 to 4
/*
Use this stylesheet to modify the layout of your
conference.
*/
Copy link
Member

@ThiefMaster ThiefMaster Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering this, I would replicate all the CSS vars, maybe commented-out, in here.
And also keep commented-out (or empty) CSS rules for the elements that people might want to change beyond just coloring.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS rules for the elements that people might want to change beyond just coloring.

What do you have in mind?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After looking at it again, maybe just the CSS vars are enough. If people need to do something fancier they can just use devtools to look for the classes...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the updated version and let me know if that's what you meant.

@foxbunny foxbunny force-pushed the conf-theme-factoring branch 3 times, most recently from 3aa8ade to 768ad3e Compare October 2, 2025 12:46
/* Background images */
--conf-theme-sprite-image: url(static:images/conf/sprites_blue.png);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd remove this one here, because special URLs like static:... are not supported in custom CSS

Suggested change
/* Background images */
--conf-theme-sprite-image: url(static:images/conf/sprites_blue.png);

--conf-theme-header-border-top: #234173;
--conf-theme-header-border-bottom: #0f4c80;
--conf-theme-header-text: white;
--conf-theme-header-border-top-width: 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd move this right before/after --conf-theme-header-border-top since they're related

--conf-theme-header-border-top: #234173;
--conf-theme-header-border-bottom: #0f4c80;
--conf-theme-header-text: white;
--conf-theme-header-border-top-width: 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be 3px in brown.css and orange.css? That's what these themes have right now (even though they are very rarely used)...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we take this opportunity to remove those themes? Assuming no recent-ish events use them..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I've seen at least one event using one of them recently... I don't think they provide much value but at the same time there's also no harm nor a significant maintenance burden in having them

@foxbunny foxbunny force-pushed the conf-theme-factoring branch from aae6ba0 to da3b0d7 Compare October 14, 2025 02:06
@foxbunny foxbunny requested a review from ThiefMaster October 24, 2025 03:05
@foxbunny foxbunny force-pushed the conf-theme-factoring branch from da3b0d7 to 3134647 Compare October 24, 2025 03:07
foxbunny and others added 4 commits October 27, 2025 09:16
@ThiefMaster ThiefMaster added this to the v3.3 milestone Oct 27, 2025
@ThiefMaster ThiefMaster merged commit 77e1cf7 into indico:master Oct 27, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants