Cleaner homepage

This commit is contained in:
Evarin 2017-09-27 23:58:50 +02:00
parent 38af50a866
commit 0e19abb51a
4 changed files with 62 additions and 27 deletions

View file

@ -191,13 +191,14 @@ article {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
align-items: top;
article + article {
margin: 0;
}
article.actu {
position: relative;
background: none;
box-shadow: none;
max-width: 400px;
@ -207,6 +208,7 @@ article {
.actu-header {
position: relative;
box-shadow: -4px 5px 1px rgba(#000, 0.3);
min-height: 180px;
padding: 0;
margin: 0;
overflow: hidden;
@ -214,11 +216,13 @@ article {
background-position: center center;
h2 {
position: absolute;
width: 100%;
height: 100%;
bottom: 0;
left: 0;
padding: 5px;
padding-top: 150px;
text-shadow: 0 0 5px rgba(#000, 0.8);
background: linear-gradient(to top, rgba(#000, 0.7), rgba(#000, 0));
a {
color: #fff;
}
@ -227,7 +231,7 @@ article {
.actu-misc {
background: lighten($fond, 15%);
box-shadow: -4px 5px 1px rgba(#000, 0.3);
box-shadow: -2px 2px 1px rgba(#000, 0.2);
margin: 0 10px;
padding: 15px;
padding-top: 5px;
@ -241,6 +245,19 @@ article {
font-size: 0.9em;
}
}
.actu-overlay {
display: block;
background: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 5;
opacity: 0;
}
}
}
}