Skip to content

Instantly share code, notes, and snippets.

@wfendler
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wfendler/9811680 to your computer and use it in GitHub Desktop.
Save wfendler/9811680 to your computer and use it in GitHub Desktop.
//
// Bootstrap Less
// --------------------------------------------------
/**
* Suit.css Component Name
*/
/*------------------------------------*\
INUIT PAGE HEADING
\*------------------------------------*/
/**
* Inuit Component w/code example
*
`@include vendor(border-radius, 4px);`
*
*/
//
// ZURB Component Badge
//
@wfendler
Copy link
Author

I like how suit is annotated w/numbers for the less-obvious pieces of code. The self-explanatory rules are not explained but the more-obscure ones (in this case, max-width) are explained in an easy-to-follow way.

/**
 * Suit.css Component Name
 */

.u-inline {
  display: inline !important;
}

/**
 * 1. Fix for Firefox bug: an image styled `max-width:100%` within an
 * inline-block will display at its default size, and not limit its width to
 * 100% of an ancestral container.
 */

.u-inlineBlock {
  display: inline-block !important;
  max-width: 100%; /* 1 */
}

.u-block {
  display: block !important;
}

.u-table {
  display: table !important;
}

.u-tableCell {
  display: table-cell !important;
}

@wfendler
Copy link
Author

Another thing to consider is how Sass will output the comments. Ideally, each project will be minified and have 0 comments on production, but sometimes stuff unintentionally makes it up w/some comments.

/* These get rendered */ and // These do not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment