Allow composite identifiers through combinators

This commit is contained in:
robotis
2012-06-25 08:29:50 +00:00
parent ae8536d2b9
commit 31ff7676eb
4 changed files with 22 additions and 0 deletions

View File

@@ -518,6 +518,11 @@ class LessParser(object):
"""
p[0] = p[1]
def p_ident_part_aux(self, p):
""" ident_part : combinator vendor_property
"""
p[0] = [p[1], p[2]]
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#

View File

@@ -211,3 +211,9 @@ section {
.class_no_3 {
padding: -3px;
}
.label-important, .badge-important {
background-color: #ff0000;
}
.label-important[href], .badge-important[href] {
background-color: #cc0000;
}

View File

@@ -33,3 +33,5 @@ article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{pa
#f7{color:#fff777;}
.asterisk_last *{padding:0;}
.class_no_3{padding:-3px;}
.label-important,.badge-important{background-color:#ff0000;}
.label-important[href],.badge-important[href]{background-color:#cc0000;}

View File

@@ -134,3 +134,12 @@ footer, header, hgroup, menu, nav, section {
(~".class_no_@{var}") {
padding: @var * -1px;
}
/*
*/
.label,
.badge {
// Composite identifiers
&-important { background-color: #F00; }
&-important[href] { background-color: darken(#F00, 10%);}
}