Skip to content

Specifying multiple parameters in nested elements #7

Closed
@snowe2010

Description

@snowe2010

I'm trying specify multiple font families, but I'm getting errors.

  font: {
    family: 'Raleway', Arial, sans-serif
    weight: 500
  }

results in

compiling... [Error: ParseError: C:\Users\Tyler\Dropbox\Tyler\personal\projects\roots\starboardservices_rewrite\assets\css\header.css.styl:37:31
   33|
   34| .links
   35|   background: #fff
   36|   font: {
   37|     family: 'Raleway', Arial, sans-serif
-------------------------------------^
   38|     weight: 500
   39|   }
   40|   text: {

expected ":", got ","
]

Potentially unhandled rejection [36] ParseError: C:\Users\Tyler\Dropbox\Tyler\personal\projects\roots\starboardservices_rewrite\assets\css\header.css.styl:37:31
   33|
   34| .links
   35|   background: #fff
   36|   font: {
   37|     family: 'Raleway', Arial, sans-serif
-------------------------------------^
   38|     weight: 500
   39|   }
   40|   text: {

expected ":", got ","

Any clue what I'm doing wrong?

Also, I'm using stylus with postcss processors like Lost and nested props.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions