[issue24918] Docs layout bug
New submission from asldkjfn: Green bars cover yellow text box. https://docs.python.org/2/faq/windows.html ---------- assignee: docs@python components: Documentation messages: 249018 nosy: docs@python, reag priority: normal severity: normal status: open title: Docs layout bug versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
Carol Willing added the comment: The highlighting of code box extends beyond the bounds of the box to the far right of the page. A screenshot is attached as an example. The behavior occurs on all versions (3.2+, 2.7.x) except 2.6. Thanks for reporting this issue. ---------- nosy: +willingc stage: -> needs patch type: -> behavior versions: +Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40235/Screenshot 2015-08-23 16.55.34.png _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- keywords: +easy nosy: +ezio.melotti versions: -Python 3.2, Python 3.3, Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
Manvi B added the comment: Fixed by using "display:inline" in ".highlight" class. ---------- keywords: +patch nosy: +Manvi B Added file: http://bugs.python.org/file41548/issue24918.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
Manvi B added the comment: Fixed by using "background: none" in ".highlight" class. ---------- Added file: http://bugs.python.org/file41549/issue24918.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
Manvi B added the comment: Both solutions msg257821, msg257822 seems to fix the issue. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
Ezio Melotti added the comment: Georg, do you have any opinion on this? AFAIK all the div.highlight contain a <pre> with the actual code and it's own background color, so using background: none; should be fine. ---------- nosy: +georg.brandl stage: needs patch -> patch review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
Georg Brandl added the comment: If it works... ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
Roundup Robot added the comment: New changeset 78e9c18d3e5b by Ezio Melotti in branch '3.5': #24918: fix CSS for code blocks when a side box is present. Patch by Manvi B. https://hg.python.org/cpython/rev/78e9c18d3e5b New changeset 444d80ae123e by Ezio Melotti in branch 'default': #24918: merge with 3.5. https://hg.python.org/cpython/rev/444d80ae123e New changeset e3833106f612 by Ezio Melotti in branch '2.7': #24918: fix CSS for code blocks when a side box is present. Patch by Manvi B. https://hg.python.org/cpython/rev/e3833106f612 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
Ezio Melotti added the comment: Fixed, thanks for the report and the patch(es)! ---------- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24918> _______________________________________
participants (6)
-
asldkjfn
-
Carol Willing
-
Ezio Melotti
-
Georg Brandl
-
Manvi B
-
Roundup Robot