scala - How can I encode this in ScalaCSS? -
i'm trying translate css scalacss , can't quite figure out how encode pattern of "class subclass". here specific example:
.navbar-top-links { margin-right: 0; } .navbar-top-links li { display: inline-block; } .navbar-top-links li:last-child { margin-right: 15px; }
in quickstart can see use of &
define child styles:
".navbar-top-links" - ( marginright(0), &("li") - ( display.inlineblock, &.lastchild - marginright(15 px) ) )
Comments
Post a Comment