- 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開發技術
- Learning OpenDaylight
- Linux運維實戰:CentOS7.6操作系統從入門到精通
- Kali Linux滲透測試全流程詳解
- 蘋果電腦玩全攻略 OS X 10.8 Mountain Lion
- VMware Horizon View 6 Desktop Virtualization Cookbook
- Linux操作系統應用編程
- OpenStack系統架構設計實戰
- 寫給架構師的Linux實踐:設計并實現基于Linux的IT解決方案
- Linux軟件管理平臺設計與實現
- Mastering Windows 8 C++ App Development
- Agile IT Security Implementation Methodology
- 微軟360度
- Microsoft Azure Administrator:Exam Guide AZ-103
- 鴻蒙應用程序開發