For Trello - Mooophy/meetu GitHub Wiki
####Remove deprecated branch: 'new'
# Open git bash and move to the local repo.
# Execute the commands below:
# remove it locally
git branch -d new
# remove it remotely
git push origin :new
####Css code refactor For less:
- Add new less files into the folder:
~/Content/
. Since all~/Content/*.less
have been loaded in master page's<head> </head>
, all pages have referenced them already.No further referencing is needed.
For css:
-
Option 1: Add new css code into the file:
~/Content/Site.css
. Since this file has been rendered in master page, all pages have referenced it already. -
Option 2: To add a page specific css file, please add into the folder
~/Content/
. All css codes should be placed here. Afterwards, use the following syntax in a.cshtml
file to reference it :
@section scripts{
@Styles.Render("~/Content/some-style.css")
}
- Option 3: To add a css file that works on the entire site, please place it in the folder
~/Content/
as well. Afterwards, modify the file~/App_Start/BundleConfig.cs
for bundling as below. Say, we are trying to bundle a file calledsome-new-style.css
.
using System.Web;
using System.Web.Optimization;
namespace MeetU
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.validate*"));
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css,
"~/Content/some-new-style.css")); //The only place to modify.
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}
}
}