Browse Source

Fixed css for home blog posts

master
Teknikode 7 years ago
parent
commit
1e152694f4
  1. 30
      Teknik/Areas/Home/Content/Home.css
  2. 5
      Teknik/Areas/Home/HomeAreaRegistration.cs
  3. 8
      Teknik/Areas/Home/Views/Home/Index.cshtml
  4. 1
      Teknik/Teknik.csproj

30
Teknik/Areas/Home/Content/Home.css

@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
/*
* Blog posts
*/
.blog-post {
margin-bottom: 60px;
}
.blog-post-sm {
margin-bottom: 5px;
}
.blog-post-title {
margin-bottom: 5px;
font-size: 40px;
}
.blog-post-title-sm {
margin-bottom: 5px;
font-size: 18px;
line-height: 1;
}
/*.blog-post-title a {
color: rgb(51, 51, 51);
}*/
.blog-post-meta {
margin-bottom: 20px;
}
.blog-post-meta-sm {
margin-bottom: 5px;
font-size: 12px;
line-height: 1;
}

5
Teknik/Areas/Home/HomeAreaRegistration.cs

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
using System.Web.Mvc;
using System.Web.Optimization;
using Teknik;
namespace Teknik.Areas.Home
@ -36,6 +37,10 @@ namespace Teknik.Areas.Home @@ -36,6 +37,10 @@ namespace Teknik.Areas.Home
new { controller = "Home", action = "Index" }, // Parameter defaults
new[] { typeof(Controllers.HomeController).Namespace }
);
// Register Style Bundles
BundleTable.Bundles.Add(new StyleBundle("~/Content/home").Include(
"~/Areas/Home/Content/Home.css"));
}
}
}

8
Teknik/Areas/Home/Views/Home/Index.cshtml

@ -2,6 +2,8 @@ @@ -2,6 +2,8 @@
@using Teknik.Areas.Blog.Models
@Styles.Render("~/Content/home")
<div class="container">
<div class="row">
<center>
@ -160,7 +162,7 @@ @@ -160,7 +162,7 @@
<li class="list-group-item">
<div class="row">
<div class="col-sm-12 text-center">
<h2>No News Available</h2>
<h4>No News Available</h4>
</div>
</div>
</li>
@ -211,7 +213,7 @@ @@ -211,7 +213,7 @@
<li class="list-group-item">
<div class="row">
<div class="col-sm-12 text-center">
<h2>No Podcasts Available</h2>
<h4>No Podcasts Available</h4>
</div>
</div>
</li>
@ -261,7 +263,7 @@ @@ -261,7 +263,7 @@
<li class="list-group-item">
<div class="row">
<div class="col-sm-12 text-center">
<h2>No Posts Available</h2>
<h4>No Posts Available</h4>
</div>
</div>
</li>

1
Teknik/Teknik.csproj

@ -188,6 +188,7 @@ @@ -188,6 +188,7 @@
<Content Include="Areas\Blog\Content\Blog.css" />
<Content Include="Areas\Blog\Scripts\Blog.js" />
<Content Include="Areas\Contact\Scripts\Contact.js" />
<Content Include="Areas\Home\Content\Home.css" />
<Content Include="Areas\Home\Scripts\Home.js" />
<Content Include="Content\bootstrap-markdown.min.css" />
<Content Include="Content\bootstrap-theme.css" />

Loading…
Cancel
Save