Created
June 28, 2009 17:50
-
-
Save cloudhead/137324 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Less file | |
*/ | |
@width: 20px; | |
@color: orange; | |
.mixin { border: 1px solid black; } | |
.mixout { border-color: orange; } | |
#first > .one { | |
#second .two > #deux { | |
width: 50%; | |
#third { | |
color: @color; | |
height: 100%; | |
} | |
#fourth, #fifth { | |
color: red; | |
.mixin > .inside; | |
} | |
.mixout; | |
} | |
font-size: 2em; | |
} | |
/* | |
inspecting the tree (note the expanded selectors) | |
*/ | |
* | |
. @width: `20px` | |
. @color: `orange` | |
. .mixin | |
. . border: `1px solid black` | |
. | |
. .mixout | |
. . border-color: `orange` | |
. | |
. #first | |
. . .one | |
. . . font-size: `2em` | |
. . . #second | |
. . . . .two | |
. . . . . #deux | |
. . . . . . width: `50%` | |
. . . . . . #third | |
. . . . . . . color: `@color` | |
. . . . . . . height: `100%` | |
. . . . . . | |
. . . . . . #fifth | |
. . . . . . . color: `red` | |
. . . . . . . .mixin | |
. . . . . . . . .inside | |
. . . . . . . | |
. . . . . . | |
. . . . . . .mixout | |
. . . . . | |
. . . . | |
. . . | |
. . | |
. | |
/* CSS Generated with Less 0.8.13 */ | |
.mixin { border: 1px solid black; } | |
.mixout { border-color: orange; } | |
#first > .one { font-size: 2em; } | |
#first > .one #second .two > #deux { width: 50%; } | |
#first > .one #second .two > #deux #third { | |
color: @color; | |
height: 100%; | |
} | |
#first > .one #second .two > #deux #fifth { color: red; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment