Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • How to use Variables in Stylus

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    Comment on it

    Hi Guys,

    We can use variables in Stylus like the example given below.

    $fontColor = #000
    $basefont = 'Raleway' sans-serif
    

    As shown in above example '$' is use before the variable and then variable name

    How can use this ?

     .block
         font-size  15em
         color $fontColor
         font-family $basefont
    

    You can only change properties in variables it will reflect in your page.

    easy way to write css

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: