Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom CSS classes for blocks of content #857

Open
joachimlebovits opened this issue Jan 16, 2024 · 4 comments
Open

Support custom CSS classes for blocks of content #857

joachimlebovits opened this issue Jan 16, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@joachimlebovits
Copy link

joachimlebovits commented Jan 16, 2024

For authors that want more customizability in the outputs of their content, they'd benefit from being able to attach custom CSS classes to blocks of content (paragraphs, images, roles and directives, etc). This could then be styled with custom CSS rules.

Related issues

Inspiration

Edited by @choldgraf

@joachimlebovits joachimlebovits added the enhancement New feature or request label Jan 16, 2024
Copy link

welcome bot commented Jan 16, 2024

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@choldgraf
Copy link
Collaborator

I'm running into this limitation as well. I think two things would be helpful here:

  1. Guidance for how we can include a custom CSS file (ideally SCSS) with our builds.
  2. Guidance for how to add CSS classes/ids to objects on a page, or otherwise how to give them unique names that we can use CSS to select on.

For example my use-case is that I'd like to use the :::{card} functionality to create "big cards with numbers", and needed to use CSS because the {card} directive doesn't include the ability to use bootstrap's classes to modify font size etc.

@lwasser
Copy link
Contributor

lwasser commented Aug 10, 2024

+1 on this request. We'd like to use mystmd to host pyOpenSci's peer review metrics and also in the future lessons similar to what pythia is doing. we will want to theme mystmd to align with our pyOS brand. Is this feature something that is on the radar for mystmd? ✨

@choldgraf choldgraf changed the title Good support for custom css classes Support custom CSS classes for blocks of content Aug 11, 2024
@choldgraf
Copy link
Collaborator

I've updated the top comment with some more context, FYI.

I think this issue is also related to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants