Software Archive
Read-only legacy content
17060 Discussions

CSS @import doesn't work at live-view on device over wifi

John_T_3
Beginner
299 Views

Hello

Changing style-elements in a css-file that is imported by a main-css-file(index.css for example) with the @import-derective doesn't work. Changes in those css-files are completely ignored. The only solution is to import all the css-files with the <link rel="stylesheet"> tag in the index.html file.
A bug or settings that have to be adjusted?

 

Thx,

J

0 Kudos
1 Reply
Elroy_A_Intel
Employee
299 Views

You are seeing this issue because @import causes the specified css file to be downloaded when the parent css file is being loaded. Any changes that you make will not show up unless you reload the page since this page is not being constantly watched for changes.

0 Kudos
Reply