element-theme-default
element component defualt theme.
Installation
npm i element-theme-default -S
Usage
Use Sass Or postcss-import
@import 'element-theme-default';
Or Use webpack
import 'element-theme-default';
Or
<link rel="stylesheet" href="path/to/node_modules/element-theme-default/lib/index.css">
Import your need
import 'element-theme-default/lib/input.css';
import 'element-theme-default/lib/select.css';
// ...
编译主题时提示找不到 vue-popup/lib/popup.css
版本说明
"element-ui": "^1.0.2"
"element-theme": "^0.2.0"
"element-theme-default": "^1.0.2"
执行
node_modules/.bin/et
命令时报错提示:Error: ENOENT: no such file or directory, open 'xxx/node_modules/element-theme-default/src/vue-popup/lib/popup.css'
--submenu-item-fill is never applied
I didn't find any
--submenu-item-fill
references intheme-default
menu css src: https://github.com/ElemeFE/element/blob/dev/packages/theme-default/src/menu.css
variable: https://github.com/ElemeFE/element/blob/dev/packages/theme-default/src/common/var.css#L524
通过vue-loader导入样式时找不到字体
找不到字体。
复现链接
https://github.com/reverland/element-starter
错误详情:
可以通过两种方式绕过这个问题
生成的css不纯
当我使用
element-theme
编译生成css样式表时,发现生成对应组件的css里面又包含了其他组件的样式表。比如table
组件的样式表包含了checkbox
的样式表,原因可能是table组件导入了checkbox组件。 我期望的是生成的样式表单一,只生产自己组件的样式,不要包含其他组件的样式表。因为我目前的做法是为每个组件直接
import
他自己的样式表,webpack在打包的时候会自动导入引用的组件的样式表,我这样做为了方便维护组件。示例:
但是这个table.css文件里面包含了CheckBox的样式表,有没有办法让table.css被编译时只保留Table组件的样式表。而不用自己去手动更改table.css里面多余的其他组件的样式?
Consider sass/scss format for source files
Hello, after quick read of source I noticed the theme is using Css4 standard, which at current moment has to be compiled to regular Css through some preprocessor. Many application frameworks are configured to compile Sass files. Using Css4 files to create customized theme requires extra-setup for each project.
I would suggest migrating to Sass at the moment or developing parallel version in 'src-sass' folder. Anyway, ElementUi is by far the biggest Vue ui library and you guys did a lot of good work!
[update] Realised it's not CSS4, but Sass + PostCss
Some icons like el-icon-info are not showed
Some icons referenced in documentation like el-icon-info are not showed. Instead of icon print, nothing appears.
Using theme-chalk (apparently used in the documentation) all icons works fine.
Change relative fonts URL to absolute
The current font URL has unexpected results.
Example: If browser is in URL http://app.com/users/create, fonts will be loaded from http://app.com/users/create/fonts...., which is likely to return a 404.
This PR proposes adding a slash to the beginning of each font URL to ensure always the same behavior.
Example: http://app.com/users/create -> http://app.com/fonts.... http://app.com/ -> http://app.com/fonts....
Cannot change border-radius style of Input with custom-style
Hello, I cannot change the border-radius with the theme tool for the input elements, as described in the docs: http://element.eleme.io/#/en-US/component/custom-theme
I guess the problem is, that the border-radius is fixed in the following lines:
https://github.com/ElementUI/theme-default/blob/master/src/input.css#L15 https://github.com/ElementUI/theme-default/blob/master/src/input.css#L123 https://github.com/ElementUI/theme-default/blob/master/src/input.css#L190
Should be fixed by replacing those lines to:
border-radius: var(--button-border-radius);
Thanks, Philipp
Dev1
the icon path will lead to some problem that can not find the icon resources in mac os, after I find the problem ,I change the font path, add ./ in the icon path , then this problem disappeared. but in the windows ,you can not find this problem,so I think the icon path should add ./
Is ElementUI compatible with Webpack's ExtractTextPlugin?
Hi!
In my
main.ts
file, I have:and in my
webpack.config.prod.js
:but it does not work.
However, if I replace the
ExtractTextPlugin.extract
parts with:it works...
Any idea?
npm install it through github
npm i https://github.com/ElementUI/theme-default -D.
there is no file "lib/index.css" that defined in the main field, I know the lib dir is generated by
npm run build
, but when I install the package from npm, it does have the lib dir. why?"Undefined mixin button-size" in checkbox.css
Since I would like to use some of the element-ui components (I love it~) in project, I would like to build it myself to make it compatible with existing code and integrate with less. But during the build process (using postcss-salad), it shew error indicating "Undefined mixin button-size" in checkbox.css.
I think it is raised by missing "@import ./mixins/_buttons.css' at the header of "checkbox.css"
Let me know if i missed something, thanks