Question about CSS files

Hi, I just have a quick question about CSS files in MSM…


Why is it that the styles within an imported CSS file show up in the CSS Styles list in the WYSIWYG editor but the styles within a CSS parse file do not? Hope I'm explaining clearly enough!



Was this done on purpose or could it be a bug?



Cheers.

Wehn you say "CSS parse file" do you mean CSS styles defined in the parse file using STYLE tags or are you using the CSS File asset?

Okay, I have 2 CSS files. One is a 'CSS File' asset (ie, 'Edit Parse File' is an option available on the menu, and it has the little blue CSS icon next to it in the Asset Map). I'll call this MyCSS1.css. The other CSS has been added as a file (ie, it just has a normal file icon next to it and it can't be edited through MSM, it has to be re-uploaded each time a change is made. I'll call this MyCSS2.css.


Let's say I have the following style included in one of my stylesheets:


    .mystyle {
       text-align: right;
       font-weight: bold; }


If it is included in MyCSS1.css, 'mystyle' doesn't show up in the CSS Style list in the WYSIWYG editor, but if it is included in MyCSS2.css it does.

Was this intentional or is it a bug?

Hope I've made more sense this time!

Thanks again.

The CSS classes that show up in the WYSIWYG only come from normal file assets - not CSS File assets.


When the CSS File asset was built - the functionality that displays the CSS classes in the WYSIWYG was not modified. This is an additional feature that could be added in the future.



You can add a feature request to the bug tracker at bugs.matrix.squiz.net if you would like to see this added.