This commit is contained in:
Nicolas Bally 2015-10-23 23:36:55 +02:00
parent f0171d336f
commit df01f33887
2 changed files with 46 additions and 6 deletions

View File

@ -29,14 +29,14 @@ a{
} }
body{ body{
font-family:Lato; font-family:"Museo sans";
font-weight:300; font-weight:300;
line-height:1.4em; line-height:1.4em;
text-align:justify; text-align:justify;
padding:0; padding:0;
margin:0; margin:0;
font-size:14px; font-size:15px;
color:#333333; color:#333333;
@ -572,6 +572,8 @@ article{
} }
h1{ h1{
color:#69952f; color:#69952f;
@ -614,4 +616,41 @@ h1{
} }
}
.articles_index{
a{
color:inherit;
&:hover{
color:inherit;
text-decoration:none;
}
}
}
.article_list{
.image{
width:200px;
float:left;
background: #757575 center center no-repeat;
background-size:100%;
background-size:cover;
overflow:hidden;
margin-bottom:5px;
}
.description{
margin-left:210px;
margin-bottom:5px;
}
} }

View File

@ -3,17 +3,18 @@
-articles = @articles -articles = @articles
-if articles -if articles
.articles .articles_index
-articles.each do |article| -articles.each do |article|
%a{:href => public_article_path(:id => article.slug)} %a{:href => public_article_path(:id => article.slug)}
.article .article_list
.image=image_tag article.image_file.file.large.medium.url if article.image_file .image=image_tag article.image_file.file.large.medium.url if article.image_file
.description .description
%h2=article.title %h1=article.title
=simple_format article.description
.clear .clear
#articles_pagination= paginate @articles #articles_pagination= paginate @articles
-else -else
%p %p