WARNING! This speech is a bit old. Pls, take (also) a look to the new one
http://www.slideshare.net/spleenteo/frontend-reorganize-the-chaos
This is a resume of my talk presented at Better Software 2012, Florence (IT). It just a quick preflight for this topic that includes lot of different technologies. It's a mix of best practices for frontend web developments, styles, file structure, tools, especially SASS.
45. selectors
the greats unknown
learn how to useâem
Thursday, September 27, 12
46. if you need
!IMPORTANT
thereâs something wrong
Thursday, September 27, 12
47. SASS / Scss
canât live without you
Thursday, September 27, 12
48. SASS features
â˘variables like $white: #FFF
â˘math like 10px + 10px = 20px
â˘@mixins as functions ($with_params)
â˘logic like IF/ELSE FOR
â˘nested classes
â˘compiled css extended or compact
Thursday, September 27, 12
49. SCSS
example
compiled
Thursday, September 27, 12
50. SCSS
example
compiled
Thursday, September 27, 12
51. Modular CSS
one module = one class = one file
Thursday, September 27, 12
68. Responsive
ainât so easy!
Thursday, September 27, 12
69. media
queries
belong to a
module, so
keep them
within the
same scope
Thursday, September 27, 12
70. media
queries
belong to a
module, so
keep them
within the
same scope
Thursday, September 27, 12
71. Happy ending
âAfter having built a few hundreds
of sites I would have discovered
the âone true wayâ of doing it.
I donât think there is one true
wayâ
(Scalable and Modular Architecture for CSS -
Jonathan Snook)
Thursday, September 27, 12