sass - How to get value of grid-breakpoint variable
问题描述
I want to be able to access the value of each break point set in the $grid-breakpoints variable. It is laid out like this:
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
);
In previous versions, the breakpoints were laid out like
$screen-md: 768px;
and so having something like width: $screen-md would produce width: 768px (or whatever the medium width is).
Now in BS4, I don't see how to do this. When I try using $grid-breakpoints as my variable - it breaks because the variable is pulling in all of those as one value.
Does that make sense what I'm trying to do? How can I do it?
解决方案
推荐阅读
- r - 从 R 中 writeClipboard 函数的输出中删除最后一个换行符
- python - Pytest 失败并显示 AssertionError False 是 False
- python - 在 Python 中使用 with 语句时,将 stderr 和 stdout 重定向到文件不会写入错误
- javascript - 当聚合函数为空时,Sequelize 获取结果
- python - Related_name 从 Django 表单返回属性错误 (NoneType)。我正在尝试在表单中创建一个动态过滤器
- c++ - 在“0”参数上强制编译错误(C++)
- node.js - 数组属性上的“updateMany”和“$pull”问题
- checkbox - 通过 JSXGraph 中的复选框可见的元素:更改其他参数?
- mobile - 在放大的图像窗口中手动放大
- mysql - MYSQL 从旧日期计算当前年份的第 1 个月、第 2 个月等