引导程序自定义发生了什么? [英] What happened to bootstrap customize?

查看:57
本文介绍了引导程序自定义发生了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Bootstrap 3曾经具有此自定义选项: https://getbootstrap.com/docs/3.3/customize/

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中注释导入语句相同.我知道共享组件还有很多其他东西,但是基本上是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.

此处

示例

@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屋!

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