Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Code: NPF / Text Post - Image Fix by @mhango | @themesbyeva
- Version 5 (15th June 2023)
- Rules:
- > don't alter / remove the credit
- > don't copy parts of this code or use as a base
- > don't edit this code and redistribute
- > don't claim as your own
- Disclaimer: This code might not work on every theme. Always back-up your theme before changing the code.
- For detailed instructions and support please visit https://themesbyeva.tumblr.com.
- */
- {block:PermalinkPage}
- .text figure + p {
- margin-top:1em;
- }
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(:is(.tmblr-full img,.post_media_photo_anchor img)):has(.tumblr_blog) p:first-child {
- color:{color:background};
- font-size:0;
- display:none;
- }
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(:is(.tmblr-full img,.post_media_photo_anchor img)):has(.tumblr_blog) p {
- color:{color:text};
- font-size:12px;
- }
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(:is(.tmblr-full img,.post_media_photo_anchor img)) p {
- margin:10px 20px;
- }
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(:is(.tmblr-full img,.post_media_photo_anchor img)) {
- background:{color:Notebox Background};
- }
- {/block:PermalinkPage}
- {block:indexpage}
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(:is(.tmblr-full img,.post_media_photo_anchor img)):has(.tumblr_blog) {
- color:{color:background};
- font-size:0;
- }
- {/block:indexpage}
- .text:has(.tmblr-full img) .op-blockquote,
- .text:has(.tmblr-full img) .npf-post-source,
- .text:has(.tmblr-full img) .tumblr_blog,
- .text:has(.post_media_photo_anchor img) .op-blockquote,
- .text:has(.post_media_photo_anchor img) .npf-post-source,
- .text:has(.post_media_photo_anchor img) .tumblr_blog
- {
- display:none;
- }
- .text {
- padding:15px;
- }
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(.tmblr-full img),
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(.post_media_photo_anchor img) {
- padding:0;
- }
- .post_media_photo_anchor img, .post_media_photo img {
- height:100%;
- width:100%;
- }
- {block:indexpage}
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(.tmblr-full img) :is(p,ul,ol,h1,h2,h3,h4,h5),
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(.post_media_photo_anchor img) :is(p,ul,ol,h1,h2,h3,h4,h5)
- {
- display:none;
- }
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(.tmblr-full img),
- .text:not(:has(.title)):not(:has(p + .npf_row)):has(.post_media_photo_anchor img)
- {
- background-color: {color:background};
- border-color:{color:background};
- }
- {/block:indexpage}
- /* End of Text Post - Image Fix */
Advertisement
Add Comment
Please, Sign In to add comment