I am new to this "foundation" and trying to find hard to change the background color of HTML body.
I need someone to shed some light regarding usage of this.
I have downloaded foundation 5 latest version and included in my MVC project and here is the folder structure of it
And here is my sass folder structure:
Now each time when I run my website the default css applying is is foundation.css. So how do I override its background body color
I have done it like this in my Site.scss
but the color is not applying.
/* Site.css is generated by the Sass precompiler */
/* Please make changes to Site.scss (SASS) since changes to Site.css (CSS) will be overwritten */
@import "normalize";
@import "foundation";
@import "foundation.mvc";
$color: #ccc;
.foo {
background: $color ;
}
And finally this is my _Layout.cshtml:
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewBag.Title - Welcome to Foundation</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
@Styles.Render("~/Content/Foundation/css")
@RenderSection("head", required: false)
@Scripts.Render("~/bundles/modernizr")
</head>
<body class="foo">
@RenderBody()
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/foundation")
<script>
$(document).foundation();
</script>
@*Use the Scripts section to define page specific scripts*@
@RenderSection("scripts", required: false)
</body>
</html>