Tagged: x
-
AuthorPosts
-
March 26, 2016 at 1:13 am #853204
Hello,
I would like to have content area borders in Renew stack just like they are in Integrity. Is there an easy css trick for that? I don’t need a border below the navbar or header, just on the left and right side.
http://theme.co/x/demo/renew/1/5-reasons-you-need-the-x-theme/
http://theme.co/x/demo/integrity/1/5-reasons-you-need-the-x-theme/Thank you!
March 26, 2016 at 2:23 am #853243Hi There,
Thanks for writing in! Please navigate to Appearance > Customize. And in Customizer under the Layout and Design panel, set the Site Layout option to Boxed.
Hope it helps, Cheers!
March 26, 2016 at 3:06 am #853274Hi,
thank you for you reply. I already have a boxex layed. I would like to have the content area borders with Renew stack. Ingtegrity has them but Renew is without borders
March 26, 2016 at 3:33 am #853288Hello There,
Sorry for the confusion. To have the content area borders with Renew stack, please add the following css code in the customizer, Appearance > Customize > Custom > CSS or insert this code in your child themeβs style.css (if you are using a child theme)
.x-renew .entry-wrap { display: block; padding: 60px; background-color: #fff; border-radius: 4px; box-shadow: 0 0.15em 0.35em 0 rgba(0,0,0,0.135); }
We would loved to know if this has work for you. Thank you.
March 26, 2016 at 5:15 am #853337Unfortunately that added the shadow on the edge of the post. See the attached image.
I found this other code here:
https://community.theme.co/forums/topic/add-a-dropshadow-in-renew-stack//* header */ .x-navbar { -moz-box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); -webkit-box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); } /* slider */ .x-slider-container.below { -moz-box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); -webkit-box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); } /* footer widget and footer */ .x-colophon.top, .x-colophon.bottom { -moz-box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); -webkit-box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); } /* content */ .x-container-fluid { -moz-box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); -webkit-box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); box-shadow: 0 0 0.35em 0 rgba(0,0,0,0.3); }
It doesn’t work either. It adds the shadow to the footer widget and footer only. I made a slight variation to the above code because it added the shadow to right side only.
March 26, 2016 at 6:30 am #853363Hi There,
Please try with this CSS:
.x-main { box-shadow: -2px 0 2px rgba(0, 0, 0, 0.7), 2px 0 2px rgba(0, 0, 0, 0.7); }
Let us know how it goes!
March 26, 2016 at 6:46 am #853368Hi,
thank you! π
I just had to add header and footer areas. Now it works with this code!
.x-navbar, .x-main, .x-colophon.top, .x-colophon.bottom { box-shadow: -1px 0 1px rgba(0, 0, 0, 0.1), 1px 0 1px rgba(0, 0, 0, 0.1); }
March 26, 2016 at 6:53 am #853370Glad it worked π
If you need anything else, please let us know.
March 26, 2016 at 6:57 am #853371Oh no! I was cheering too early π
It works on the front page, but on a post page the .x-main shadow is only around the post (and header and footer). Shouldn’t be around the post but around the white content area
March 26, 2016 at 7:25 am #853378Hi There,
Please remove the previous CSS and add the following CSS:
.site{ box-shadow: -5px 0 5px rgba(0,0,0,0.9),5px 0 5px rgba(0,0,0,0.9); }
Hope it helps π
March 26, 2016 at 7:34 am #853381Yes, now it works π
thank you!
March 26, 2016 at 7:44 am #853388You’re very welcome π
-
AuthorPosts