Code snippets: File cards

  1. Change the border-radius of a file card

    .OcuDarcula .card__wrapper, .OcuLight .card__wrapper { border-radius: 0px; }

     

  2. Change a corner of a file card

    .OcuDarcula .card__wrapper, .OcuLight .card__wrapper { border-top-left-radius: 5px; border-top-right-radius: 10px; border-bottom-right-radius: 0px; border-bottom-left-radius: 5px; }

     

  3. Change the background color of a file card

    .OcuDarcula .card__wrapper, .OcuLight .card__wrapper { background: red; }

     

  4. Remove the title of a file card

     

  5. Remove the line under the title of a file card

     

  6. Remove the tabs when there’s only one tab present

     

  7. Change the font of the body text

     

  8. Change the font of the title

     

  9. Add styling to a specific file card based on its ID

     

  10. Enlarging an asset to half the size of a file card (TEMPLATE)

     

  11. Make asset of a file card full screen (template)

     

  12. Make title in application visible on file card

     

  13. Change the color of the arrows in the asset swiper:
    Copy the text between the quotes and change fill%3D'%23000000' to fill%3D'%230082B4'
    The %23 is replacing the # and the other numbers are the same as your hex code: #0082B4 = %230082B4

QR Codes

When you add a QR code to a File Card it is possible to style it the way you want.

Default it will use the Accent Color from your Theme (for example brown in this QR code).

Use these snippets to change the color of the background and the qr code blocks.

When you change the color, be aware of the contrast. If the contrast isn’t good enough, you wont be able to scan the QR code.

qrcode_default_brown.png

Change the color to red

qrcode_witrood.png

Change the background to black and the color to green

Change the color back to the original QR code color

  1. Change the width and the height of the QR code

  1. To align the QR code the left, use this snippet

  1. Change a specific QR code

    1. First get the ID

    2. Change this snippet so it changes the correct filecard