TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to achieve paper effect in CSS for Joplin?

3 pointsby shivajikobardanabout 2 years ago
https:&#x2F;&#x2F;global.discourse-cdn.com&#x2F;standard14&#x2F;uploads&#x2F;cozic&#x2F;original&#x2F;3X&#x2F;f&#x2F;1&#x2F;f18e83ad96b2f3700f1e69c8fc2a58497613dfa6.jpeg<p>I want to achieve this effect in Joplin.<p>I need some CSS for it in userstyle.css.<p>I&#x27;ve few examples here:<p>https:&#x2F;&#x2F;freefrontend.com&#x2F;css-paper-effects&#x2F;<p>So, I am wondering if anyone could write a userstyle.css for me. I&#x27;ve gave a try but it&#x27;s not working.<p><pre><code> &#x2F;* The below controls how a note displays when printed or exported to pdf. The intention is to make prints primarily black and white. *&#x2F; @media print { body { background-color: #eee; position: relative; z-index: 0; box-sizing: border-box; width: 500px; margin: 30px auto; font-family: &#x27;Tangerine&#x27;, cursive; font-size: 26px; border: 10px solid #fff; border-radius: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.5); &#x2F;* Background lines *&#x2F; background-image: linear-gradient(#f5f5f0 1.1rem, #ccc 1.2rem); background-size: 100% 1.2rem; line-height: 1.2rem; padding: 1.4rem 0.5rem 0.3rem 3.5rem; } table th, table td { color: #000000; border: 1px solid #000000; &#x2F;* black table borders for printing *&#x2F; background: #ffffff; &#x2F;* white table background for printing *&#x2F; } a { color: #000000; text-decoration: none; &#x2F;* modify hyperlink text *&#x2F; } .resource-icon { background-color: #000000; &#x2F;* makes any linked resource icons black *&#x2F; } blockquote { border-left: 4px solid #000000; &#x2F;* makes the bar at the left of a blockquote black *&#x2F; opacity: 1; &#x2F;* makes the blockquote text black *&#x2F; } code { color: #000000; font-weight: bold; &#x2F;* bold code text for printing *&#x2F; } .inline-code { color: #000000; border: 0px none; background: none; font-weight: bold; &#x2F;* bold code text for printing and removes the grey background and border*&#x2F; } pre.hljs { border: 0px none; background: #F0F0F0; &#x2F;* removes the border from fenced code blocks and modifies the grey background colour *&#x2F; } span[class^=&#x27;hljs-&#x27;] { color: #000000 !important; &#x2F;* modifies code highlighting colour for printing (all black!!) *&#x2F; } hr { border-bottom: 1px solid #000000; &#x2F;* change horizontal rules to black for printing *&#x2F; } h1 { border: none; border-bottom: 1px solid #000000; &#x2F;* change horizontal lines under h1 tags to black for printing *&#x2F; } mark { background-color: #F0F0F0; &#x2F;* sets highlighter ==mark== to grey for printing *&#x2F; } }</code></pre>

1 comment

shivajikobardanabout 2 years ago
Note that part of code was written to print codes in black and white I just edited the body part here.