- Mastering Sass
- Luke Watts
- 272字
- 2021-07-14 10:28:17
Conventions
In this book, you will find a number of text styles 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: "We can include other Sass files through the use of the @import
directive."
A block of code is set as follows:
@import '../../bower_components/susy/sass/susy'; $susy: ( columns: 12, ) $breakpoints: ( sm: 480px, md: 768px, lg: 980px ); @each $size, $value in $breakpoints { @media (min-width: map-get($breakpoints, $size) { @for $i from 1 through map-get($susy, columns) { .col-#{$i}-#{$size} { @include span($i); &-last { @include span($i last); } } } } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
[@import '../../bower_components/susy/sass/susy';
$susy: (
columns: 12,
)
$breakpoints: (
sm: 480px,
md: 768px,
lg: 980px
);
@each $size, $value in $breakpoints {
@media (min-width: map-get($breakpoints, $size) {
@for $i from 1 through map-get($susy, columns) {
.col-#{$i}-#{$size} { @include span($i);
&-last {
@include span($i last);
}
}
}
}
}
Any command-line input or output is written as follows:
$ sass -–update assets/sass/main.sass:assets/css/main.css -–style=expanded
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Clicking the Next button moves you to the next screen."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
- Linux設(shè)備驅(qū)動(dòng)開發(fā)詳解:基于最新的Linux4.0內(nèi)核
- Windows Vista基礎(chǔ)與應(yīng)用精品教程
- Ganglia系統(tǒng)監(jiān)控
- 嵌入式操作系統(tǒng)(Linux篇)(微課版)
- Windows 7中文版從入門到精通(修訂版)
- 竹林蹊徑:深入淺出windows驅(qū)動(dòng)開發(fā)
- 嵌入式系統(tǒng)及其應(yīng)用(第三版)
- 突破平面3ds Max動(dòng)畫設(shè)計(jì)與制作
- OpenStack系統(tǒng)架構(gòu)設(shè)計(jì)實(shí)戰(zhàn)
- Linux基礎(chǔ)使用與案例
- Linux系統(tǒng)最佳實(shí)踐工具:命令行技術(shù)
- 大規(guī)模分布式系統(tǒng)架構(gòu)與設(shè)計(jì)實(shí)戰(zhàn)
- Raspberry Pi入門指南
- 電腦辦公(Windows 10 + Office 2016)入門與提高(超值版)
- 48小時(shí)精通SolidWorks 2014中文版鈑金設(shè)計(jì)技巧