1
resposta

Error na atividade

Estou tendo esse erro no meu arquivo estilo.css e não sei se é uma atulização do sublime que não está aceitando a font-family.

' /* Error: Invalid CSS after "...to Slab", serif": expected expression (e.g. 1px, bold), was "; }" on line 3 of estilos.css

1: /** Geral **/ 2: body { 3: font-family: "Roboto Slab", serif; } 4: 5: .container { 6: width: 940px; 7: margin: 0 auto; } 8:

Backtrace: estilos.css:3 C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/scss/parser.rb:1308:in expected' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/script/lexer.rb:240:inexpected!' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/script/parser.rb:897:in assert_done' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/script/parser.rb:69:inparse' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/script/parser.rb:228:in parse' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/script.rb:27:inparse' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:1169:in parse_script' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:745:inparse_property' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:707:in parse_property_or_rule' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:666:inparse_line' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:539:in build_tree' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:558:inblock in append_children' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:557:in each' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:557:inappend_children' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:548:in block in build_tree' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:541:ineach' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:541:in build_tree' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:558:inblock in append_children' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:557:in each' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:557:inappend_children' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:417:in _to_tree' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:389:inrenderwith_sourcemap' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:307:in render_with_sourcemap' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/exec/sass_scss.rb:387:inrun' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/exec/sass_scss.rb:63:in process_result' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/exec/base.rb:50:inparse' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/lib/sass/exec/base.rb:18:in parse!' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sass-3.7.4/bin/sass:13:in<top (required)>' C:/Ruby26-x64/bin/sass:23:in load' C:/Ruby26-x64/bin/sass:23:in

' / body:before { white-space: pre; font-family: monospace; content: "Error: Invalid CSS after "...to Slab", serif": expected expression (e.g. 1px, bold), was "; }"\A on line 3 of estilos.css\A \A 1: /* Geral **/\A 2: body {\A 3: font-family: "Roboto Slab", serif; }\A 4: \A 5: .container {\A 6: width: 940px;\A 7: margin: 0 auto; }\A 8: "; }

/*# sourceMappingURL=estilos.css.map */ '

1 resposta

Oi, Oziel, tudo bem?

Você quando foi importar o normalize você definiu a extensão como .css? Caso não defina, ele irá entender que é um .sass e dará erro na momento de compilar. Verifica e testa novamente.