A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://sass-lang.com/documentation/syntax/structure below:

Sass: Structure of a Stylesheet

Just like CSS, most Sass stylesheets are mainly made up of style rules that contain property declarations. But Sass stylesheets have many more features that can exist alongside these.

StatementsStatements permalink

A Sass stylesheet is made up of a series of statements, which are evaluated in order to build the resulting CSS. Some statements may have blocks, defined using { and }, which contain other statements. For example, a style rule is a statement with a block. That block contains other statements, such as property declarations.

In SCSS, statements are separated by semicolons (which are optional if the statement uses a block). In the indented syntax, they’re just separated by newlines.

Universal StatementsUniversal Statements permalink

These types of statements can be used anywhere in a Sass stylesheet:

CSS StatementsCSS Statements permalink

These statements produce CSS. They can be used anywhere except within a @function:

Top-Level StatementsTop-Level Statements permalink

These statements can only be used at the top level of a stylesheet, or nested within a CSS statement at the top level:

Other StatementsOther Statements permalink ExpressionsExpressions permalink

An expression is anything that goes on the right-hand side of a property or variable declaration. Each expression produces a value. Any valid CSS property value is also a Sass expression, but Sass expressions are much more powerful than plain CSS values. They’re passed as arguments to mixins and functions, used for control flow with the @if rule, and manipulated using arithmetic. We call Sass’s expression syntax SassScript.

LiteralsLiterals permalink

The simplest expressions just represent static values:

OperationsOperations permalink

Sass defines syntax for a number of operations:

Other ExpressionsOther Expressions permalink

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4