Skip to content

Commit

Permalink
[docs] Use mathematical interval notation for breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 29, 2020
1 parent cdea078 commit 29afd1e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/src/pages/customization/breakpoints/breakpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ In the following demo, we change the rendered DOM element (*em*, <u>u</u>, ~~del
const styles = theme => ({
root: {
backgroundColor: 'blue',
// Match [md, ∞[
// [960px, ∞[
// Match [md, ∞)
// [960px, ∞)
[theme.breakpoints.up('md')]: {
backgroundColor: 'red',
},
Expand All @@ -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',
},
Expand All @@ -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',
},
Expand All @@ -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',
Expand Down

0 comments on commit 29afd1e

Please sign in to comment.