-
Notifications
You must be signed in to change notification settings - Fork 3
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
translate using-with-preprocessors #129
Conversation
|
||
If you're using Tailwind for a brand new project and don't need to integrate it with any existing Sass/Less/Stylus stylesheets, you should highly consider relying on other PostCSS plugins to add the preprocessor features you use instead of using a separate preprocessor. | ||
<!-- This has a few benefits: --> | ||
這樣有以下幾個好處: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
全形冒號
@@ -150,10 +150,10 @@ module.exports = { | |||
### 巢狀 | |||
|
|||
<!-- To add support for nested declarations, we recommend our bundled `tailwindcss/nesting` plugin, which is a PostCSS plugin that wraps [postcss-nested](https://github.com/postcss/postcss-nested) or [postcss-nesting](https://github.com/jonathantneal/postcss-nesting) and acts as a compatibility layer to make sure your nesting plugin of choice properly understands Tailwind's custom syntax like `@apply` and `@screen`. --> | |||
為了替巢狀定義增加支持,我們建議使用我們綑綁的 `tailwindcss/nesting` 插件。此插件包了[postcss-nested](https://github.com/postcss/postcss-nested)或[postcss-nesting](https://github.com/jonathantneal/postcss-nesting),且做為相容層以確保你選用的巢狀插件能充分了解 Tailwind 客製的語法,像 `@apply` and `@screen`。 | |||
為了替巢狀定義增加支持,我們建議使用我們綑綁的 `tailwindcss/nesting` 插件。此插件包了 [postcss-nested](https://github.com/postcss/postcss-nested)或[postcss-nesting](https://github.com/jonathantneal/postcss-nesting),且做為相容層以確保你選用的巢狀插件能充分了解 Tailwind 客製的語法,像 `@apply` and `@screen`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
第二個連結前面沒有空白
@@ -168,10 +168,10 @@ module.exports = { | |||
``` | |||
|
|||
<!-- By default, it uses the [postcss-nested](https://github.com/postcss/postcss-nested) plugin under the hood, which uses a Sass-like syntax and is the plugin that powers nesting support in the [Tailwind CSS plugin API](/docs/plugins#css-in-js-syntax). --> | |||
它使用了類-Sass 語法,事實上就是預設使用[postcss-nested](https://github.com/postcss/postcss-nested)插件,提供了[Tailwind CSS plugin API](/docs/plugins#css-in-js-syntax)的巢狀支持。 | |||
它使用了類-Sass 語法,事實上就是預設使用 [postcss-nested](https://github.com/postcss/postcss-nested)插件,提供了[Tailwind CSS plugin API](/docs/plugins#css-in-js-syntax)的巢狀支持。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
第二個連結前面沒有空白
|
||
<!-- If you'd rather use [postcss-nesting](https://github.com/jonathantneal/postcss-nesting) (which is based on the work-in-progress [CSS Nesting](https://drafts.csswg.org/css-nesting-1/) specification), first install the plugin: --> | ||
如你寧可使用[postcss-nesting](https://github.com/jonathantneal/postcss-nesting)(以開發中的[CSS Nesting](https://drafts.csswg.org/css-nesting-1/)規範為基礎),首先安裝: | ||
如你寧可使用 [postcss-nesting](https://github.com/jonathantneal/postcss-nesting)(以開發中的[CSS Nesting](https://drafts.csswg.org/css-nesting-1/)規範為基礎),首先安裝: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
第二個連結前面沒有空白
@@ -246,13 +246,13 @@ You may also find that most of the things you've used variables for in the past | |||
``` | |||
|
|||
<!-- Learn more about the `theme()` function in our [functions and directives documentation](/docs/functions-and-directives#theme); --> | |||
更多有關 `theme()` 函式的資訊,可參考[函式跟指令文件](/docs/functions-and-directives#theme)。 | |||
更多有關 `theme()` 函式的資訊,可參考 [函式跟指令文件](/docs/functions-and-directives#theme)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
前文和連結都是中文,不需空白
For the most cohesive development experience, it's recommended that you [use PostCSS exclusively](#using-post-css-as-your-preprocessor). | ||
為了得到最有系統的開發體驗,推薦你[唯一使用 PostCSS](#using-post-css-as-your-preprocessor) | ||
<!-- For the most cohesive development experience, it's recommended that you [use PostCSS exclusively](#using-post-css-as-your-preprocessor). --> | ||
為了得到最有系統的開發體驗,推薦你 [唯一使用 PostCSS](#using-post-css-as-your-preprocessor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
中文連結前面不需空白
No description provided.