Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Kontakt.breakpoints = {
- sizes: {
- 'xs': 480,
- 'sm': 768,
- 'md': 992,
- 'lg': 1200
- },
- queries: {
- 'upTo': function( to ) {
- var _to = this.sizes[to];
- return 'only screen and (max-width:' + _size + 'px)';
- },
- 'between': function( from, to ) {
- var _from = this.sizes[from];
- var _to = this.sizes[to];
- return 'only screen and (min-width:' + _from + 'px) and (max-width:' + (_to - 1) + 'px)';
- },
- 'greaterThan': function( from ) {
- var _from = this.sizes[from];
- return 'only screen and (min-width:' + _from + 'px)';
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement