mirror of
https://github.com/danog/sass-site.git
synced 2024-12-16 03:17:15 +01:00
4b6b15b1ab
This just bumps up the font size a bit, to help emphasize that these pages are special and make them look less bare. Closes #276
23 lines
763 B
Plaintext
23 lines
763 B
Plaintext
---
|
|
title: Flow Control Rules
|
|
introduction: >
|
|
Sass provides a number of at-rules that make it possible to control whether
|
|
styles get emitted, or to emit them multiple times with small variations. They
|
|
can also be used in [mixins](mixin) and [functions](function) to write small
|
|
algorithms to make writing your Sass easier. Sass supports four flow control
|
|
rules:
|
|
overview: true
|
|
---
|
|
|
|
* [`@if`](control/if) controls whether or not a block is evaluated.
|
|
|
|
* [`@each`](control/each) evaluates a block for each element in a [list][] or
|
|
each pair in a [map][].
|
|
|
|
* [`@for`](control/for) evaluates a block a certain number of times.
|
|
|
|
* [`@while`](control/while) evaluates a block until a certain condition is met.
|
|
|
|
[list]: ../values/lists
|
|
[map]: ../values/maps
|