mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Support for nested multiple CSS selectors (as per http://groups-beta.google.com/group/haml/msg/209d1c347ba85248?hl=en& - thanks svenax!).
git-svn-id: svn://hamptoncatlin.com/haml/trunk@288 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
d49a738b47
commit
867948bdf4
3 changed files with 13 additions and 4 deletions
|
@ -10,10 +10,12 @@ module Sass::Tree
|
|||
attributes = []
|
||||
sub_rules = []
|
||||
total_rule = if super_rules
|
||||
self.rule.split(/,\s*/).collect! {|r| "#{super_rules} #{r}"}.join(", ")
|
||||
else
|
||||
self.rule
|
||||
end
|
||||
super_rules.split(/,\s*/).collect! do |s|
|
||||
self.rule.split(/,\s*/).collect! {|r| "#{s} #{r}"}.join(", ")
|
||||
end.join(", ")
|
||||
else
|
||||
self.rule
|
||||
end
|
||||
|
||||
children.each do |child|
|
||||
if child.is_a? AttrNode
|
||||
|
|
|
@ -27,6 +27,8 @@ body { margin: 0; font: 0.85em "Lucida Grande", "Trebuchet MS", Verdana, sans-se
|
|||
#content a:link, #content a:visited { color: #93d700; text-decoration: none; }
|
||||
#content a:hover { text-decoration: underline; }
|
||||
|
||||
#content p, #content div { width: 40em; }
|
||||
#content p li, #content p dt, #content p dd, #content div li, #content div dt, #content div dd { color: #ddffdd; background-color: #4792bb; }
|
||||
#content .container.video .column.left { width: 200px; }
|
||||
#content .container.video .column.left .box { margin-top: 10px; }
|
||||
#content .container.video .column.left .box p { margin: 0 1em auto 1em; }
|
||||
|
|
|
@ -106,6 +106,11 @@ body
|
|||
:text-decoration underline
|
||||
|
||||
#content
|
||||
p, div
|
||||
:width 40em
|
||||
li, dt, dd
|
||||
:color #ddffdd
|
||||
:background-color #4792bb
|
||||
.container.video
|
||||
.column.left
|
||||
:width 200px
|
||||
|
|
Loading…
Add table
Reference in a new issue