Created
September 23, 2013 13:03
-
-
Save Jpunt/6670095 to your computer and use it in GitHub Desktop.
Grid-system als CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="results-container"> | |
<div class="result-count"> | |
<p class="block-left bg-light padding"> | |
@if(this.Model.SearchResult.Results.Any()) | |
{ | |
@Html.T(this.Model.SearchResult.Total, "{0} object gevonden", "{0} objecten gevonden", "Found {0} work of art", "Found {0} works of art", this.Model.SearchResult.Total)</p> | |
} | |
else | |
{ | |
@Html.T("Geen resultaten", "No results") | |
} | |
</p> | |
</div> | |
<div class="results"> | |
@foreach(var workOfArt in this.Model.SearchResult.Results) | |
{ | |
var fileName = Html.UriDataEscape(workOfArt.Media.PrimaryImage.FileName); | |
var url = WorkOfArtModuleUrls.WorkOfArt(workOfArt); | |
<div class="result"> | |
<a href="@url" class="block padding bg-light"> | |
<img class="full-width background-cover" src="/static/images/1x1.png" style="height:auto; padding-top:20%; background-image:url(http://www.museum-online.nl/imageproxyboijmans.asp?cache=yes&maxheight=500&maxwidth=500&filename=@(fileName)&cache=yes)" /> | |
<h1 class="h3-like">@Html.LimitOnWordBoundaryText(workOfArt.Title, 50), @workOfArt.Dating.Indication</h1> | |
<p>@workOfArt.Creator.FullName</p> | |
</a> | |
</div> | |
} | |
</div> | |
@if(this.Model.SearchResult.Results.Any()) | |
{ | |
<div class="facets"> | |
@Html.Partial("Facets", this.Model) | |
</div> | |
<div class="pagination"> | |
@Html.Partial("Pagination", this.Model) | |
</div> | |
} | |
</section> | |
.results-container { | |
@extend .row; | |
} | |
.result-count { | |
@extend .col; | |
@extend .all-full; | |
} | |
.results { | |
@extend .col; | |
@extend .m-4; | |
@extend .l-10; | |
@extend .xl-10; | |
@extend .reset-padding; | |
} | |
.result { | |
@extend .col; | |
@extend .s-full; | |
@extend .m-3; | |
@extend .l-3; | |
@extend .xl-2; | |
@extend .m-clear-2nd; | |
@extend .l-clear-4th; | |
@extend .xl-clear-6th; | |
} | |
.facets { | |
@extend .col; | |
@extend .m-2; | |
@extend .l-2; | |
@extend .xl-2; | |
} | |
.pagination { | |
@extend .col; | |
@extend .all-full; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment