I created a default web project (ASP.NET Core Web Application, Web Application Model-View-Controller, ASP.NET Core 2.0) using VS 2017 version 15.0.26929.2.
I want to override the background color for the bootstrap pills as shown here: Changing color of Twitter bootstrap Nav-Pills
Markup
<ul class="nav nav-pills red">
<li class="active"><a href="#tab1" data-toggle="tab">Overview</a></li>
<li><a href="#tab2" data-toggle="tab">Sample</a></li>
<li><a href="#tab3" data-toggle="tab">Sample</a></li>
</ul>
CSS
.red .active a,
.red .active a:hover {
background-color: red;
}
I added the markup to the index.cshtml view and the css to site.css file.
When I use Firebug to detect why the style changes are not applied I see that the bootstrap.css file is downloaded twice. Once before the site.css and again after.
Why is bootstrap.css downloaded again ?
Please note that I have not have any other changes to this project.