Skip to content

Instantly share code, notes, and snippets.

@ciceronianus
Last active September 17, 2020 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ciceronianus/93286f9d3530ca6d9b72099e911de794 to your computer and use it in GitHub Desktop.
Save ciceronianus/93286f9d3530ca6d9b72099e911de794 to your computer and use it in GitHub Desktop.
A special tag #c:rainbow that changes the color of the following ^^highlight^^ and [[ ]] tag.
/*
Author: @CatoMinor3
Version: 1.1
Date: September 17th, 2020
Paypal support: https://www.paypal.me/catominor3
What it does: A special tag #c:rainbow that changes
the color of the following ^^highlight^^ and [[ ]] tag, or bold or emphasis.
How to use it?
1) Put this code into roam/css
2) Simply assign class to the item under {{mermaid}}:
class IDOFTHEITEM merCOLOR;
*/
[data-tag="c:rainbow"] + .roam-highlight,
[data-tag="c:rainbow"] + .rm-page-ref-link-color {
background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
}
[data-tag="c:rainbow"] + em,
[data-tag="c:rainbow"] + strong {
background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment