Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom css rules applied to table of contents aren't persisted across sessions #2

Closed
smoens opened this issue Feb 12, 2022 · 2 comments

Comments

@smoens
Copy link

smoens commented Feb 12, 2022

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'custom.css' file of the specific graph
  2. Add custom css rules to modify table of content style
    e.g. red border
.tocBoard {
  display: flex;
  flex-direction: column;
  padding: 1em;
  border: 1px solid #FF0000;
}

The custom.css reloads and shows the changed style until the graph is closed again. After closing and reopening the logseq graph the changes are lost even though they are saved in the custom.css file.

Expected behavior
As described in logseq-toc-plugin#changing-colours styling of table of contents should inherit styles as defined in custom.css and be persisted across sessions.

Screenshots
Custom styling rule for .tocBoard as defined in the custom.css is ignored
image

Desktop (please complete the following information):

  • OS: Windows
  • Logseq Version: 0.5.9
@benjypng
Copy link
Owner

Hi! I updated the instructions.

For the attributes you want to change you need to add the !important flag. E.g:

.tocBoard {
    border: 1px solid #FF0000 !important;
}

@smoens
Copy link
Author

smoens commented Feb 13, 2022

Thank you for your quick feedback! This indeed solved the issue.

@smoens smoens closed this as completed Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants