#22381: small improvement of css media="print"
-------------------------------------+-------------------------------------
     Reporter:  zio.pietro.53@…      |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |                  Version:  master
    Component:  Documentation        |               Resolution:
     Severity:  Normal               |  worksforme
     Keywords:  css                  |             Triage Stage:
    Has patch:  0                    |  Unreviewed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by zio.pietro.53@…):

 Replying to [comment:3 claudep]:
 > If we have a fix, even if it's only for Opera, we should apply it.
 However, it would be nice to at least understand the problem.
 > "#sidebar" should not target anything, as "sidebar" is a class, not an
 id. Maybe ".sidebar"? And the same div is already targeted by
 `#documentation #content-related`, why isn't the div hidden by that
 selector?

 Yeah, why isn't the div hidden by that selector? Nice question. I don't
 know.

 My solution is Q&D only. I inspected element from Opera Inspector (or how
 is its name) and saw that it's <div id="content-related" class="sidebar">.
 Not find #sidebar in /* Hide unneccessary content */ block I added it and
 voilà, it works!

 I agree it would be nice understand why this strange behavior, but I'm not
 so good in Opera mysteries ;)

 Verified that my modification not harm printing in another browsers, so
 IMHO it can be added, even we don't know perfectly what&why. If you don't
 like this solution (I don't like Q&D hacks too), feel free to not add it,
 you are maintainer (I think).

 Regards
 Pietro

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22381#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/081.57f2f179b295c150dee67dd2b6f106ab%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to