Ukratko cu objasniti ono sto ni sama bas ne razumem :P - Sta je Sass - to je skipta (ili da nazovem open-source stylesheet prog. jezik - uradjen u Ruby), osmisljena da bi pomogla u radu sa CSS/om (Cascading Style Sheets) koji opet koriste (uglavnom) web dizajneri i web programeri. CSS3 i verzije CSSa koje slede su sve zahtevnije
pa su dva momka odlucila da pomognu "css-eserima"(kako ih ja zovem) i osmisle
ovu aplikaciju, od koje se mnogi ustrucavaju jer im na prvi pogled deluje nejasno
sta i kako radi. Uz malo truda mislim da se moze brzo a solidno ovladati ovim a
skratiti vreme "mucenja" kad se kodira CSS:). Nadam se da se nisam nalupetala ko
sto znam a i ako jesam, ne zamerite nego naucite ovo pa naucite i mene :P
Preuzeto sa Wikipedia sajta:
Sass (Syntactically Awesome Stylesheets) is a stylesheet language
initially designed by Hampton Catlin and developed by Nathan Weizenbaum.
After its initial versions, Weizenbaum [Sina JO] and Chris Eppstein have
continued to extend Sass with SassScript, a simple scripting language used
in Sass files.
Sass is a scripting language that is interpreted into
Cascading Style Sheets (CSS).
SassScript is the scripting language itself. Sass consists of two syntaxes.
The original syntax, called "the indented syntax", uses a syntax similar to Haml.
It uses indentation to separate code blocks and newline characters to separate
rules. The newer syntax, "SCSS", uses block formatting like that of CSS.
It uses braces to denote code blocks and semicolons to separate lines within
a block. The indented syntax and SCSS files are traditionally given the extensions
.sass and .scss respectively.
CSS3 consists of a series of selectors and pseudo-selectors that group
rules that apply to them. Sass (in the larger context of both syntaxes)
extends CSS by providing several mechanisms available in more traditional
programming languages, particularly object-oriented languages, but that are
not available to CSS3 itself. When SassScript is interpreted, it creates blocks
of CSS rules for various selectors as defined by the Sass file.
The Sass interpreter translates SassScript into CSS. Alternately,
Sass can monitor the .sass or .scss file and translate it to an output
.css file whenever the .sass or .scss file is saved. Sass is simply
syntactic sugar for CSS.
The official implementation of Sass is open-source and coded in Ruby;
however, other implementations exist, including PHP, and a high-performance
implementation in C called libSass. There's also a Java implementation called
JSass.
Additionally, Vaadin has a Java implementation of Sass.
The indented syntax is a metalanguage. SCSS is a nested metalanguage,
as valid CSS is valid SCSS with the same semantics. Sass supports integration
with the Firefox extension Firebug.
SassScript provides the following mechanisms: variables, nesting,
mixins, and selector inheritance.
Stranica na kojoj mozete videti detaljnije, downloadovati, instalirati
SASS i saznati osnove SASS-a.
http://sass-lang.com/
Play lista tutorijala sa objasnjenjima kako se radi u SASS
0 коментара :
Post a Comment