beerForo Well-known member Oct 8, 2020 #1 Have a dark page bg so want to change share icons to white on the page only not in the widget (widget is white bg so want to keep as-is). This changes both. Code: .shareButtons-button { color: white; }
Have a dark page bg so want to change share icons to white on the page only not in the widget (widget is white bg so want to keep as-is). This changes both. Code: .shareButtons-button { color: white; }
Solution P P Paul B Oct 8, 2020 CSS: .shareButtons-button { color: orange; } [data-widget-definition="share_page"] .shareButtons-button { color: black; }
CSS: .shareButtons-button { color: orange; } [data-widget-definition="share_page"] .shareButtons-button { color: black; }
P Paul B XenForo moderator Staff member Oct 8, 2020 #2 CSS: .shareButtons-button { color: orange; } [data-widget-definition="share_page"] .shareButtons-button { color: black; } Upvote 1 Downvote Solution
CSS: .shareButtons-button { color: orange; } [data-widget-definition="share_page"] .shareButtons-button { color: black; }
P Paul B XenForo moderator Staff member Oct 8, 2020 #4 You can actually target a widget three ways - the id, key, or definition. CSS: [data-widget-id="10"] .shareButtons-button { color: black; } CSS: [data-widget-key="forum_overview_share_page"] .shareButtons-button { color: black; } CSS: [data-widget-definition="share_page"] .shareButtons-button { color: black; } Upvote 0 Downvote
You can actually target a widget three ways - the id, key, or definition. CSS: [data-widget-id="10"] .shareButtons-button { color: black; } CSS: [data-widget-key="forum_overview_share_page"] .shareButtons-button { color: black; } CSS: [data-widget-definition="share_page"] .shareButtons-button { color: black; }