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

Visual indication to the various level of the notes of the Sidebar #3767

Closed
sebastienPoussard opened this issue Sep 18, 2020 · 5 comments
Closed

Comments

@sebastienPoussard
Copy link

Dear Dev Team,
As discuss in several Forum thread such as this one, It would be a nice feature to have a way to quickly visually identify the level of the different notes in the sidebar.
Could be with color or icon such as in Cherry :
image
or maybe with lines :
lines

Best regards.

@CalebJohn
Copy link
Collaborator

Hi @sebastienPoussard Different notebook levels have an associated list-item-depth class attached which will allow a user to customize the lines in any way that's possible with css in userchrome.css.

An example using background colour is below

.list-item-depth-1 {
    background-color: white;
}
list-item-depth-2 {
    background-color: red;
}
list-item-depth-3 {
    background-color: green;
}

@Athalef
Copy link

Athalef commented Sep 22, 2020

Hi CalebJohn. Thanks for the info but that's not what Sebastien requested.
The request is to be able to see the notes themselves in the sidebar with all the rest of the notbooks (without seperating them to the notes bar).
If that's something that can be done by editing userchrome.css file in the profile folder - I'd love to know how to.

@sebastienPoussard
Copy link
Author

Hi @CalebJohn ,

Thank you for your help !
I Did modified the file and get some result, I want to modify the CSS and get a more beautiful result.
Can you tell me where I can find the list of CSS element I can modify?
example : I want to select only the text part of element list-item-depth-1

@CalebJohn
Copy link
Collaborator

@sebastienPoussard

Take a look at this forum comment it will introduce you to discovering elements in Joplin that can be styled.

In your case you just need to add a .list-item flag
for example

.list-item-depth-1 .list-item {
    color: white;
}
list-item-depth-2 .list-item {
    color: red;
}
list-item-depth-3 .list-item {
    color: green;
}

This will style just the text color of those lines.

@sebastienPoussard
Copy link
Author

sebastienPoussard commented Sep 22, 2020

@CalebJohn Awesome ! Thanks for the help
I've come with a solution that is enough for me, for future readers :

.list-item-depth-1 .list-item {
    border-radius: 10%;
    margin-right: 20%;
    background-color: #0a1546c5 ;
}
.list-item-depth-2 .list-item {
    border-radius: 10%;
    margin-right: 20%;
    background-color: #484d06be;
}
.list-item-depth-3 .liste-item {
    border-radius: 10%;
    margin-right: 20%;
    background-color: #570a0acb;
}

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

3 participants