File "main-news.scss"
Full Path: /srv/www/www.cadoro.it/src/scss/main-news.scss
File size: 1.56 KB
MIME-type: text/plain
Charset: utf-8
.news-item {
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
display: block;
position: relative;
border: 2px solid #e10f21;
height: 270px;
.news-item__title {
background-color: rgba(0,0,0,0.60);
color: #fff;
font-size: 18px;
line-height: 22px;
display: block;
position: absolute;
bottom: 0; left: 0; right: 0;
padding: 10px 10px 5px;
}
}
.news-related {
display: block;
.news-related__cover {
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
display: block;
border: 1px solid #e10f21;
height: 60px;
}
.news-related__title {
color: #000;
display: block;
font-size: 14px;
line-height: 18px;
padding-top: 5px;
}
}
.news-article-related {
.h4 {
background-color: #b4b4b4;
color: #fff;
font-weight: bold;
margin: 0 0 20px;
padding: 10px 10px 5px;
text-align: center;
}
}
.news-article-share,
.news-article-share a {
color: #6e6e6e;
}
@media (max-width: 1200px) {
.news-item {
height: 220px;
}
.magazine-item {
height: 220px;
}
.magazine-item.magazine-item-ricette {
height: 480px;
}
}
@media (max-width: 992px) {
.news-item {
height: 180px;
}
.magazine-item {
height: 180px;
}
.news-item .news-item__title {
font-size: 16px;
line-height: 18px;
}
.magazine-item.magazine-item-ricette {
height: 400px;
}
.magazine-item.magazine-item-ricette .magazine-item__title {
font-size: 34px;
line-height: 46px;
}
}