This issue is basically a code tidy-up.
If I understand correctly, the rrssb-overrides.css exists because the Drupal theme has a bunch of CSS relating to .item-list and this incorrectly overrides rrssb.css. So the overrides file repeats lines from rrssb.css but with extra qualifiers to make them take precedence. This seems a little untidy - potentially it depends on the theme exactly what needs to be repeated. Also it tends to get out of date easily - changes to the original rrssb.css need to be echoed in the override file. Right now, it looks like it is slightly out of date.
I have a patch that seems to be a neater approach: don't add the .item-list class in the first place and it all just works. However I have retained the overrides file with one new rule in it. With one theme I'm using (https://www.drupal.org/project/pixture_reloaded) the buttons stop being bold on hover. This last one is nothing to do with .item-list so I can't see a clever fix.
Comment | File | Size | Author |
---|---|---|---|
#3 | rrssb.item-list.2488360.3.patch | 1.36 KB | AdamPS |
#1 | rrssb.item-list.2488360.1.patch | 1.42 KB | AdamPS |
Comments
Comment #1
AdamPS CreditAttribution: AdamPS commentedComment #2
mike.roberts CreditAttribution: mike.roberts commentedThat patch feels really dirty to me :-P. Is there a better way to do this?
Comment #3
AdamPS CreditAttribution: AdamPS commentedI can't see a better way. Options I can think of in order of preference in my view:
So in the absence of a better idea, OK if I commit option 1?
Comment #4
mike.roberts CreditAttribution: mike.roberts commentedYeah I guess go ahead and commit it, and if a better option comes alone we'll add it later :)
Comment #6
AdamPS CreditAttribution: AdamPS commentedComment #7
AdamPS CreditAttribution: AdamPS commentedHmm it became slightly more fiddly when I merged your latest change to call
rather than
. The change is correct of course, but it means the resulting output is less predictable. Coming up is another commit that makes the code more flexible, but it isn't absolutely guaranteed to work. But then the original code wasn't absolutely guaranteed to work either.
Maybe we'll come up with something better in future. There is much activity on the RRSSB library including a version 2.
Comment #9
AdamPS CreditAttribution: AdamPS commentedI have realised that the line I added to the overrides CSS was rather specific to one particular site/theme, so I will remove it - and hence remove the empty file.