In a Support discussion titled Change “+ New Topic” button to match styling of “Reply” button, jord8on requested to style the “+ New Topic” button to visually match the “Reply” button using the site’s Tertiary color. Stranik provided CSS code to override the button’s background, text, and SVG icon colors, including hover states, and linked to Discourse’s theme documentation. jord8on appreciated the help and asked how to minify two separate CSS blocks targeting different “+ New Topic” buttons (header vs. category/tag pages). Stranik suggested combining selectors or using IDs like #new-create-topic, though noted uncertainty about uniqueness. When jord8on reported an issue with the plus icon color on hover, Stranik recommended explicitly targeting the SVG inside the hover state: #new-create-topic:hover > svg. Ultimately, jord8on opted to keep the original two code snippets for reliability. The thread highlights CSS customization flexibility in Discourse themes and the importance of testing hover states for icons.
Thanks for trying to help make the code shorter. When I tried several combinations like the ones you suggested, this is what I would get… (notice the plus sign)
For now I just decided to keep the two code snippets and everything is perfect!! Thanks again @Stranik