Extracting CSS to new file

Hi,

having a file with tons of scripts/links, is there an easy option to select e.g. an element with 2-3 classes and extract those classes automatically to a new file? E.g. this would allow me to re-use this element in another project without the need to extract all those css myself.

 

Thanks

3 comments
Comment actions Permalink

Not sure I follow you... Is it about extracting classes from HTMl to CSS? It's not possible, please vote for https://youtrack.jetbrains.com/issue/WEB-19236 to be notified on any progress with this feature

0
Comment actions Permalink

Hi Elena,

I meant something different:

 

Consider having the following code:

<div class='class_from_file1 class_from_file2 class_from_file3'>TEST</div>

I'd like to extract the classes which all reside in 3 different css files and combine them into a single one. This would allow me to reuse certain blocks of a html in another project without copy-pasting all those classes myself.

 

Hope that makes it a bit more clearer.

0
Comment actions Permalink

I see. Please feel free to file a request for this feature to youtrack (https://youtrack.jetbrains.com/issues/WEB) then

0

Please sign in to leave a comment.