-
Book Overview & Buying
-
Table Of Contents
LESS WEB DEVELOPMENT COOKBOOK
By :
Browser-specific prefixes can make CSS3, and therefore Less code, complex and more difficult to maintain. Mixins (prebuilt) offer you the opportunity to write single-line declarations for properties such as gradients and shadows. The autoprefixer plugin can prefix your code automatically, which uses the Can I use database (available at http://caniuse.com/) in order to find the prefixes that meet your requirements.
The only requirement for this recipe is to have the autoprefixer plugin installed and loaded in your Gruntfile.js file. If you have not installed this plugin in the Installing Grunt plugins recipe of this chapter, you can do so using the following command in the root of your project:
$ npm install grunt-autoprefixer --save-dev
Add the following configuration for the concurrent task to the Gruntfile.js file:
autoprefixer: {
single_file: {
src: '<%=app.dev%>css/style.css',
...
Change the font size
Change margin width
Change background colour