【发布时间】:2022-03-03 20:32:57
【问题描述】:
我在 codepen.io 上使用 Bootstrap4,我从 CDN 导入了 bootstrap 的生产包 (bootstrap.bundle.min.js)。
我想知道如何在我的 SCSS 中导入_breakpoints?无法确定路径。
我需要使用 Bootstrap Sass mixins。
我正在导入的产品包:
【问题讨论】:
-
想要使用这个现成的 mixin:
@include media-breakpoint-up(md) { ... } -
见question。当您引用 Bootstrap 时,SASS 文件包含在 Codeply 中:codeply.com/p/pw1PsFKHVu
-
@Codeply-er 奇怪的是,codepen.io 在 SCSS 中使用
@import "bootstrap";时显示 file not found 错误。
标签: import sass bootstrap-4 codepen scss-mixins