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

docs(cn): features/important-prefix translation #23

Merged
merged 2 commits into from
May 31, 2021

Conversation

HerbertHe
Copy link
Collaborator

No description provided.

@HerbertHe HerbertHe changed the title Translate importantprefix docs(cn): features/important-prefix translation May 28, 2021
@HerbertHe HerbertHe mentioned this pull request May 28, 2021
88 tasks

You can prefix any utility classes with `!` to make them as `!important`. This could be very useful when you want to override previous styling rules for that specific property.
你可以在任意工具类的前面使用 `!` 前缀,使它们变为 `!important`。当你想覆盖之前的样式规则中指定的属性时,这个会非常有用。
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
你可以在任意工具类的前面使用 `!` 前缀,使它们变为 `!important`。当你想覆盖之前的样式规则中指定的属性时,这个会非常有用。
你可以在任意所用类的前面使用 `!` 前缀,使它们变为 `!important`。当你想覆盖之前的样式规则中指定的属性时,这个会非常有用。

utility classes 在这里翻译为工具类的话,会不会和之前讨论的 utilities 冲突呢?参考 #8 (comment)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

我感觉是不冲突的,因为utilities本来其实也是工具类的意思。这里 utility classes 指代的也是在 class 中使用的工具类,其实没差别

@KimYangOfCat KimYangOfCat merged commit 0a10857 into windicss:main May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants