From 6e3748deb07a4916c516a6b38197a29b91f35c8a Mon Sep 17 00:00:00 2001 From: Bobby Date: Sat, 22 Apr 2023 19:18:03 -0400 Subject: Fix breaking layout in IE6 --- blog/context_processors.py | 2 +- static/css/styles.css | 14 ++--- templates/blog/partials/base.html | 20 ++++--- templates/blog/partials/sidebar.html | 85 ++++++++++++++------------ templates/blog/post.html | 112 ++++++++++++++++------------------- 5 files changed, 115 insertions(+), 118 deletions(-) diff --git a/blog/context_processors.py b/blog/context_processors.py index 53a16417..968034b4 100644 --- a/blog/context_processors.py +++ b/blog/context_processors.py @@ -69,7 +69,7 @@ def highlight_code_blocks(code_block): lexer = get_lexer_by_name('text') # highlight the code - formatter = HtmlFormatter(noclasses=True, style='native') + formatter = HtmlFormatter(noclasses=True, style='native', wrapcode=True) highlighted_code = highlight(cb, lexer, formatter) return highlighted_code diff --git a/static/css/styles.css b/static/css/styles.css index 54ce683f..bed7d0be 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -291,21 +291,15 @@ blockquote { } #sidebar { - float: left; - margin: 0px; - padding: 0px; width: 250px; - height: 100%; - display: inline; } #content { - float: left; - margin: 0px; - padding: 0px 0px 0px 20px; width: 730px; - height: 100%; - display: inline; +} + +#article, #comments, #new-comment { + width: 730px; } #footer { diff --git a/templates/blog/partials/base.html b/templates/blog/partials/base.html index 9feedeaf..5104251b 100644 --- a/templates/blog/partials/base.html +++ b/templates/blog/partials/base.html @@ -28,15 +28,17 @@
- -
- -
- {% block content %} {% endblock %} -
-
+ + + + + + +
+ {% block content %} {% endblock %} +
{% endif %} - - + + {% include 'blog/partials/mathjax.html' %} {% endblock %} -- cgit v1.2.3