Created
September 28, 2011 16:16
-
-
Save loverdos/1248378 to your computer and use it in GitHub Desktop.
The greatest CssSel
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
import net.liftweb.util.CssSel | |
/** | |
* A great invention that allows to always write our CSS transforms with an & | |
* at the end and have this one as the last case. | |
* | |
* https://gist.github.com/gists/1248378 | |
*/ | |
object EndOfCssSel { | |
// "aaa" #> "aaa" & | |
// "bbb" #> "aaa" & | |
// "ccc" #> "aaa" & | |
// "ddd" #> "aaa" & // <- ALWAYS keep an & here | |
// EndOfCssSel | |
val EndOfCssSel: CssSel = "@EndOfCssSel" #> "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment