- This topic has 12 replies, 4 voices, and was last updated 1 year, 6 months ago by
David.
-
AuthorPosts
-
January 8, 2021 at 4:13 am #1610694
Sourabh
HI,
According TO my need, I have changed Body BG color to white, its somehow affecting the comment section also, as it’s merged within white color, so how to set a small shadow around it so that we can detach it from the background (Refer sample in P-Section).
Also want to match Post comments button color to Match my footer color which is (#001819).
January 8, 2021 at 7:40 am #1611099David
StaffCustomer SupportHi there,
change your CSS to include the Comments area:
article.post, .comments-area { -webkit-box-shadow: 10px 10px 27px 0px rgba(0,0,0,0.75); -moz-box-shadow: 10px 10px 27px 0px rgba(0,0,0,0.75); box-shadow: 10px 10px 27px 0px rgba(0,0,0,0.25); }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 8, 2021 at 8:36 am #1611168Sourabh
Yes it’s working, can we turn the corner here as well ??
Means for post page and comment section in the bottom using the same CSS which you gave???
what should I change in the below code so that I will apply to all post pages including the comment section ??
should i replace article.post, .comments-area with .sidebar . widget ??
.sidebar .widget {
position: relative;
}
.sidebar .widget:before {
left: 5px;
transform: rotate(-5deg);
}
.sidebar .widget::after {
right: 5px;
transform: rotate(5deg);
}
.sidebar .widget::before, .sidebar .widget:after {
content: ”;
bottom: 10px;
height: 20px;
position: absolute;
z-index: -1;
background: transparent;
width: 50%;
box-shadow: 7px 6px 15px #333;
}January 8, 2021 at 5:54 pm #1611659Leo
StaffCustomer SupportCan you link us to the page in question?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 8, 2021 at 8:12 pm #1611704Sourabh
Yes..refer.
January 9, 2021 at 9:58 am #1612418Tom
Lead DeveloperLead DeveloperHi there,
Your selectors would likely need to be something like this:
.sidebar .widget, .comments-area { } .sidebar .widget:before, .comments-area:before { } .sidebar .widget:after, .comments-area:after { } .sidebar .widget:before, .sidebar .widget:after, .comments-area:before, .comments-area:after { }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 9, 2021 at 10:51 am #1612456Sourabh
No Tom, My question is about turning the corner of the posts page (Its background shadow corner)…
If I am not wrong then your CSS belongs to the sidebar…
January 10, 2021 at 6:03 am #1612994David
StaffCustomer SupportFor the post content it is this selector:
article.post { }
As per the CSS here:
https://generatepress.com/forums/topic/changing-body-bg-color/#post-1611099
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 10, 2021 at 6:05 am #1612996Sourabh
Rest CSS code will remain the same ??
January 10, 2021 at 6:09 am #1612998David
StaffCustomer SupportYes, you simply replace the element selectors with those selectors eg.
article.post { position: relative; } article.post:before { left: 5px; transform: rotate(5deg); /* Swap rotation */ } article.post:after { right: 5px; transform: rotate(-5deg); /* Swap rotation */ } article.post:before, article.post:after { content: ''; top: 10px; /* Swap bottom for top */ height: 20px; position: absolute; z-index: -1; background: transparent; width: 50%; box-shadow: 7px 6px 15px #333; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 10, 2021 at 6:22 am #1613007Sourabh
okay, trying, Will update you soon.
January 10, 2021 at 9:26 am #1613338Sourabh
Fine, its done..Thanku David.
January 10, 2021 at 4:10 pm #1613684David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.