Skip to content
Snippets Groups Projects
modernizr.scss 634 B
Newer Older
Erxleben, Fredo's avatar
Erxleben, Fredo committed
---
---

/*
    The following liquid code generates CSS rules.
    If a feature is supported by the browser, Modernizr will set the class
    "modernizr-feature" in the HTML-tag.
    Within the body, any elements having the "modernizr-no-feature" class will
    then no longer be displayed.
    (Assuming that usually warning messages pop up when a feature is not
    present.)
    The list of checked features is obtained from _config.yml.
*/

{% assign prefix = "modernizr" %}

{% for feature in site.modernizr.check_features %}
.{{prefix}}-{{feature}} {
    .{{prefix}}-no-{{feature}} {
        display: none;
    }
}
{% endfor %}