themyth92 / ngx-lightbox

Lightbox2 use with angular >= 5
MIT License
115 stars 70 forks source link

Styles are not imported #2

Closed vugar005 closed 6 years ago

vugar005 commented 6 years ago

Hi . I am trying to import styles for lightbox.css. In angular.json:

  "styles": [
              "node_modules/bootstrap/dist/css/bootstrap.min.css",
              "node_modules/animate.css/animate.min.css",
              "src/styles.scss",
              "node_modules/ngx-lightbox/lightbox.css"
            ],

But the styles are no imported so the modal is not shown. But strange is when I import styles from lightbox.css to styles.scss it works. Other styles such as bootstrap and animate works. Also removed bootstrap and animate. still does not solve.

"ngx-lightbox": "^1.0.2"
"@angular/cli": "^6.0.3",
"@angular/core": "^6.0.3".

It is so strange. Anyone has idea what is wrong ? thanks

themyth92 commented 6 years ago

Can try putting it before your scr/styles.scss ?

{
   styles: [
     "./node_modules/ngx-lightbox/lightbox.css",
     "src/styles.scss"
   ]
}
vugar005 commented 6 years ago

@themyth92 Thanks so much it worked!

themyth92 commented 6 years ago

Ok, glad it is solved. Close this issue for now !