mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Document Sass @-rules.
This commit is contained in:
parent
ec4c08716e
commit
7320563032
2 changed files with 34 additions and 1 deletions
1
TODO
1
TODO
|
@ -6,7 +6,6 @@ Testing:
|
|||
|
||||
Documentation:
|
||||
Haml::Engine public method documentation could use work
|
||||
!! Document at-rules.
|
||||
|
||||
Features:
|
||||
Sass should throw generic errors for undefined constants, not syntax errors
|
||||
|
|
34
lib/sass.rb
34
lib/sass.rb
|
@ -486,6 +486,40 @@ $LOAD_PATH << dir unless $LOAD_PATH.include?(dir)
|
|||
# might compile to either,
|
||||
# depending on whether a file called "foo.sass" existed.
|
||||
#
|
||||
# === @font-face, @media, etc.
|
||||
#
|
||||
# Sass behaves as you'd expect for normal CSS @-directives.
|
||||
# For example:
|
||||
#
|
||||
# @font-face
|
||||
# font-family: "Bitstream Vera Sans"
|
||||
# src: url(http://foo.bar/bvs")
|
||||
#
|
||||
# compiles to:
|
||||
#
|
||||
# @font-face {
|
||||
# font-family: "Bitstream Vera Sans";
|
||||
# src: url(http://foo.bar/bvs"); }
|
||||
#
|
||||
# and
|
||||
#
|
||||
# @media print
|
||||
# #sidebar
|
||||
# display: none
|
||||
#
|
||||
# #main
|
||||
# background-color: white
|
||||
#
|
||||
# compiles to:
|
||||
#
|
||||
# @media print {
|
||||
# #sidebar {
|
||||
# display: none; }
|
||||
#
|
||||
# #main {
|
||||
# background-color: white; }
|
||||
# }
|
||||
#
|
||||
# == Comments
|
||||
#
|
||||
# === Silent Comments
|
||||
|
|
Loading…
Add table
Reference in a new issue