自定义Bootstrap 4 CSS [英] Customizing Bootstrap 4 css

查看:120
本文介绍了自定义Bootstrap 4 CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注此链接: 文档

I am following this link: Docs

具体来说: 使用内置的自定义变量文件自定义Bootstrap 4,并使用新的$ enable- * Sass变量轻松切换全局CSS首选项.覆盖变量的值,并根据需要使用随附的Gruntfile重新编译.

我以前从未使用过Gruntfile.我可以使用其他工具将CSS编译为CSS吗?另外,这种编译的结果将是什么? _custom.css是否必须放在原始bootstrap.css所在的文件夹中?

I have never used Gruntfile before. Can I use other tools to compile scss into css? Also, what the outcome of such compilation is going to be? A _custom.css that must be placed in the same folder where original bootstrap.css is?

感谢您的帮助.

推荐答案

虽然没有像 3.x版中已有,有几种工具可以做到这一点.这些都可以从SASS转换为CSS,如果您不熟悉SASS,则可以提供一些UI.

While there is not an "official" Bootstrap 4 customizer like there was in 3.x, there are several tools that can do this. These all convert from SASS to CSS, and some provide a UI if you're not familiar with SASS.

Themestr.app自定义程序

Bootply Customizer

请参阅此答案,以获取有关如何使用CSS覆盖或SASS进行自定义的详细信息.

Also see this answer for details on how to customize with CSS overrides or SASS.

这篇关于自定义Bootstrap 4 CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆