Document backslash-escapes in Sass.
This commit is contained in:
parent
2ebb1966e4
commit
4aea1f6d34
16
lib/sass.rb
16
lib/sass.rb
|
@ -253,6 +253,22 @@ $LOAD_PATH << dir unless $LOAD_PATH.include?(dir)
|
|||
# font-size: 30em;
|
||||
# font-weight: bold; }
|
||||
#
|
||||
# === Rule Escaping
|
||||
#
|
||||
# In case, for whatever reason, you need to write a rule
|
||||
# that begins with a Sass-meaningful character,
|
||||
# you can escape it with a backslash (<tt>\</tt>).
|
||||
# For example:
|
||||
#
|
||||
# #main
|
||||
# \+div
|
||||
# clear: both
|
||||
#
|
||||
# is compiled to:
|
||||
#
|
||||
# #main +div {
|
||||
# clear: both; }
|
||||
#
|
||||
# == Constants
|
||||
#
|
||||
# Sass has support for setting document-wide constants.
|
||||
|
|
Loading…
Reference in New Issue