0
I Use This!
Low Activity
Analyzed 11 days ago. based on code collected 11 days ago.

Project Summary

Load, parse and cascade CSS rule sets in Ruby.

Install the gem from RubyGems.

gem install css_parser

An example

require 'css_parser'
include CssParser

parser = CssParser::Parser.new
parser.load_file!('http://example.com/styles/style.css')

# lookup a rule by a selector
parser.find('#content')
#=> 'font-size: 13px; line-height: 1.2;'

# lookup a rule by a selector and media type
parser.find('#content', [:screen, :handheld])

# iterate through selectors by media type
parser.each_selector(:screen) do |selector, declarations, specificity|
...
end

Made on Vancouver Island.

Tags

css gem parser premailer ruby site_management

Badges

In a Nutshell, ruby css_parser...

MIT License
Permitted

Commercial Use

Modify

Distribute

Sub-License

Private Use

Forbidden

Hold Liable

Required

Include Copyright

Include License

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    data presented on the Open Hub is available through our API
  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    you can subscribe to e-mail newsletters to receive update from the Open Hub blog

Languages

Languages?height=75&width=75
Ruby
86%
CSS
14%

30 Day Summary

Jan 8 2018 — Feb 7 2018

12 Month Summary

Feb 7 2017 — Feb 7 2018
  • 57 Commits
    Up + 8 (16%) from previous 12 months
  • 7 Contributors
    Down -3 (30%) from previous 12 months