Created
August 27, 2016 09:45
-
-
Save ochrons/18e5e0209e47126e72ff3661edb4596e to your computer and use it in GitHub Desktop.
This file contains 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 fiddle.Fiddle, Fiddle.println | |
import scalajs.js | |
import scalacss.Defaults._ | |
@js.annotation.JSExport | |
object ScalaFiddle { | |
println( MyStyles.render ) | |
} | |
object MyStyles extends StyleSheet.Inline { | |
import dsl._ | |
val outer = style( | |
margin(12 px, auto), | |
cursor.pointer // this is slow to optimizeeee | |
// paddingTop(10 px) // this is fast to optimize | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment