On Github akdetrick / sassconf
I used to be a Sass hater
"Sass will make things worse"
"Adding an extra layer of abstraction won't help us"
"Sass encourages bad selectors with nesting"
*Meetup was already 10 years old in 2012
Live style guides are a thing for a reason
github.com/meetup/sassquatch
nicolasgallagher.com/about-html-semantics-front-end-architecture/
* except for the people working with the code
* except microformats, which has been replaced with the HTML5 microdata spec
.unit .docSection:first-child { padding-top: $spacing; border-top: 0; }
.docSection--boxHead { padding-top: $spacing; border-top: 0; }
.promptBox .promptBox-titlebar .promptBox-content .promptBox-actions .promptBox-button--primary .promptBox-button--secondary
<div class="docBox"> <div class="docStripe--nav docSection"> <h4>Box title!</h4> </div> <div class="docSection"> <p>Box content</p> </div> <div class="docSection align-right"> <a class="button--primary" href="#">Confirm</a> <a class="button" href="#">Nope</a> </div> </div>
-Dale Sande SassConf 2013
Keep your documentation fresh
github.com/trulia/hologram
/*doc --- title: Figureset name: figureset category: Layout --- Figure with description. Similar to OOCSS "media block". ```html_example <div class="figureset"> <div class="figureset-figure"> <img src="http://lorempixel.com/82/82/cats/"> </div> <div class="figureset-description"> <h4>This is a fluffy kitten</h4> <p>Maybe not the fluffiest, but he'll do.</p> </div> </div> ``` */
/*doc --- title: Flushing Elements name: flushModifiers category: Modifiers --- Removes all margin and padding on an element for a given direction. Class | Description ---------------| ---------------------------------------------------- `flush--top` | Sets `margin` and `padding` to `0` for element top `flush--right` | Sets `margin` and `padding` to `0` for element right `flush--bottom`| Sets `margin` and `padding` to `0` for element bottom `flush--left` | Sets `margin` and `padding` to `0` for element left `flush--all` | Sets `margin` and `padding` to `0` for all sides */
Because cross-platform colors
github.com/meetup/meetup-swatches (prototype)
Elyse Holladay, Jina Bolton
9am-1pm Friday, Resource Room 2nd Fl
social: name: "EXTERNAL" comment: "third party colors" colors: facebook: [59,89,152,1] twitter: [51,204,255,1] linkedin: [72,117,180,1] tumblr: [43,73,100,1] flickr: [254,8,131,1] foursquare: [12,186,223,1] googleplus: [198,61,45,1] instagram: [78,67,60,1] reddit: [206,227,248,1] wepay: *wepayBlue
Sass, iOS, Android, SVG... and probably more
"twitter": [ 0.2, 0.8, 1.0, 1 ]...
<color name="twitter">#ff33ccff</color>
ul .listThing .specialThing
h2 { color: blue; } /* specificity: 1*/
h2 { color: red; } /* specificty: 1 */
!important
!important
!important
!important
!important
!important
!important
http://www.martinfowler.com/
2004
@import "sassquatch.scss"; (the vine)
@import "crustybase.scss"; (the tree)
<jsp:param name="isModernLayout" value="${true}" />
@import "sassquatch.scss";
bower.io
github.com/akdetrick/sassconf
github.com/meetup/sassquatch
github.com/meetup/meetup-swatches
github.com/trulia/hologram
bower.io
making.meetup.com