Skip to content

Is it possible to make a CSS that follows note's attributes? #2032

Answered by blumpcus
ghjardim asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know if this is possible, however, I know that I can apply custom CSS changes to specific notes with attributes using the method below:

For example, I can change the color of the note within the tree.

  1. Create a CSS code note.
  2. Give it the attribute '#appCss'
  3. Insert the relevant CSS changes you want.
    For example, if I want to change the title color within the note tree, I would write:
    span.fancytree-node.INSERT-ATTRIBUTE-NAME-HERE .fancytree-title { color: #ff3548!important; font-weight: bold; }
  4. To apply that CSS change to a specific note, add the attribute '#cssClass=INSERT-ATTRIBUTE-NAME-HERE' to that note.

Of course, change 'INSERT-ATTRIBUTE-NAME-HERE' in steps 3 & 4 with your …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@ghjardim
Comment options

Answer selected by ghjardim
Comment options

You must be logged in to vote
3 replies
@ghjardim
Comment options

@blumpcus
Comment options

@ghjardim
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants