Target the collapse indicator next to specific headers (h1, h2, h3)

Things I have tried

I’ve tried doing an adjacent sibling detector, but it doesn’t seem to work. I really am just shooting in the dark so far when it comes to this. I’m not sure if it’s even possible to do really.

What I’m trying to do

I’m trying to get everything lined up properly and right now I’m trying to target the right-triangle for folding text but only when it’s next to specific headers. I’ve got it right when it’s next to normal text, but next to headers it’s still out of place (for my taste). I want to be able to change its location next to h1, h2, h3, etc. specifically.

I can target it when it’s next to all headers by using the .header-collapse-indicator but I want to target it specifically next to each size header.

1 Like

Figured it out finally!

.markdown-preview-view h1 .heading-collapse-indicator

will select the collapse indicator for each size header. Now I’ve got the indicator perfectly spaced on each header!

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.