Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
ef732775
Commit
ef732775
authored
Dec 02, 2017
by
decade
Committed by
杨奕
Dec 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update scss import
parent
0e478016
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
examples/docs/en-US/custom-theme.md
examples/docs/en-US/custom-theme.md
+2
-2
examples/docs/zh-CN/custom-theme.md
examples/docs/zh-CN/custom-theme.md
+2
-2
No files found.
examples/docs/en-US/custom-theme.md
View file @
ef732775
...
@@ -14,9 +14,9 @@ The above website enables you to preview theme of a new theme color in real-time
...
@@ -14,9 +14,9 @@ The above website enables you to preview theme of a new theme color in real-time
$--color-primary: teal;
$--color-primary: teal;
/* icon font path, required */
/* 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:
Then in the entry file of your project, import this style file instead of Element's built CSS:
...
...
examples/docs/zh-CN/custom-theme.md
View file @
ef732775
...
@@ -13,9 +13,9 @@ Element 的 theme-chalk 使用 SCSS 编写,如果你的项目也使用了 SCSS
...
@@ -13,9 +13,9 @@ Element 的 theme-chalk 使用 SCSS 编写,如果你的项目也使用了 SCSS
$--color-primary: teal;
$--color-primary: teal;
/* 改变 icon 字体路径变量,必需 */
/* 改变 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 文件):
之后,在项目的入口文件中,直接引入以上样式文件即可(无需引入 Element 编译好的 CSS 文件):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment