Skip to content

Commit

Permalink
fix(breakpoints): use correct orientation mediaquery
Browse files Browse the repository at this point in the history
Fixes #763
  • Loading branch information
CaerusKaru authored and ThomasBurleson committed Jun 7, 2018
1 parent d1a87cf commit 666aa0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/core/breakpoints/data/orientation-break-points.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
import {BreakPoint} from '../break-point';

/* tslint:disable */
const HANDSET_PORTRAIT = '(orientations: portrait) and (max-width: 599px)';
const HANDSET_LANDSCAPE = '(orientations: landscape) and (max-width: 959px)';
const HANDSET_PORTRAIT = '(orientation: portrait) and (max-width: 599px)';
const HANDSET_LANDSCAPE = '(orientation: landscape) and (max-width: 959px)';

const TABLET_LANDSCAPE = '(orientations: landscape) and (min-width: 960px) and (max-width: 1279px)';
const TABLET_PORTRAIT = '(orientations: portrait) and (min-width: 600px) and (max-width: 839px)';
const TABLET_LANDSCAPE = '(orientation: landscape) and (min-width: 960px) and (max-width: 1279px)';
const TABLET_PORTRAIT = '(orientation: portrait) and (min-width: 600px) and (max-width: 839px)';

const WEB_PORTRAIT = '(orientations: portrait) and (min-width: 840px)';
const WEB_LANDSCAPE = '(orientations: landscape) and (min-width: 1280px)';
const WEB_PORTRAIT = '(orientation: portrait) and (min-width: 840px)';
const WEB_LANDSCAPE = '(orientation: landscape) and (min-width: 1280px)';

export const ScreenTypes = {
'HANDSET' : `${HANDSET_PORTRAIT}, ${HANDSET_LANDSCAPE}`,
Expand Down

0 comments on commit 666aa0a

Please sign in to comment.