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

This is a suggestion #434

Closed
4 tasks done
trry-hub opened this issue Oct 31, 2021 · 3 comments
Closed
4 tasks done

This is a suggestion #434

trry-hub opened this issue Oct 31, 2021 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@trry-hub
Copy link

trry-hub commented Oct 31, 2021

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

When I use Element-Plus in VitePress, the partial style of the component is modified. The reason is VitePress src/client/theme-default/styles/layout.css File reset all styles.

image

image

Describe the solution you'd like

I hope this code only takes effect in VitePress.

Describe alternatives you've considered

No response

Additional context

No response

Validations

@trry-hub
Copy link
Author

trry-hub commented Nov 4, 2021

@kiaking

@brc-dd
Copy link
Member

brc-dd commented Jan 13, 2022

The order of style imports matter. Try doing it like this:

// .vitepress/theme/index.ts
import DefaultTheme from 'vitepress/theme';
import 'element-plus/dist/index.css';

// ...

@kiaking
Copy link
Member

kiaking commented May 23, 2022

Duplicate of #199

@kiaking kiaking marked this as a duplicate of #199 May 23, 2022
@kiaking kiaking closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2022
@kiaking kiaking added the duplicate This issue or pull request already exists label May 23, 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

3 participants