added featured articles option with distinct style

This commit is contained in:
Gabriele Musco 2021-04-13 23:30:34 +02:00
parent 4239ea5347
commit 13bb88e93a
No known key found for this signature in database
GPG key ID: 8539FD3454380B83
5 changed files with 75 additions and 10 deletions

View file

@ -244,7 +244,7 @@ h1, h2, h3, h4, h5, h6 {
padding-bottom: 25px;
&.discrete {
background: $highlight_bg_color;
background-color: $highlight_bg_color;
border-radius: 10px;
padding: 20px;
padding-top: 1px;
@ -370,3 +370,31 @@ ul.list {
&, #searchbar {font-size: 1em;}
}
}
.featuredCardLink {
border: none;
padding: 0;
.featuredCard {
@extend .card;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: relative;
height: 250px;
.contentArea {
position: absolute;
bottom: 0;
padding: 15px;
h2 {
margin: 0;
}
.date {
margin: 0;
}
}
&.discrete {
border-radius: 10px;
padding: 0;
}
}
}