From our CSS guidelines:

If a property does not require quotes (e.g. url(), do not add them. This means background-image: url(path/image.png) instead of background-image: url("path/image.png")

To-do:
- Review the patch from #3.

Comments

sqndr’s picture

Assigned: Unassigned » sqndr

I'll fix this ;)

sqndr’s picture

Issue summary: View changes

I've updated the documentation with a beter example, so I'm changing the quote here.

sqndr’s picture

Issue summary: View changes
StatusFileSize
new1.22 KB

Removed the quotes in the css from Bartik. Only found 3 lines; so a very small patch here ;) Looks like it's al out now: http://cl.ly/image/2W132A1p2o1g

longwave’s picture

Component: Bartik theme » CSS
StatusFileSize
new13.97 KB

We should do this for all CSS, not just Bartik.

longwave’s picture

Status: Active » Needs review
lewisnyman’s picture

StatusFileSize
new13.26 KB

We should do this for all CSS, not just Bartik.

Yeah, I was just worried that it would be too big a patch to manage in one go. It doesn't look too bad.

Having said that, I found a few more instances where we use background-image with quotes. I've updated the patch.

lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community

Nope, sorry, my mistake. Don't review patches before coffee. Patch #4 is fine.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed b015229 and pushed to 8.x. Thanks!

  • alexpott committed b015229 on 8.x
    Issue #2309137 by longwave, sqndr | LewisNyman: Remove quotes from all...
jwilson3’s picture

We should do this for all CSS, not just Bartik.

Was there another followup to get any remaining css outside seven and bartik? Or did this get them all?

NM. should have actually looked at the patch before commenting :P I guess this got everything!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.