File: /home/z/w/a/zwafgyp/dodolodge-net/wp-content/themes/hotel-wp/assets/sass/shortcodes/_posts.scss
// Shortcode Thim Posts
.thim-sc-posts {
&.site-content {
padding-top: 0;
padding-bottom: 0;
.blog-content {
width: auto !important;
height: auto !important;
.item, .item-first {
padding: 0;
}
.item {
article.style-3 {
.content-inner {
height: 216px !important;
}
}
}
article {
margin-bottom: 10px;
.entry-content{
padding: 25px 0 30px;
&:after {
display: none;
}
.entry-meta {
margin: 0;
padding: 0;
}
.entry-title {
font-size: 24px;
line-height: 34px;
}
.entry-summary {
margin-top: 20px;
}
.readmore {
margin-top: 30px;
}
}
.entry-meta span {
float: none;
margin: 0;
}
//Style 2
&.style-2 {
margin-bottom: 30px;
&:hover {
.entry-top {
&:before {
background: rgba(2,6,21,0.65);
}
}
.entry-content {
@include transform(translateY(0px));
.entry-summary {
opacity: 1;
visibility: visible;
}
.readmore {
opacity: 1;
visibility: visible;
}
}
}
.content-inner {
position: relative;
overflow: hidden;
cursor: pointer;
height: auto !important;
}
.entry-top {
position: relative;
&:before {
content: '';
background: rgba(2,6,21,0.35);
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
@include transition(all 0.5s);
z-index: 1;
}
}
.entry-content {
width: 100%;
padding: 20px 30px;
position: absolute;
bottom: 0px;
left: 0;
color: #ffffff;
z-index: 2;
@include transition(all 0.5s);
@include transform(translateY(117px));
.entry-title {
font-size: 20px;
line-height: 36px;
a {
color: #ffffff;
}
}
.entry-info {
font-size: 15px;
line-height: 24px;
}
.entry-summary {
font-size: 15px;
line-height: 24px;
max-height: 72px;
overflow: hidden;
opacity: 0;
visibility: hidden;
margin: 10px 0px 0px;
@include transition(all 0.7s);
}
.readmore {
opacity: 0;
visibility: hidden;
margin: 10px 0px 0px;
@include transition(all 0.7s);
a {
font-weight: normal;
i {
display: none;
}
}
}
}
}
//Style 3
&.style-3 {
margin-bottom: 30px;
&:hover {
.entry-top {
&:before {
background: rgba(2,6,21,0.65);
}
}
.entry-content {
@include transform(translateY(0));
.entry-summary {
opacity: 1;
visibility: visible;
}
.readmore {
opacity: 1;
visibility: visible;
height: auto;
margin-top: 10px;
}
}
}
.content-inner {
position: relative;
overflow: hidden;
cursor: pointer;
height: auto !important;
}
.entry-top {
position: relative;
&:before {
content: '';
background: rgba(2,6,21,0.35);
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
@include transition(all 0.5s);
z-index: 1;
}
}
.entry-content {
width: 100%;
padding: 20px 30px;
position: absolute;
bottom: 0px;
left: 0;
color: #ffffff;
z-index: 2;
@include transition(all 0.5s);
@include transform(translateY(82px));
.entry-category {
overflow:hidden;
border-radius: 5px;
padding: 0px 8px;
line-height: 22px;
display: inline-block;
text-transform: uppercase;
text-align: center;
a {
color: #ffffff;
display: inline-block;
font-size: 13px;
line-height: 1;
}
}
.entry-title {
font-size: 20px;
line-height: 26px;
a {
color: #ffffff;
}
}
.entry-date {
font-size: 13px;
color: rgba(255,255,255,0.7);
line-height: 34px;
font-weight: normal;
text-transform: capitalize;
&:before {
content: "\f2d1";
font-family: "Ionicons";
margin-right: 8px;
font-size: 16px;
}
}
.entry-info {
font-size: 15px;
line-height: 24px;
}
.entry-summary {
font-size: 15px;
line-height: 24px;
max-height: 72px;
overflow: hidden;
opacity: 0;
visibility: hidden;
margin: 10px 0px 0px;
@include transition(all 0.7s);
}
.readmore {
opacity: 0;
visibility: hidden;
height: 0;
margin: 0;
@include transition(all 0.7s);
a {
font-weight: normal;
i {
display: none;
}
}
}
}
&.post-item {
.entry-content {
.entry-meta {
display: none;
}
}
}
&.post-item-first {
&:hover {
.entry-content {
@include transform(translateY(0));
}
}
.entry-content {
@include transform(translateY(72px));
.entry-title {
font-size: 26px;
line-height: 36px;
}
}
}
}
}
}
}
}
.tp-list-posts-wrapper{
position: relative;
.post-view{
position: absolute;
right: 0;
top: -70px;
font-size: 18px;
font-weight: 600;
a{
color: var(--thim-body-primary-color);
text-transform: uppercase;
i{
@extend .thim-button-icon;
color: var(--thim-body-primary-color);
width: unset;
max-width: unset;
background: transparent;
transform: rotate(90deg);
}
&:hover {
i {
@extend .effect-right;
}
}
}
}
.tp-list-posts{
&.style-4{
.post-item{
.thumb{
position: relative;
&::before{
position: absolute;
content: '';
width: 100%;
height: 50%;
left: 0;
bottom: 0;
background: linear-gradient(to bottom,transparent,rgba(0,0,0,0.5));
}
.tp-post-info{
position: absolute;
left: 0;
bottom: 0;
padding: 30px;
color: #ffffff;
.post-title{
font-size: 30px;
line-height: 1;
margin-bottom: 0;
@media(max-width:767px){
font-size: 24px;
}
a{
color: #ffffff;
position: relative;
&:hover{
&::before{
width: 100%;
}
}
&::before{
position: absolute;
content: '';
width: 0;
height: 1px;
left: 0;
bottom: 0;
background: #ffffff;
transition: all 0.3s ease;
}
}
}
}
}
}
.owl-dots{
text-align: center;
margin-top: 40px;
@media(max-width:767px){
margin-top: 30px;
}
.owl-dot{
display: inline-block;
&.active,&:hover{
span{
background: #118acb;
}
}
span{
width: 11px;
height: 11px;
display: block;
background: #ebebeb;
transform: rotate(45deg);
margin: 4px;
}
}
}
}
&.style-5{
.slick-list{
.post-item{
padding: 0 15px;
.thumb{
position: relative;
&::before{
position: absolute;
content: '';
left: 0;
top: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom,transparent,rgba(0,0,0,0.4));
}
&:hover{
&::before{
background: rgba(0,0,0,0.5);
}
.tp-post-info{
transform: translateY(0);
.readmore{
opacity: 1;
}
}
}
.tp-post-info{
position: absolute;
left: 0;
bottom: 0;
color: #ffffff;
padding: 20px 30px;
transition: all 0.3s;
transform: translateY(35px);
@media(max-width:767px){
padding: 20px;
}
.post-title{
font-size: 24px;
line-height: 1.2;
margin-top: 0;
margin-bottom: 15px;
a{
color: #ffffff;
position: relative;
&:hover{
&::before{
width: 100%;
}
}
&::before{
position: absolute;
content: '';
width: 0;
height: 1px;
left: 0;
bottom: 0;
background: #ffffff;
transition: all 0.3s ease;
}
}
}
.entry-info{
font-size: 18px;
font-weight: 300;
margin-bottom: 10px;
}
.readmore{
font-size: 18px;
opacity: 0;
}
}
}
}
}
.slick-dots{
margin-top: 60px;
margin-left: 0;
margin-bottom: 0;
text-align: center;
@media(max-width:767px){
margin-top: 30px;
}
li{
cursor: pointer;
display: inline-block;
line-height: 1;
width: 11px;
height: 11px;
background: #d8d8d8;
transform: rotate(45deg);
margin: 0 5px;
&.slick-active,&:hover{
background: var(--thim-body-primary-color);
}
button{
font-size: 0;
position: relative;
line-height: 1;
border: none;
}
}
}
}
&.style-6{
margin-left: -15px;
margin-right: -15px;
.slick-list{
.post-item{
margin: 0 15px;
background: #ffffff;
.thumb{
position: relative;
.post-category{
position: absolute;
left: 30px;
bottom: 30px;
a{
padding: 3px 8px;
color: #ffffff;
background: var(--thim-body-primary-color2);
font-size: 14px;
font-weight: 300;
text-transform: uppercase;
}
}
}
.tp-post-content{
padding: 30px;
@media(max-width:767px){
padding: 25px;
}
.post-title{
margin-top: 0;
line-height: 1;
margin-bottom: 20px;
a{
position: relative;
font-size: 30px;
@media(max-width:767px){
font-size: 24px;
}
&::before{
position: absolute;
content: '';
left: 0;
bottom: 0;
width: 0;
height: 1px;
transition: all 0.5s ease;
}
&:hover{
&::before{
width: 100%;
}
}
}
}
.tp-post-info{
font-weight: 300;
i{
font-size: 24px;
color: #ffae00;
margin-right: 12px;
}
.date-time{
margin-right: 30px;
@media(max-width: 767px){
margin-right: 15px;
}
}
.date-time,.author{
display:inline-flex;
align-items: center;
}
}
}
}
}
}
}
.slider__counter{
padding-top: 70px;
@media(max-width: 767px){
padding-top: 30px;
}
}
}