How to achieve a paper effect in CSS for Joplin?

  • Thread starter shivajikobardan
  • Start date
  • Tags
    Css Paper
In summary, someone needs help creating a user style for CSS that will achieve the effect of a paper background.
  • #1
shivajikobardan
674
54
f18e83ad96b2f3700f1e69c8fc2a58497613dfa6.jpg

I want to achieve this effect in Joplin.

I need some CSS for it in userstyle.css.

I've few examples here:

https://freefrontend.com/css-paper-effects/

So, I am wondering if anyone could write a userstyle.css for me. I've gave a try but it's not working.

CSS:
 /* The below controls how a note displays when printed or exported to pdf. The intention is to make prints primarily black and white. */
    
    
    
     @media print {
         body {
    background-color: #eee;
      position: relative;
      z-index: 0;
      box-sizing: border-box;
      width: 500px;
      margin: 30px auto;
      
      font-family: 'Tangerine', cursive;
      font-size: 26px;
      
      border: 10px solid #fff;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
      /* Background lines */
      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;
            /* black table borders for printing */
             background: #ffffff;
            /* white table background for printing */
        }
         a {
             color: #000000;
             text-decoration: none;
            /* modify hyperlink text */
        }
         .resource-icon {
             background-color: #000000;
            /* makes any linked resource icons black */
        }
         blockquote {
             border-left: 4px solid #000000;
             /* makes the bar at the left of a blockquote black */
             opacity: 1;
             /* makes the blockquote text black */
        }
         code {
             color: #000000;
             font-weight: bold;
            /* bold code text for printing */
        }
         .inline-code {
             color: #000000;
             border: 0px none;
             background: none;
             font-weight: bold;
            /* bold code text for printing and removes the grey background and border*/
        }
         pre.hljs {
             border: 0px none;
             background: #F0F0F0;
             /* removes the border from fenced code blocks and modifies the grey background colour */
       }
         span[class^='hljs-'] {
             color: #000000 !important;
            /* modifies code highlighting colour for printing (all black!!) */
       }
         hr {
             border-bottom: 1px solid #000000;
            /* change horizontal rules to black for printing */
        }
         h1 {
             border: none;
             border-bottom: 1px solid #000000;
            /* change horizontal lines under h1 tags to black for printing */
        }
         mark {
             background-color: #F0F0F0;
            /* sets highlighter ==mark== to grey for printing */
        }
    }

Note that part of code was written to print codes in black and white I just edited the body part here.
 
Technology news on Phys.org

1. What is a paper effect in CSS?

A paper effect in CSS refers to creating a visual effect that imitates the look and feel of a piece of paper, such as adding texture, shadows, and other design elements.

2. How can I achieve a paper effect in CSS?

To achieve a paper effect in CSS for Joplin, you can use CSS properties such as box-shadow, background-image, and background-color to add shadows, textures, and other design elements to your document.

3. Can I add a paper effect to specific elements in my Joplin document?

Yes, you can add a paper effect to specific elements in your Joplin document by using CSS selectors to target those elements and applying the desired CSS properties.

4. Are there any CSS libraries or frameworks that can help achieve a paper effect in Joplin?

Yes, there are several CSS libraries and frameworks, such as Materialize and Bootstrap, that offer pre-designed paper effects and other design elements that you can easily apply to your Joplin document.

5. Can a paper effect in CSS be applied to Joplin documents across different devices and browsers?

Yes, as long as the CSS properties and values are supported by the device and browser, the paper effect will be applied consistently across different devices and browsers.

Similar threads

  • Programming and Computer Science
Replies
10
Views
1K
  • Programming and Computer Science
Replies
9
Views
3K
  • Programming and Computer Science
Replies
4
Views
1K
  • Programming and Computer Science
Replies
9
Views
4K
  • Programming and Computer Science
Replies
3
Views
2K
  • Programming and Computer Science
Replies
2
Views
5K
  • Programming and Computer Science
Replies
1
Views
3K
  • Programming and Computer Science
Replies
1
Views
1K
  • Programming and Computer Science
Replies
4
Views
2K
  • Computing and Technology
Replies
4
Views
2K
Back
Top