From 29afd1edbf17a63d78306268961126e0f06111f2 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Wed, 29 Apr 2020 21:14:22 +0200 Subject: [PATCH] [docs] Use mathematical interval notation for breakpoints --- .../customization/breakpoints/breakpoints.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/src/pages/customization/breakpoints/breakpoints.md b/docs/src/pages/customization/breakpoints/breakpoints.md index 0556e0235bce94..534b2d74c8d9f8 100644 --- a/docs/src/pages/customization/breakpoints/breakpoints.md +++ b/docs/src/pages/customization/breakpoints/breakpoints.md @@ -106,8 +106,8 @@ In the following demo, we change the rendered DOM element (*em*, u, ~~del const styles = theme => ({ root: { backgroundColor: 'blue', - // Match [md, ∞[ - // [960px, ∞[ + // Match [md, ∞) + // [960px, ∞) [theme.breakpoints.up('md')]: { backgroundColor: 'red', }, @@ -131,9 +131,9 @@ const styles = theme => ({ const styles = theme => ({ root: { backgroundColor: 'blue', - // Match [0, md + 1[ - // [0, lg[ - // [0, 1280px[ + // Match [0, md + 1) + // [0, lg) + // [0, 1280px) [theme.breakpoints.down('md')]: { backgroundColor: 'red', }, @@ -157,9 +157,9 @@ const styles = theme => ({ const styles = theme => ({ root: { backgroundColor: 'blue', - // Match [md, md + 1[ - // [md, lg[ - // [960px, 1280px[ + // Match [md, md + 1) + // [md, lg) + // [960px, 1280px) [theme.breakpoints.only('md')]: { backgroundColor: 'red', }, @@ -184,8 +184,8 @@ const styles = theme => ({ const styles = theme => ({ root: { backgroundColor: 'blue', - // Match [sm, md + 1[ - // [sm, lg[ + // Match [sm, md + 1) + // [sm, lg) // [600px, 1280px[ [theme.breakpoints.between('sm', 'md')]: { backgroundColor: 'red',