Learning Less.js
上QQ阅读APP看书,第一时间看更新

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "In our example, we've added a reference to the Less object and then used the modifyVars method to change the color of the @button-color variable, which we've specified in object.less, to #61783F."

A block of code is set as follows:

header {
  margin-bottom: 25px;
  nav {
    height: 25px;
    a { color: white }
  }
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

.shape1 {
  color: #5cb100;
  border: 1px solid #5cb100;
}

.shape2 {
 background: #fff;
 color: #5cb100;
}

.shape3 {
  border: 1px solid #5cb100;
}

Any command-line input or output is written as follows:

npm install -g grunt-cli

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Click on Continue to begin the installation."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.