Sha256: e6d1351f1e0288ca6abf9c5493c0d6328f08ddd81f206b392b46372ad8f57d02

Contents?: true

Size: 795 Bytes

Versions: 23

Compression:

Stored size: 795 Bytes

Contents

## 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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
stylus-source-0.22.6 vendor/docs/comments.md
stylus-source-0.22.5 vendor/docs/comments.md
stylus-source-0.22.4 vendor/docs/comments.md
stylus-source-0.22.3 vendor/docs/comments.md
stylus-source-0.22.2 vendor/docs/comments.md
stylus-source-0.22.1 vendor/docs/comments.md
stylus-source-0.22.0 vendor/docs/comments.md
stylus-source-0.21.2 vendor/docs/comments.md
stylus-source-0.21.1 vendor/docs/comments.md
stylus-source-0.21.0 vendor/docs/comments.md
stylus-source-0.20.1 vendor/docs/comments.md
stylus-source-0.20.0 vendor/docs/comments.md
stylus-source-0.19.8 vendor/docs/comments.md
stylus-source-0.19.7 vendor/docs/comments.md
stylus-source-0.19.6 vendor/docs/comments.md
stylus-source-0.19.5 vendor/docs/comments.md
stylus-source-0.19.4 vendor/docs/comments.md
stylus-source-0.19.3 vendor/docs/comments.md
stylus-source-0.19.2 vendor/docs/comments.md
stylus-source-0.19.1 vendor/docs/comments.md