contao/import — Issue #2974: CSS Import - definitions in remarks are parsed
Author: importer
Created: 2011-11-29 20:38:06+00:00
State: closed
Labels: backend, Feature

When importing a stylesheet where definitions are made as an remark, they are parsed as definitions.
See sample tinymce.css in online demo.

```

/**
* Global TinyMCE style sheet
*
* Use this style sheet to define CSS classes for the rich text editor. The
* stlye sheet will be included in the editor and the page layout automatically.
* Although the stlye sheet is shared by all themes, you can override its
* formattings in any of your theme style sheets.
*
* tl_files/tinymce.css (this is how it looks like in TinyMCE)
* .warning { color:#c55; }
*
* theme_a.css (this is how it looks like in theme A)
* .warning { font-weight:bold; }
*
* theme_b.css (this is how it looks like in theme B)
* .warning { color:#000; }
*
* If you do not want to use a global TinyMCE style sheet at all, simply delete
* this file (tl_files/tinymce.css).
*/
```

This will result in that :

```

/**
Global TinyMCE style sheet Use t
**/
color:#c55;
{
** ** theme_a.css (this is how it looks like in theme A) * .warning;
}
font-weight:bold;
{
** ** theme_b.css (this is how it looks like in theme B) * .warning;
}
color:#000;
{
** ** If you do not want to use a global TinyMCE style sheet at all, simply delete * this file (tl_files/tinymce.css).;
}
```

Verified in the online demo

Related issues: #2781

--- _Originally created by lindesbs on March 31st, 2011, at 03:11pm (ID 2974)_