From ef7327753c8de4503e35eae09ee3e86ea6be2362 Mon Sep 17 00:00:00 2001 From: decade Date: Sat, 2 Dec 2017 11:16:25 +0800 Subject: [PATCH] update scss import --- examples/docs/en-US/custom-theme.md | 4 ++-- examples/docs/zh-CN/custom-theme.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/docs/en-US/custom-theme.md b/examples/docs/en-US/custom-theme.md index 5fb6bdd59..bb85bea16 100644 --- a/examples/docs/en-US/custom-theme.md +++ b/examples/docs/en-US/custom-theme.md @@ -14,9 +14,9 @@ The above website enables you to preview theme of a new theme color in real-time $--color-primary: teal; /* icon font path, required */ -$--font-path: '../node_modules/element-ui/lib/theme-chalk/fonts'; +$--font-path: '~element-ui/lib/theme-chalk/fonts'; -@import "../node_modules/element-ui/packages/theme-chalk/src/index"; +@import "~element-ui/packages/theme-chalk/src/index"; ``` Then in the entry file of your project, import this style file instead of Element's built CSS: diff --git a/examples/docs/zh-CN/custom-theme.md b/examples/docs/zh-CN/custom-theme.md index f0152e3aa..567efb4c5 100644 --- a/examples/docs/zh-CN/custom-theme.md +++ b/examples/docs/zh-CN/custom-theme.md @@ -13,9 +13,9 @@ Element 的 theme-chalk 使用 SCSS 编写,如果你的项目也使用了 SCSS $--color-primary: teal; /* 改变 icon 字体路径变量,必需 */ -$--font-path: '../node_modules/element-ui/lib/theme-chalk/fonts'; +$--font-path: '~element-ui/lib/theme-chalk/fonts'; -@import "../node_modules/element-ui/packages/theme-chalk/src/index"; +@import "~element-ui/packages/theme-chalk/src/index"; ``` 之后,在项目的入口文件中,直接引入以上样式文件即可(无需引入 Element 编译好的 CSS 文件):