Not sure what you mean, but something like this? Adding a & after the
selector, to place it in front, so you can target the
.no-box-shadow/.box-shadow classes.
.myClass {
> #myId{
> margin: 0;
> .lt-ie8 &{
> margin: 10px;
> }
> .no-boxshadow &{
> border: 10px;
> }
> }
> }
Which compiles to
> .myClass #myId { margin:0; }
> .lt-ie8 .myClass #myId { margin:10px; }
> .no-boxshadow .myClass #myId { border:10px; }
So you can pinpoint those classes from modernizr (and html5 boilerplate ie
tags)
On Wed, Jun 20, 2012 at 12:29 PM, myradon <[email protected]> wrote:
> I don't mean vendor prefixes. The classes that will be assigned to
> html-element by Modernizr can be targeted with CSS/LESS.
>
> eg. Firefox will have html class="no-js box-shadow cssgradients ....." I
> wan't LESS to prepend these classes to the selector so IE will pass the
> selector .cssgradients .some-selector{properties} that way I know exactly
> what browsers I target AND don't apply IE-hacks like pie.htc and filters if
> .ie6, .ie7, or .ie8 is assigned to html-element. Me luv this Modernizr-way
> pinpointing!
>