Skip to content

Instantly share code, notes, and snippets.

@loverdos
Created September 28, 2011 16:16
Show Gist options
  • Save loverdos/1248378 to your computer and use it in GitHub Desktop.
Save loverdos/1248378 to your computer and use it in GitHub Desktop.
The greatest CssSel
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