postcss-simple-vars: Add media query breakpoint variables.

This commit is contained in:
Aman Agrawal
2020-10-31 13:24:37 +05:30
committed by Tim Abbott
parent 677f5e961a
commit 599b86241f
3 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
"use strict";
// Media query breakpoints according to Bootstrap 4.5
const xs = 0;
const sm = 576;
const md = 768;
const lg = 992;
const xl = 1200;
module.exports = {
media_breakpoints: {
"xs-min": xs + "px",
"sm-min": sm + "px",
"md-min": md + "px",
"lg-min": lg + "px",
"xl-min": xl + "px",
"xs-max": xs - 1 + "px",
"sm-max": sm - 1 + "px",
"md-max": md - 1 + "px",
"lg-max": lg - 1 + "px",
"xl-max": xl - 1 + "px",
},
};