【问题标题】:Import Bootstrap 4 Sass mixins in codepen.io scss editor在 codepen.io scss 编辑器中导入 Bootstrap 4 Sass mixins
【发布时间】: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


【解决方案1】:
猜你喜欢
  • 2017-11-26
  • 2016-01-25
  • 1970-01-01
  • 1970-01-01
  • 2015-08-25
  • 1970-01-01
  • 2017-04-24
  • 2022-08-10
相关资源
最近更新 更多