def parse(css):
    """Parse a CSS style into a dict."""
    result = {}
    for declaration in css.split(';'):
        if declaration:
            key, value = declaration.split(':')
            result[key] = value.strip()
    return result
