Giter VIP home page Giter VIP logo

extractcss's Introduction

extractCSS

extractCSS is a JavaScript library and an online tool that lets you extract element ID, class and inline styles from HTML document and output them as CSS stylesheet.

A hosted online version of extract css is available at extractcss.com. All you have to do is to type or paste your HTML document and let the tool to do the rest for you!

extractcss's People

Contributors

adnantopal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

extractcss's Issues

Duplicating the CSS classes

Each time I click the extract button, it is appending duplicate of the already created CSS. Can this be fixed?

Highlighting Source of Extractions

This is an amazing project, but I feel there are a few things needed to make it truly essential for devs.

I'll mention them as I conceptualize them, and/or get the chance - I can't quite put my finger on it all just yet. But will start off with the following:

I tried using it with a chunk of code - oldschool HTML code with both linked and embedded style rules. Got an output of classes, id's, parents and children... but the problem is that I couldn't see any way of telling where they were pulled from other than manually sifting throught the original code (which defeats the purpose of this app).

Or am I doing it wrong?

Feature request: Option to enter URL

Great tool - nice work! :-)
Perhaps an option enter URL would come handy, or maybe option to enter base href so that your code can extract links to external stylesheets and thereby generate a more complete css.
/Sten

less or sass nested rules support

how about sth like these ...?

.img_article_page{
  body{
    font-size: 16px;
  }
  a{
    font-size: inherit;
  }
  .titlewrap{
    margin: 0 20px;
    .title{
      font-size: 0.6rem;
      font-weight: 500;
    }
  }
}

Separate out HTML

I'm learning web development and I use your tool all the time. It's really helpful to me. One feature that would be nice would be to, in addition to extracting css from html, also be able to save the html with the styles removed. Probably not a simple feature to add, but it would certainly be useful (to me, at least).

Rob

A little css fix

Hi, almost everyday I'm using your service for job.
And today I've found it a little buggy.
2014-02-24 16 46 53
Thanks for your service, and hope you will fix this little thing

API?

I have a feature request for extractcss.com: an API. I would love to pass the URL of a stylesheet to you guys, or the CSS itself, and have you guys respond with the stripped CSS.

No return once exract is clicked

The tool is not working for me at all. I'm typing some basic html in the text area and clicking extract. No code appearing in the css box. All that happens is that 3 empty lines are displayed. This is from the online version. When running it locally after downloading repo, also nothing happens except html disappears once I click Extract.

Great idea for a tool though. Especially useful for those working with html email.

Server generated id/class names

It'll break and output nothing if you have something like this in your code:

<h2 class="title title--<?php echo $counter++; ?>">
    <?php echo $this->__('Numbered Title'); ?>
</h2>

Domain has expired

The web domain has expired for this - is it possible to host it on Github pages or something? This is a great tool!

Thanks,

Joe

Properties?

Should it be extracting out the properties that go with the IDs, classes, etc? Tried it in Safari and Chrome and it's the same way. Is that the way it's intended?

Extracted CSS - no way to copy/save

I am on your website now and pasted my HTML into the left "Type or Paste Your HTML" pane.

I selected my Preferences from the top "Extract" and "Indent CSS With" links and clicked the green "Extract!" button.

The right "Extracted CSS" pane populated correctly with the code.

However, I cannot find a way to SELECT ALL > COPY the code for use in my CSS file. There seems to be no controls or buttons or links to do so.

Please advise, as I find this tool EXTREMELY useful and would like to use it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.