Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I ended up adding the following to my css. It works fine for the twitter object though.
.fb-like-box { background: #292929; }
Comments
Comment #1
TomDude48 CreditAttribution: TomDude48 commentedWe built the widgets around the standard options for each widget from their source. Facebook does not offer a background-color option so we did not include it.
I like your CSS work around though. I may look deeper into using CSS to work around the standard widget parameters.
Comment #2
Reg CreditAttribution: Reg commentedInteresting.
I think it's a good call to use the workaround as it makes the behavior consistent. If it seems "wrong" to add your own pieces in as standard maybe you could add a subsection (collapsed fieldset) in the appearance area called something like "Tweaks". Then people can enabled which workarounds they want.
Comment #3
TomDude48 CreditAttribution: TomDude48 commentedI added a system for customizing widgets, see this blog post:
http://www.leveltendesign.com/blog/tom/building-custom-widgets
For now I want to avoid adding any inline css to widgets. Go ahead clone the widget and add your css adjustment there and let me know how that worked for you.
Comment #4
Reg CreditAttribution: Reg commentedI like your article.
Please do avoid adding inline CSS at all costs. The minute you add inline CSS you create a situation where the only way to override it is through JavaScript.