Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 4foot30/83299621df6cbfeb33b468fe60de4749 to your computer and use it in GitHub Desktop.
Save 4foot30/83299621df6cbfeb33b468fe60de4749 to your computer and use it in GitHub Desktop.
# This file lives at /docroot/themes/custom/THEME_NAME/THEME_NAME.breakpoints.yml
# Mobile portrait
THEME_NAME.xxs:
label: xxs (Mobile portrait)
mediaQuery: 'all and (min-width: 0) and (max-width: 479px)'
weight: 0
multipliers:
- 1x
- 2x
- 3x
# Mobile landscape
THEME_NAME.xs:
label: xs (Mobile landscape)
mediaQuery: 'all and (min-width: 480px) and (max-width: 767px)'
weight: -1
multipliers:
- 1x
- 2x
- 3x
# Tablet portrait
THEME_NAME.sm:
label: sm (Tablet portrait)
mediaQuery: 'all and (min-width: 768px) and (max-width: 991px)'
weight: -2
multipliers:
- 1x
- 2x
# Tablet landscape
THEME_NAME.md:
label: md (Tablet landscape)
mediaQuery: 'all and (min-width: 992px) and (max-width: 1199px)'
weight: -3
multipliers:
- 1x
- 2x
# Desktop
THEME_NAME.lg:
label: lg (Desktop)
mediaQuery: 'all and (min-width: 1200px) and (max-width: 1599px)'
weight: -4
multipliers:
- 1x
- 2x
# HD
THEME_NAME.xl:
label: xl (HD)
mediaQuery: 'all and (min-width: 1600px) and (max-width: 1920px)'
weight: -5
multipliers:
- 1x
- 2x
# iMac or larger
THEME_NAME.xxl:
label: xxl (iMac or larger)
mediaQuery: 'all and (min-width: 1921px)'
weight: -6
multipliers:
- 1x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment