mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-27 15:50:37 +00:00
006e6c6f0f
Make the wrapper div for code block create a block formatting context. This changes how floated content is laid out: previously the wrapper was taking 100% width and tried to wrap text around the floated content, now its width is limited by the width of floated content. This way absolutely positioned elements inside the code block (like the copy buttons) won't overlap the floated content. We've had this problem before when adding line numbers (T272853), and the workaround we used there won't work for the copy buttons. It also lets us remove the background-color override, previously needed to avoid it leaking outside the code block (T126010). Bug: T40932 Change-Id: I7f51ea78d7fcf07358c6ee45275b2bae2e1cbeb8 |
||
---|---|---|
.. | ||
ve-syntaxhighlight | ||
.eslintrc.json | ||
pygments.copy.js | ||
pygments.copy.less | ||
pygments.generated.css | ||
pygments.linenumbers.js | ||
pygments.links.js | ||
pygments.links.scribunto.js | ||
pygments.wrapper.less |