官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 桑日县| 尼木县| 鄂伦春自治旗| 贡嘎县| 濮阳市| 东丽区| 临澧县| 乐东| 西平县| 曲周县| 天等县| 安新县| 理塘县| 故城县| 枣庄市| 乌兰察布市| 龙门县| 康马县| 米林县| 龙井市| 宜丰县| 聂荣县| 湟源县| 策勒县| 玉田县| 宁夏| 石河子市| 商丘市| 洱源县| 大埔县| 大荔县| 会宁县| 双柏县| 郴州市| 辽源市| 岑巩县| 古蔺县| 泰来县| 正定县| 桑植县| 同德县|