getdave / Tanlinell

Boilerplate Wordpress theme for rapid development of new WP themes. Based on the great work of the _s ("Underscore") theme.
GNU General Public License v2.0
6 stars 2 forks source link

Hide icons on older browsers #305

Closed getdave closed 10 years ago

getdave commented 10 years ago

On older browser which don't support icon fonts we should hide the .icon element

In _icons.scss we need to amend to:

.icon {
    font-family: $iconFontFamily;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    .no-generatedcontent & {
        display: none;
    }
}
nickwoodland commented 10 years ago

Addressed in css framework repo: https://github.com/getdave/tanlinell-framework/tree/b6690ddd7088ecee9be0ea907cc486e454234dd5

getdave commented 10 years ago

Nice!