WP-API.github.io icon indicating copy to clipboard operation
WP-API.github.io copied to clipboard

Code samples with multiple indent levels don't display correctly in Chrome and Firefox

Open itsananderson opened this issue 10 years ago • 0 comments

I just noticed this on the Extending page. The code samples near the end of the page with the MyPlugin_API_MyType class are indented incorrectly. Playing around with the styles briefly, it looks like the letter-spacing: -1px rule for .content pre > code is what's causing it. Interestingly enough, it seems to display fine in IE on Windows, and Safari on OS X.

image

itsananderson avatar May 09 '15 04:05 itsananderson