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

FR: Add Class to Style Active Note in BC Matrix #245

Closed
bodiequirk opened this issue Jan 8, 2022 · 3 comments
Closed

FR: Add Class to Style Active Note in BC Matrix #245

bodiequirk opened this issue Jan 8, 2022 · 3 comments

Comments

@bodiequirk
Copy link

Breadcrumbs has become how I navigate my Obsidian vault, and I love it! The only thing I still need is the ability to see which note I am on based on its styling in matrix view. Like websites, it's sometimes helpful to glance at the menu to remember which page you are on (related to is siblings) and have it stand out. I would love to be able to do that with Breadcrumbs.

Thanks!

@SkepticMystic
Copy link
Owner

I've added this in the latest release :)
The entire list item has the class BC-active-note

@bodiequirk
Copy link
Author

Thank you! I am not able to see it work, however (this could be due to my weak CSS skills).

When I use the .internal-link.BC-Link class I am able to target the Matrix CSS properties and change them. However, I am not able yet to target just the active note with the .BC-active-note class.

I have tried every variation to no avail. I have tried:

.BC-active-note.internal-link.BC-Link
.BC-active-note .internal-link.BC-Link
.internal-link.BC-Link .BC-active-note
.BC-active-note alone

Is there something else I should try? Thanks for your help!

@SkepticMystic
Copy link
Owner

I think it's just a CSS issue, yeah.
Try this:

.BC-active-note div {
    color: red !important;
}

Target the div under the .BC-active-note class

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