• I would love it if these had classes on them instead of inline styles for colors. I want to customize the theme a bit and can’t target them.

    If they had classes, it would look like this:

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Batdorf

    (@kbat82)

    Hey, a future version will use css variables but I don’t know when I’ll be able to rewrite this as it’s a big project overhaul. I don’t want to make any timeline promises. But if you want to just tweak a few things, what you could do now is select the span by style attribute. For example:

    [class*='code-block-pro'] span[style*="#F07178"] {
    color: lawngreen !important;
    }
    Thread Starter Zack Pyle

    (@zackpyle)

    @kbat82 Thanks for the update. Sounds good. Keep me posted 👍🏻

    Clever workaround targeting the style. I’ve never thought to do that since I’ve never had to do it haha

    Thread Starter Zack Pyle

    (@zackpyle)

    @kbat82 Another small item when you get around to it -> it would be awesome if cmd + / would comment out the line you’re on and use the appropriate commenting style // vs /* */ etc based on the code language selected for that block 🙌🏻

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Selectors on spans’ is closed to new replies.