Viewing File: /home/maglabs/lacentraleit/wp-content/themes/mlab/assets/less/_blog.less
/* ============================================================
8. BLOG
=============================================================*/
.home.blog&:not([class*="paged-"]) {
@media only screen and (min-width: 1025px) {
.content-inner[data-grid] .post, .content-inner[data-grid-normal] .post {
&:last-child {
margin-bottom: 0;
.post-inner {
padding-bottom: 0;
}
}
}
}
}
.post-title {
word-break: break-word;
a {
background-size: 0 100%;
background-repeat: no-repeat;
}
.highlight {
&:after,&:before {
display: none;
}
}
}
.post-tags {
display: flex;
gap: 8px;
clear: both;
a {
font-size: 14px;
line-height: 19px;
padding: 8px 20px;
color: inherit;
.rounded(10px);
&:before {
content: "#";
margin-right: 2px;
.opacity(.5);
}
&.gallery {
margin: 0;
}
}
}
.post-meta {
font-size: 11px;
letter-spacing: 1px;
font-weight: 600;
line-height: 13px;
text-transform: uppercase;
display: flex;
align-items: center;
margin-bottom: 26px;
img {
width: 21px;
height: 21px;
margin-right: 6px;
.rounded(50%);
}
.post-date {
position: relative;
padding-left: 17px;
&:after {
content: "";
position: absolute;
border-left: 1px solid;
top: 0;
bottom: 0;
left: 8px;
.opacity(.3);
}
}
}
.post-image,.pp-post-thumbnail-wrap {
position: relative;
z-index: 2;
overflow: hidden;
.rounded(15px);
.transition(0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0s);
.featured-image {
display: block;
position: relative;
}
.post-categories {
display: flex;
gap: 8px;
z-index: 3;
a {
font-size: 11px;
letter-spacing: 1px;
font-weight: 600;
line-height: 13px;
text-transform: uppercase;
padding: 5px 10px;
background: @white;
.box-shadow3;
.rounded(7.5px);
}
}
}
.site-content .addtoany_list {
display: flex;
flex-direction: column;
gap: 10px;
position: relative;
a {
margin: 0;
padding: 0;
width: 50px;
height: 50px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
.rounded(50%);
&:extend(.transition);
svg {
position: relative;
top: -1px/2;
}
path {
}
&:hover {
transform: scale(0.8);
span {
.opacity(1);
svg {
path {
fill: @white;
}
}
}
}
}
&[class*="a2a_kit_size_"] {
a:not(.addtoany_special_service) {
> span {
height: 50px;
line-height: 50px;
width: 50px;
display: flex;
align-items: center;
justify-content: center;
.rounded(50%);
svg {
width: 24px;
}
}
}
}
}
/* ============================================================
8.1. Blog Grid
=============================================================*/
.blog-grid {
&[class*="sidebar-"] {
.content-header:before {
display: none;
}
}
.content-inner[data-grid-normal],.content-inner[data-grid] {
display: flex;
flex-wrap: wrap;
&:after {
display: none;
}
&[data-columns="2"],
&[data-columns="3"],
&[data-columns="4"],
&[data-columns="5"] {
.post {
@media only screen and (min-width: 1025px) {
&:not(:last-child) {
&:after {
display: block;
}
}
}
@media only screen and (min-width: 544px) and (max-width: 1024px) {
&:not(:last-child) {
&:after {
display: block;
}
}
&:nth-child(2n) {
&:after {
display: none;
}
}
}
}
}
&[data-columns="2"] {
.post {
@media only screen and (min-width: 1025px) {
&:nth-child(2n) {
&:after {
display: none;
}
}
}
}
}
&[data-columns="3"] {
.post {
@media only screen and (min-width: 1025px) {
&:nth-child(3n) {
&:after {
display: none;
}
}
}
}
}
&[data-columns="4"] {
.post {
@media only screen and (min-width: 1025px) {
&:nth-child(4n) {
&:after {
display: none;
}
}
}
}
}
&[data-columns="5"] {
.post {
@media only screen and (min-width: 1025px) {
&:nth-child(5n) {
&:after {
display: none;
}
}
}
}
}
}
.post-inner {
position: relative;
@media only screen and (min-width: 1025px) {
padding-bottom: 20px;
}
&:hover {
.post-image {
transform: translateY(-5px);
.box-shadow6;
}
}
}
.hentry {
&.sticky {}
&:not(.has-post-thumbnail) {
.post-image {
margin-bottom: 0;
}
.post-content {
position: relative;
padding-top: 25px;
&:after {
content:"";
position: absolute;
left: 0;
top: 0;
width: 50px;
border-top: 1px solid;
.transition(0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0s);
.opacity(.2);
}
}
.post-inner:hover .post-content:after {
width: 80px;
.opacity(.35);
}
}
&.has-post-thumbnail {
.post-image {
margin-bottom: 25px;
}
}
}
.post-image {
position: relative;
a {
overflow: hidden;
}
img {
width: 100%;
}
}
.post-title {
margin: 0 0 11px 0;
font-size: 21px;
line-height: 1.4286;
}
.post-categories {
position: absolute;
left: 15px;
bottom: 15px;
}
.post-content {
margin-bottom: 35px;
word-break: break-word;
font-size: 15px;
line-height: 24px;
}
.post-footer {
position: relative;
&:after {
content: "";
position: absolute;
top: 0;
bottom: 0;
right: 0;
width: 60px;
background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}
.post-tags {
padding-right: 30px;
white-space: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
&::-webkit-scrollbar {
display: none;
}
a {
white-space: nowrap;
}
}
}
.navigation {
padding-top: 60px;
margin-bottom: 30px;
border-top: 1px solid rgba(0,0,60,.12);
}
}
/* ============================================================
8.2. Blog List
=============================================================*/
.blog-list {
.hentry {
display: flex;
margin-bottom: 40px;
align-items: center;
flex-direction: column;
@media only screen and (min-width: 605px) {
flex-direction: row;
gap: 40px;
margin-bottom: 60px;
}
&.sticky {}
&:hover {
.post-title a {
background-size: 100% 100%;
}
}
&:last-of-type {
margin-bottom: 0;
}
.post-header {
margin-bottom: 20px;
}
.post-title {
margin: 0;
font-size: 20px;
a {
background-size: 0 100%;
background-repeat: no-repeat;
}
}
.post-image {
flex-shrink: 0;
width: 100%;
margin-bottom: 20px;
@media only screen and (min-width: 605px) {
width: ~"calc(50% - 20px)";
margin: 0;
}
.post-categories {
display: none;
}
img {
width: 100%;
}
}
.post-meta-data {
list-style: none;
padding: 0;
margin: 0 0 10px 0;
display: flex;
align-items: center;
gap: 15px;
white-space: nowrap;
li {
margin: 0;
font-weight: 600;
font-size: 12px;
line-height: 16px;
letter-spacing: .04em;
text-transform: uppercase;
&.post-categories a {
&:before {
content: ",";
margin: 0 2px 0 0;
}
&:first-child {
&:before {
display: none;
}
}
}
}
}
.post-date {
position: relative;
padding-left: 15px;
.opacity(.6);
&:before {
content: "";
position: absolute;
width: 1px;
height: 12px;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,60,.3);
left: 0;
}
}
.post-content {
font-size: 15px;
> .wp-block-group {
margin-bottom: 25px;
}
}
}
&[class*="sidebar-"] {
@media only screen and (min-width: 769px) and (max-width: 992px) {
.hentry {
flex-direction: column;
gap: 0;
.post-image {
width: 100%;
margin-bottom: 30px;
}
}
}
}
}
/* ============================================================
8.3. Blog Single
=============================================================*/
.single-post {
.hentry {
position: relative;
z-index: 4;
margin-bottom: 70px;
}
.post-thumbnail {
margin-bottom: 40px;
}
.share {
position: absolute;
&.element-is-sticky {
padding-top: 50px !important;
}
}
.sticky-element-placeholder {
height: 0 !important;
}
.post-content {
//margin-bottom: 40px;
p {
margin-bottom: 30px;
&:last-child {
margin-bottom: 0;
}
}
> .post-categories {
font-size: 11px;
letter-spacing: 1px;
line-height: 16px;
text-transform: uppercase;
margin-bottom: 25px;
a {
font-weight: 700;
margin: 0 2px 0 0;
}
span {
font-weight: 600;
}
}
&:after {
content: "";
display: table;
clear: both;
}
}
.post-tags {
flex-wrap: wrap;
margin-top: 40px;
&:empty {
display: none;
}
}
.post-author-box {
border-top: 1px solid rgba(0,0,60,.12);
border-bottom: 1px solid rgba(0,0,60,.12);
padding: 30px 0;
margin-top: 60px;
position: relative;
text-align: inherit;
.author-description {
margin-top: 10px;
font-size: 14px;
}
}
&:not([class*="sidebar-"]) {
.main-content > .post {
.post-content,.post-author-box,.post-tags,.post-footer {
@media only screen and (min-width: 1025px) {
width: 66.666666%;
margin-left: auto;
margin-right: auto;
}
}
}
#respond {
padding-top: 70px;
&:after {
content: "";
position: absolute;
left: -1000px;
right: -1000px;
top: -1px;
bottom: -80px;
z-index: -1;
}
.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
background-color: @white;
.box-shadow3;
}
}
}
.no-comments {
margin-bottom: 40px;
.opacity(.7);
}
}
/* ============================================================
8.4. Blog Related
=============================================================*/
#related-posts {
border-top: 1px solid rgba(0,0,60,.12);
padding-top: 50px;
.hentry {
&.has-post-thumbnail .post-image {
margin-bottom: 20px;
}
.post-date {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
display: block;
margin-top: 20px;
.opacity(.7);
}
.post-header {
line-height: 1.3;
a {
display: block;
line-height: 1.55;
font-size: 15px;
font-weight: 600;
word-break: break-word;
}
}
&:before {
display: none;
}
}
.grid-posts {
&.content-inner {
margin-left: -15px;
margin-right: -15px;
.post {
padding: 0 15px;
margin-bottom: 30px;
@media only screen and (min-width: 1025px) {
margin-bottom: 0;
}
}
}
}
}
.related-posts-title,.comments-title,.comment-reply-title,.projects-related-title,.product .related > h2, .product .upsells > h2 {
margin: 0 0 25px 0;
font-size: 12px;
line-height: 1.25;
font-weight: bold;
color: inherit;
text-transform: uppercase;
letter-spacing: 1px;
opacity: .7;
a {
display: none;
@media only screen and (min-width: 992px) {
display: block;
font-size: 16px;
font-weight: 600;
position: absolute;
bottom: 1px;
right: 0;
&:after {
content:"";
height: 0;
position: absolute;
left: 0;
width: 0;
bottom: -3px;
border-bottom: 1px solid;
.opacity(.5);
.transition;
}
&:hover {
&:after {
width: 100%;
}
}
}
}
}
Back to Directory
File Manager