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

Allow excluding styles for tags like h2 in vp-doc #808

Closed
4 tasks done
jd-solanki opened this issue Jun 18, 2022 · 2 comments
Closed
4 tasks done

Allow excluding styles for tags like h2 in vp-doc #808

jd-solanki opened this issue Jun 18, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@jd-solanki
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I am rendering components in .vp-doc and my component's h2 gets style of VitePress which I don't want.

Describe the solution you'd like

Add class not-vp-doc to omit applying styles

Describe alternatives you've considered

none

Additional context

I checked the source and found that all styles are written in CSS and it isn't quick to apply the :not() selector because there's list of vp-doc class usage and I might break something in hurry.

I am in hurry hence creating this issue instead of PR.

Will the team going to use SCSS in favor or refactor?

Validations

@jd-solanki
Copy link
Contributor Author

Related #199

@kiaking
Copy link
Member

kiaking commented Jun 21, 2022

If you're in hurry, please use custom css with !important or something like that for a quick fix.

Let's continue discuss the issue in #199 👍

@kiaking kiaking closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2022
@kiaking kiaking added the duplicate This issue or pull request already exists label Jun 21, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants