-
Notifications
You must be signed in to change notification settings - Fork 0
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
Namespace EP content zones so we can apply styles to links, etc. #52
Comments
Nit: I dislike the I'd prefer something like Tools like postcss-prefixer and/or posthtml-prefix-class could help us automate this? |
Sure! I'm totally fine changing it to a different prefix. One thing I do like about the current prefix is that it's unlikely anything else would be called
I'm open to using tools to help with prefixing if they make maintenance easier. |
The nice thing about using plugins is that you could customize the prefix if you wanted to! |
Ahh yeah that's a good point. Moving it to plugins would allow us to set it in one place instead of a bajillion places. |
One of the big challenges of this boilerplate is any styling we apply has to be namespaced so it doesn't leak into an end user's patterns and styles.
For the most part we do this with lots of classes starting with
EP_
. For example, we haveEP_nav
for our nav styles. This works well for HTML we're writing, but not so well for markdown.Markdown is processed and output without any special classes so it's difficult for us to apply styles to these content sections. We should wrap content sections in an EP class so we can style elements within them. For example we could have an
EP_prose
class and then write CSS like this:The text was updated successfully, but these errors were encountered: