如何设置Meteor.js loginButtons的样式? [英] How to style Meteor.js loginButtons?
问题描述
文档指定使用模板{{> loginButtons}}
来实现默认的登录按钮.
The docs specify to use the template {{> loginButtons}}
to implement the default login buttons.
将自己的样式应用于此的最佳方法是什么?
What is the best way to apply my own styles to this?
- 重写新模板(该怎么做?)
- 将样式添加到标记为
!important
的CSS文件中
- 其他?
- Rewrite a new template (how would this be done?)
- Add styles to my CSS files marked
!important
- Other?
推荐答案
原来,可以结合使用两种思路.深入研究 accounts-ui软件包后,结果发现它仅包含一个.less
文件.实际模板包含在 accounts-ui-unstyled 中,当将accounts-ui
添加到meteor
项目时,该文件会自动包含在内.
It turns out a combination of the two ideas can be used. After delving into the accounts-ui package, it turns out that it contains only one .less
file. The actual template is included in accounts-ui-unstyled, which is automatically included when accounts-ui
is added to a meteor
project.
因此,可以按以下步骤删除CSS:
Hence, the CSS can be removed as follows:
meteor remove accounts-ui
meteor add accounts-ui-unstyled
然后留下原始HTML ,可以根据需要选择样式.
You are then left with the raw HTML, which can be styled as you choose.
这篇关于如何设置Meteor.js loginButtons的样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!