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

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...

  • ...
    65% of companies leverage OSS to speed application development in 2016
  • ...
    anyone with an Open Hub account can update a project's tags
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    compare projects before you chose one to use

Languages

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

30 Day Summary

May 17 2019 — Jun 16 2019

12 Month Summary

Jun 16 2018 — Jun 16 2019
  • 21 Commits
    Up + 7 (50%) from previous 12 months
  • 6 Contributors
    Down 0 (0%) from previous 12 months