We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow definition of breakpoints in $cssProvider.defaults
This will allow the user to reference a breakpoint as opposed to be using the same media queries over and over.
The API should look like this:
myApp.config(function($routeProvider, $cssProvider) { angular.extend($cssProvider.defaults, { breakpoints: { mobile: '(max-width : 768px)', desktop: '(min-width : 769px) and (max-width : 1219px)', kiosk: '(min-width : 1220px)' } }); $routeProvider .when('/black', { title: 'Black', templateUrl: 'pages/black/page-black.html', css: [ { href: 'pages/black/page-black.mobile.css', breakpoint: 'mobile' }, { href: 'pages/black/page-black.desktop.css', breakpoint: 'desktop' }, { href: 'pages/black/page-black.kiosk.css', breakpoint: 'kiosk' } ] }) });
The text was updated successfully, but these errors were encountered:
Allow definition of breakpoints in $css defaults
2449708
Issue #14
alexcastillo
No branches or pull requests
Allow definition of breakpoints in $cssProvider.defaults
This will allow the user to reference a breakpoint as opposed to be using the same media queries over and over.
The API should look like this:
The text was updated successfully, but these errors were encountered: