Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SASS Error : Invalid CSS after " expected pseudoclass or pseudoelement "

Tags:

css

sass

I am trying something new today.. SASS is all new for me. Can anyone please tell me what cause this error?

/*
Error: Invalid CSS after "    margin:": expected pseudoclass or pseudoelement, was "0px"
        on line 5 of /Users/kishorechandra/S-ERP/sass/styles.scss

1: @import "compass";
2: @import "partials/variables";
3: 
4: .ui.menu
5:     margin:0px
6:     background: rgba(255, 255, 255, 0)
7:     font-family: 'Roboto Slab', serif
8: 
9: .ui.icon.menu .active.item
10:     color: #FFB300

Backtrace:
/Users/kishorechandra/S-ERP/sass/styles.scss:5
like image 983
Kishore Chandra Avatar asked Dec 02 '22 12:12

Kishore Chandra


1 Answers

Use space after property: , then the compiler won't get confused anymore. so replace margin:0px with margin: 0px. And have fun learning Sass.

like image 82
Dinca Adrian Avatar answered Dec 09 '22 17:12

Dinca Adrian