You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In most projects I prefer this way because it doesn't require the closing of default CSS file in the comments.
I have project where I want to give user the choice of whether to support IE8 or not. Supporting IE8 can be done by adding one <link…> in HTML file then.
It could be done as option in grunt-legacssy.
The text was updated successfully, but these errors were encountered:
Please note, that this is an unsafe operation. The author should keep in mind what will happen to their stylesheet.
Example:
/* * Button - a base component */
.btn {
width:50%;
}
@mediaonly screen and (min-width:50em) {
.btn {
width: auto;
}
}
/* * Login form - a compound component */
.login__btn {
width:100%;
}
In the mark-up:
<aclass="btn login__btn">Log in</a>
Then, of course, on desktop (e.g. in Chrome) the login button would be 100% wide.
IE8 would however see this style:
.btn {
width:50%;
}
/* Here was the media query, ignored by IE8 */
.login__btn {
width:100%;
}
/* The legacssy file, with the "media" style */
.btn {
width: auto;
}
I mean this scenario:
Why?
<link…>
in HTML file then.It could be done as option in grunt-legacssy.
The text was updated successfully, but these errors were encountered: