Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

css_variables: Add specific breakpoints for mobile devices.

Aman Agrawaladb860f75bc4
diff --git a/static/js/css_variables.js b/static/js/css_variables.js
index c7f48b70d1c..bb802ea2db5 100644
--- a/static/js/css_variables.js
+++ b/static/js/css_variables.js
@@ -7,6 +7,11 @@ const md = 768;
const lg = 992;
const xl = 1200;
+// Breakpoints for mobile devices used by Google Chrome as of Version 86
+const ml = 425; // Mobile large
+const mm = 375; // Mobile medium
+const ms = 320; // Mobile small
+
module.exports = {
media_breakpoints: {
"xs-min": xs + "px",
@@ -14,11 +19,17 @@ module.exports = {
"md-min": md + "px",
"lg-min": lg + "px",
"xl-min": xl + "px",
+ "ml-min": ml + "px",
+ "mm-min": mm + "px",
+ "ms-min": ms + "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",
+ "ml-max": ml - 1 + "px",
+ "mm-max": mm - 1 + "px",
+ "ms-max": ms - 1 + "px",
},
};