generator-fe-kit
Version:
Pixelant Front-End Starter Kit
134 lines (115 loc) • 2.64 kB
text/less
.news-carousel {
position: relative;
margin: 40px 0 20px;
}
@media (min-width: 992px) {
.news-carousel {
padding: 0 50px;
}
}
.news-carousel__wrapper {
padding-bottom: 40px;
}
.news-carousel__media-preview {
min-height: 180px;
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
margin-bottom: 20px;
}
.news-carousel__img-wrap {
position: relative;
}
//header
.news-carousel__slide .news-article-header h3 {
font-size: 20px;
}
@media (min-width: 992px) {
.news-carousel__slide .news-article-header h3 {
font-size: 18px;
}
}
@media (min-width: 1200px) {
.news-carousel__slide .news-article-header h3 {
font-size: 20px;
}
}
//info
.news-carousel__item-info {
z-index: 90;
text-align: left;
left: 0;
width: 100%;
// height: 40px;
position: absolute;
background-color: rgba(255,255,255,0.85);
padding: 10px 10px;
// top: 140px;
bottom: 0;
text-transform: uppercase;
font-size: 14px;
}
.news-carousel__item-info .news-list-category{
color: @main-color;
}
.news-list-category:before{
font-family: 'icons';
speak: none;
position: relative;
display: inline-block;
top: 1px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
// .icons();
color: #888;
content: "\e680";
padding-right: 8px;
}
.news-carousel__item-info .news-list-category:after {
border-right: 1px solid @main-color;
content: '';
height: 12px;
padding-right: 4px;
margin-top: 4px;
position: absolute;
}
.news-carousel__item-info .news-list-date {
padding-left: 8px;
}
@media (min-width: 992px) and (max-width: 1199px) {
.news-carousel__item-info {
text-align: right;
}
.news-carousel__item-info .news-list-category:after {
display: none;
}
}
.news-carousel__btn-next, .news-carousel__btn-prev {
display: none;
}
@media (min-width: 992px) {
.news-carousel__btn-next, .news-carousel__btn-prev {
display: block;
background: none;
.icons();
color: @main-color;
-moz-osx-font-smoothing: grayscale;
height: auto;
font-size: 30px;
}
}
.news-carousel__btn-next:before{
content: '\e675';
}
.news-carousel__btn-prev:before{
content: '\e672';
}
.news-carousel__pagination .swiper-pagination-bullet-active {
background: @main-color;
}