issue 27 styling resolved
This commit is contained in:
parent
3f5b6dc670
commit
b2e9ecb5d6
3 changed files with 43 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
<ul>
|
7<ul class="archive_list">
|
||||||
<% academic_years_items.each do |year, item| %>
|
<% academic_years_items.each do |year, item| %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to pretty_year(year), item %>
|
<%= link_to pretty_year(year), item %>
|
||||||
|
|
|
@ -14,3 +14,41 @@ $family-sans-serif: 'Open Sans', sans-serif;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
vertical-align: inherit;
|
vertical-align: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Issue 27 archive list styling
|
||||||
|
|
||||||
|
.archive_list {
|
||||||
|
list-style-type: none;
|
||||||
|
font-family: family-sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive_list > li {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
padding: 2em;
|
||||||
|
border: 2px solid darkgrey;
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
|
||||||
|
font-size: 2em;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive_list > li:hover{
|
||||||
|
border-color: rgb(66,66,66);
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive_list > li:first-child{
|
||||||
|
margin-left:15%;
|
||||||
|
margin-right:25%; // momenteel hard-coded, betere opl zou dynamische herberekening zijn om meer future-proof te zijn
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive_list_ref{
|
||||||
|
border: 2px solid darkgrey;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive_list_item{
|
||||||
|
font-family: family-sans-serif;
|
||||||
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<% posts_in_year(item[:academic_year]).each do |post| %>
|
<% posts_in_year(item[:academic_year]).each do |post| %>
|
||||||
<a href="<%= relative_path_to(post) %>">
|
<a class="archive_list_ref" href="<%= relative_path_to(post) %>">
|
||||||
<div class="tipue_search_content_title">
|
<div class= "archive_list_item">
|
||||||
<%= post[:title] %>
|
<%= post[:title] %>
|
||||||
</div>
|
</div>
|
||||||
<div class="tipue_search_content_text">
|
<div class="archive_list_item">
|
||||||
<%= excerptize(post.reps[:text].compiled_content, length: 200) %>
|
<%= excerptize(post.reps[:text].compiled_content, length: 50) %>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue