Permalink
Browse files

tweaking some css

  • Loading branch information...
1 parent a7584f5 commit 39b2b5a4e67ddb42fd176f895514a0e579d520b7 @NotMyself NotMyself committed Mar 20, 2012
Showing with 14 additions and 4 deletions.
  1. +11 −1 src/Web/Content/custom.css
  2. +1 −1 src/Web/Controllers/HomeController.cs
  3. +2 −2 src/Web/Views/Home/Index.cshtml
View
12 src/Web/Content/custom.css
@@ -8,17 +8,27 @@ footer
{
margin-top: 50px;
}
+.hero-unit h2
+{
+ margin-top: 30px;
+}
.detail-unit h2
{
text-align:center;
margin-bottom: 20px;
}
-.item img
+.hero-unit .item img
{
float:left;
padding: 10px 10px 0px 0px;
}
+.item img
+{
+ display:block;
+ margin:auto;
+}
+
.item p
{
clear:both;
View
2 src/Web/Controllers/HomeController.cs
@@ -13,7 +13,7 @@ public ActionResult Index()
.Where(x => x.PresentationDate > DateTime.Today.AddDays(-7))
.Where(x => x.Booked)
.OrderBy(x => x.PresentationDate)
- .Take(3)
+ //.Take(3)
.AsEnumerable();
return View(upcomingPresentations);
View
4 src/Web/Views/Home/Index.cshtml
@@ -9,8 +9,8 @@
@foreach (var presentation in Model)
{
<div class="item">
- <img alt="@presentation.Presenter.Name" src="@Url.Gravatar(@presentation.Presenter.Id, 80)" />
<h1>@presentation.Title</h1>
+ <img alt="@presentation.Presenter.Name" src="@Url.Gravatar(@presentation.Presenter.Id, 50)" />
<h2>
with @presentation.Presenter.Name on @presentation.PresentationDate.ToLongDateString()</h2>
<p>@presentation.Description</p>
@@ -19,7 +19,7 @@
}
</div>
<p>
- <a id="Next" class="btn btn-primary btn-large" href="#presentations" data-slide="next">
+ <a id="Next" class="btn btn-primary btn-large pull-right" href="#presentations" data-slide="next">
Next &raquo;</a>
</p>
</div>

0 comments on commit 39b2b5a

Please sign in to comment.