0
I Use This!
Very Low Activity
Analyzed about 13 hours ago. based on code collected about 13 hours 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

Sub-License

Private Use

Commercial Use

Modify

Distribute

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
  • ...
    learn about Open Hub updates and features on the Open Hub blog
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    data presented on the Open Hub is available through our API

Languages

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

30 Day Summary

Jun 17 2018 — Jul 17 2018

12 Month Summary

Jul 17 2017 — Jul 17 2018
  • 13 Commits
    Down -48 (78%) from previous 12 months
  • 5 Contributors
    Down -3 (37%) from previous 12 months