mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
18 lines
387 B
CoffeeScript
18 lines
387 B
CoffeeScript
Node = require('./node')
|
|
|
|
# CSS comment between declarations or rules
|
|
class Comment extends Node
|
|
constructor: ->
|
|
@type = 'comment'
|
|
super
|
|
|
|
defaultStyle: -> { left: ' ', right: ' ' }
|
|
|
|
# Stringify declaration
|
|
stringify: (builder) ->
|
|
builder(@before) if @before
|
|
style = @style()
|
|
builder("/*#{ style.left + @text + style.right }*/", @)
|
|
|
|
module.exports = Comment
|