CSS is an amazing language that keeps evolving and incorporating more and more awesome features; however, utilizing LESS will extend CSS with dynamic behavior like variables, mixins, operations and functions thus adding even more *awesomeness* to this language and smoothing out your workflow.
This presentation will take you through utilizing web frameworks like Bootstrap, Boilerplate in your development process and dig into some advanced CSS usage via LESS. In brief, I'll show you why you should be using LESS in your current & future projects, an overview of it's features, make you a pro and show you how to use it with other frameworks.
6. css still right?
@base: #f938ab;
.box-shadow(@style, @c) when (iscolor(@c)) {
box-shadow: @style @c;
-webkit-box-shadow: @style @c;
-moz-box-shadow: @style @c;
}
.box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) {
.box-shadow(@style, rgba(0, 0, 0, @alpha));
}
.box {
color: saturate(@base, 5%);
border-color: lighten(@base, 30%);
div { .box-shadow(0 0 5px, 30%) }
}
VINCENT BASKERVILLE | VP of PRODUCT
7. se•man•tic [si-man-tik]
adjective
1. of, pertaining to, or arising from the different
meanings of words or other symbols: semantic
change; semantic confusion.
2. of or pertaining to semantics.
VINCENT BASKERVILLE | VP of PRODUCT
8. div+id/class = no semantic value HTML5 tags = rich semantic value
VINCENT BASKERVILLE | VP of PRODUCT
9. the div ! span elements, in conjunction
with the id ! class attributes, offer a
generic structure to documents. they
define content to be inline or block"
level but impose no other
presentational idioms on the content.
3WORLD WIDE WEB CONSORTIUM
VINCENT BASKERVILLE | VP of PRODUCT
33. oh yeah... sooo Scss *may* be
better than less now.
But Haml will forever suck.
STAY
CLASSY
VINCENT BASKERVILLE | VP of PRODUCT
34. AU REVOIR
VINCE BASKERVILLE
@WHOISVINCE
VINCE@TRIPLINGO.COM
35. Designing
Happiness
the book
http://kck.st/happyux
VINCENT BASKERVILLE | VP of PRODUCT
Editor's Notes
\n
\n
\n
\n
\n
\n
\n
\n
div + span are semantically meaningless (aka neutral)\n
\n
\n
\n
\n
\n
\n
Variables allow you to specify widely used values in a single place, and then re-use them throughout the style sheet, making global changes as easy as changing one line of code.v\n
Mixins allow you to embed all the properties of a class into another class by simply including the class name as one of its properties. It’s just like variables, but for whole classes. Mixins can also behave like functions, and take arguments, as seen in the example bellow.\n
Rather than constructing long selector names to specify inheritance, in Less you can simply nest selectors inside other selectors. This makes inheritance clear and style sheets shorter.\n
Variables allow you to specify widely used values in a single place, and then re-use them throughout the style sheet, making global changes as easy as changing one line of code.v\n
Rather than constructing long selector names to specify inheritance, in Less you can simply nest selectors inside other selectors. This makes inheritance clear and style sheets shorter.\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
scss doesn’t require ruby anymore, and you can run it alone like less.. and with extra stuff like conditionals & controls it’s getting better\n