import collections


def from_css_string(string):
    """Return a dictionary from the style string."""
    items = string.split(";")
    dictionary = collections.OrderedDict()
    for item in items:
        key, value = item.split(":")
        if value.startswith('"') and value.endswith('"'):
            value = value[1:-1]
        dictionary[key] = value
    return dictionary