Skip to content

Minor HTML validation fix #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
HTML validation: avoid injecting <style> in <body>
This avoids causing otherwise valid HTML to fail 
validation because <style> is only allowed in <head>
  • Loading branch information
acdha committed Feb 3, 2011
commit 1efd6e652e35aa32339f2d5d6d8772a172646c84
6 changes: 6 additions & 0 deletions debug_toolbar/media/debug_toolbar/css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -394,3 +394,9 @@
#djDebug .highlight .nv { color:#333 } /* Name.Variable */
#djDebug .highlight .s2 { color:#333 } /* Literal.String.Double */
#djDebug .highlight .cp { color:#333 } /* Comment.Preproc */

@media print {
#djDebug {
display: none;
}
}
2 changes: 1 addition & 1 deletion debug_toolbar/media/debug_toolbar/css/toolbar.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion debug_toolbar/templates/debug_toolbar/base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load i18n %}
<style type="text/css">@media print { #djDebug {display:none;}}</style>
<script type="text/javascript">
// <![CDATA[
var DEBUG_TOOLBAR_MEDIA_URL = "{{ DEBUG_TOOLBAR_MEDIA_URL }}";
Expand Down