Saas Presentation
Saas Presentation
Submitted by : Shagun
Yadav
Submitted To : Ms. Neetu
Roll no : 2101010004
(Web programming with
Course : B.Tech (CSE)
python and javascript)
IV Semester
What is SAAS(syntactically
awesome style sheets)
•Sass stands for Syntactically Awesome Stylesheet
•Sass is an extension to CSS
•Sass is a CSS pre-processor
•Sass is completely compatible with all versions of CSS
•Sass reduces repetition of CSS and therefore saves time
•Sass was designed by Hampton Catlin and developed by Natalie Weizenbaum in
2006
•Sass is free to download and use
Why Use Sass?
Stylesheets are getting larger, more complex, and
harder to maintain. This is where a CSS pre-processor
can help.
Sass lets you use features that do not exist in CSS,
like variables, nested rules, mixins, imports,
inheritance, built-in functions, and other stuff.
How Does Sass Work?
A browser does not understand Sass code. Therefore, you will
need a Sass pre-processor to convert Sass code into standard
CSS.
This process is called transpiling. So, you need to give a
transpiler (some kind of program) some Sass code and then get
some CSS code back.
Sass File Type :
Sass files has the ".scss" file extension.
SAAS Comments
Sass supports standard CSS comments
/* comment */ , and in addition it
supports inline comments // comment
:
SAAS EXAMPLE
Example:
abs(15)
Result: 15
abs(-15)
Result: 15
Sass List Functions
Example:
append((a b c), d)
Result: a b c d
append((a b c), (d),
comma)
Result: a, b, c, d
Sass Map Functions
❮ Prev
Example:
$font-sizes: ("small":
12px, "normal": 18px,
"large": 24px)
map-get($font-sizes,
"small")
Result: 12px
Sass Selector Functions
Example:
is-superselector("div",
"div.myInput")
Result: true
is-superselector("div.myInput",
"div")
Result: false
is-superselector("div", "div")
Result: true
Sass Introspection Functions
Example:
feature-exists("at-error");
Result: true
Sass Color Functions
Example:
rgb(0, 0, 255); // rendered as blue
because the blue parameter is set
to its highest value (255) and the
others are set to 0