The purpose of background-with-css2-fallback is to save you from writing the background: #0E1B31; line background: #0E1B31; . You would use it as follows:
div { @include background-with-css2-fallback(linear-gradient(top,
What you get is:
div { background: #0e1b31; background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0e1b31), color-stop(100%, #0a1322)), #0e1b31; background: -webkit-linear-gradient(top, #0e1b31, #0a1322), #0e1b31; background: -moz-linear-gradient(top, #0e1b31, #0a1322), #0e1b31; background: -o-linear-gradient(top, #0e1b31, #0a1322), #0e1b31; background: -ms-linear-gradient(top, #0e1b31, #0a1322), #0e1b31; background: linear-gradient(top, #0e1b31, #0a1322), #0e1b31; }
I think you really just want:
div { background:
The same will work, be more readable and output less code. You can change the include to background-image if you want the color to stay behind the gradient in new browsers.
Miriam suzanne
source share