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

Related to How to achieve a paper effect in CSS for Joplin?

1. How can I achieve a paper effect in CSS for Joplin?

To achieve a paper effect in CSS for Joplin, you can start by creating a background image that resembles paper texture. You can then apply this background image to the desired elements using CSS properties like background-image and background-repeat.

2. Can I use CSS box-shadow to create a paper effect in Joplin?

Yes, you can use CSS box-shadow to create a paper effect in Joplin. By applying a subtle box-shadow to the elements, you can simulate the appearance of shadows on a piece of paper, adding depth and realism to your design.

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

While there are no specific CSS libraries or frameworks dedicated to creating a paper effect in Joplin, you can use popular libraries like Bootstrap or Materialize CSS to enhance your design with pre-defined styles and components that can be customized to achieve the desired paper effect.

4. How can I add a torn paper effect to my CSS design in Joplin?

To add a torn paper effect to your CSS design in Joplin, you can use CSS pseudo-elements like ::before and ::after to create irregular shapes that resemble torn edges. By styling these pseudo-elements with gradients and shadows, you can achieve a realistic torn paper effect.

5. Is it possible to animate the paper effect in CSS for Joplin?

Yes, it is possible to animate the paper effect in CSS for Joplin. You can use CSS animations or transitions to add movement and interactivity to your design, such as simulating the flipping of pages or the crumpling of paper. By combining CSS animations with the paper effect techniques mentioned earlier, you can create dynamic and engaging user experiences.

Similar threads

  • Programming and Computer Science
Replies
10
Views
1K
  • Programming and Computer Science
Replies
2
Views
371
  • Programming and Computer Science
Replies
9
Views
3K
  • Programming and Computer Science
Replies
4
Views
2K
  • Programming and Computer Science
Replies
9
Views
4K
  • Programming and Computer Science
Replies
3
Views
3K
  • 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
Back
Top