引导自定义发生了什么? [英] What happened to bootstrap customize?
问题描述
Bootstrap 3 曾经有这个自定义选项:https://getbootstrap.com/docs/3.3/自定义/
Bootstrap 3 used to have this customize option: https://getbootstrap.com/docs/3.3/customize/
但是,我找不到 Bootstrap 4 这样的链接.我只是在构建一个简单的网站,并且肯定不会使用其 80% 的功能.我也不想要大部分 JS 功能.我该怎么做?
However, I'm unable to find such a link for Bootstrap 4. I'm just building a simple website and won't be using 80% of it's functionality for sure. I don't want most of the JS functionalities too. How do I go about this?
推荐答案
Bootstrap 4 afaik 中尚未提供此功能.
This feature is not yet in Bootstrap 4 afaik.
但是你可以修改SCSS文件,构建Bootstrap css和js文件.
But you can modify the SCSS file and build the Bootstrap css and js file.
@mdo 是这样说的
这与在 bootstrap.scss 中注释掉 import 语句基本相同.我知道在共享组件方面还有更多内容,但基本上是 1:1.以前有人要求过,当时我是通行证,现在仍然是.
This is essentially the same as commenting out an import statement in bootstrap.scss. I know there's a bit more to it when it comes to shared components, but it's basically 1:1. It's been requested before and I was a pass then, still am now.
检查 Bootstrap 问题/功能请求 此处
Check the Bootstrap issue/feature-request here
示例
@import "node_modules/bootstrap/scss/functions";
@import "node_modules/bootstrap/scss/variables";
@import "node_modules/bootstrap/scss/mixins";
@import "node_modules/bootstrap/scss/root";
@import "node_modules/bootstrap/scss/print";
@import "node_modules/bootstrap/scss/reboot";
@import "node_modules/bootstrap/scss/type";
//@import "node_modules/bootstrap/scss/images";
@import "node_modules/bootstrap/scss/code";
@import "node_modules/bootstrap/scss/grid";
@import "node_modules/bootstrap/scss/tables";
@import "node_modules/bootstrap/scss/forms";
@import "node_modules/bootstrap/scss/buttons";
@import "node_modules/bootstrap/scss/transitions";
更新:
这是一个非常好的在线 Bootstrap 定制器 Bootstrap.build
This is a very good online Bootstrap customizer Bootstrap.build
这篇关于引导自定义发生了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!