mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
feat(layout): add window breakpoints from spec (#9318)
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
// PascalCase is being used as Breakpoints is used like an enum.
|
||||
// tslint:disable-next-line:variable-name
|
||||
export const Breakpoints = {
|
||||
XSmall: '(max-width: 599px)',
|
||||
Small: '(min-width: 600px) and (max-width: 959px)',
|
||||
Medium: '(min-width: 960px) and (max-width: 1279px)',
|
||||
Large: '(min-width: 1280px) and (max-width: 1919px)',
|
||||
XLarge: '(min-width: 1920px)',
|
||||
|
||||
Handset: '(max-width: 599px) and (orientation: portrait), ' +
|
||||
'(max-width: 959px) and (orientation: landscape)',
|
||||
Tablet: '(min-width: 600px) and (max-width: 839px) and (orientation: portrait), ' +
|
||||
|
||||
Reference in New Issue
Block a user