-
Book Overview & Buying
-
Table Of Contents
Sass and Compass for Designers
By :
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: "Semantic purists argue that writing markup laden with HTML classes such as column_8 and column_4 is tantamount to a cardinal sin."
A block of code is set as follows:
* {
@include bs;
}
[class^="inner"] {
max-width: 75em;
margin: auto;
}
header[role="banner"],footer[role="contentinfo"] {
width: 100%;
display: block;
}
nav[role="navigation"] {
width: 25%;
float: left;
}
.main-content {
width: 70%;
float: right;
}
footer[role="contentinfo"] {
clear: both;
}When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
.buy-amazon-uk {
@extend %block;
background-image: image-url("amazon-co-uk.png");
background-size: image-width("amazon-co-uk.png") image-height("amazon-co-uk.png");
background-position: 50% 50%;
background-repeat: no-repeat;
height: image-height("amazon-co-uk.png");
width: image-width("amazon-co-uk.png");
}Any command-line input or output is written as follows:
gem install susy
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: "The preceding example will produce an error Cannot specify HSL and RGB values for a color at the same time for 'adjust-color'".
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
Change the font size
Change margin width
Change background colour