cssmediaquery 0.0.1

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

cssmediaquery 0.0.1

## css-mediaqueryParses and determines if a given CSS Media Query matches a set of values.This is a port of https://github.com/ericf/css-mediaquery.### Usage```pythonfrom cssmediaquery import match, parseisamatch = match('screen and (min-width: 40em)', { 'type' : 'screen', 'width' : '1024px'})# returns Trueast = parse('screen and (min-width: 40em)')print ast# [# {# 'inverse': 'false',# 'type' : 'screen',# 'expressions': [{# 'modifier': 'min',# 'feature': 'width',# 'value': '40em'# }]# }# ]```### Installing $ pip install cssmediaquery### Running Tests python tests.py -v

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.