Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (21 sloc) 0.795 kb

Comments

Stylus supports three kinds of comments, single-line, and multi-line comments, and multi-line buffered comments.

Single-line

Single-line comments look like JavaScript comments, and do not output in the resulting CSS:

// I'm a comment!
body
  padding 5px // some awesome padding

Multi-line

Multi-line comments look identical to regular CSS comments, however they only output when the compress option is not enabled.

/*
 * Adds the given numbers together.
 */

add(a, b)
  a + b

Multi-line buffered

Multi-line comments which are not suppressed start with /*!, signalling Stylus to output the comment regardless of compression.

/*!
 * Adds the given numbers together.
 */

add(a, b)
  a + b
Jump to Line
Something went wrong with that request. Please try again.