This is the custom CSS code I’ve added for the Single Post Template:
/* Singe Post Video Image */
.wp-block-embed.is-type-video {
background: url(https://playground.divilover.com/wp-content/uploads/2021/02/laptop-bg3.png) no-repeat;
background-size: 100% auto;
max-width: 875px;
}
.wp-block-embed__wrapper {
max-width: 69%;
margin: 0 auto;
padding: 3.8% 0 25%;
}
/* Single Post Nav */
span.nav-previous,
span.nav-next {
float: none;
display: block;
}
span.nav-previous a,
span.nav-next a {
padding: 100px 50px;
display: block;
width: 100%;
transition: all .3s ease-in-out;
}
span.nav-previous a:hover,
span.nav-next a:hover {
background: #b1e5e0;
}
span.nav-previous {
text-align: right;
}
@media (max-width:980px) {
span.nav-previous {
text-align: left;
}
span.nav-previous a,
span.nav-next a {
padding: 50px;
}
}
/* Single Post Comments */
p.comment-form-comment {
width: 51%;
float: left;
margin-right: 2%;
}
p.comment-form-cookies-consent {
clear: both;
}
/* Single Post Meta */
.dl-meta {
display: flex;
justify-content: center;
}
.dl-meta .et_pb_module_header {
padding: 0;
}
.dl-meta .et_pb_blurb .et_pb_blurb_container {
vertical-align: middle;
}
@media (max-width:980px) {
.dl-meta {
flex-direction: column;
align-items: center;
}
.dl-meta .et_pb_blurb {
width: 80%;
max-width: 200px;
}
}
0 Comments