Last modified: 2005-07-06 18:06:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1355 - Hide navigation features within a page (simple change to CSS)
Hide navigation features within a page (simple change to CSS)
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-18 01:32 UTC by Andreas Ipp
Modified: 2005-07-06 18:06 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andreas Ipp 2005-01-18 01:32:25 UTC
Please add a generic class, e.g. "noPrint", to the css file

  http://en.wikibooks.org/skins/common/commonPrint.css

just before the line

>   /* Hides all the elements irrelevant for printing */
>   display: none;

Reason: I am working in Wikibooks, and I would like to add a <div> on screen,
that does not show on print (Navigational elements, ...)

As a workaround, I could use one of the other classes from that css, like "top".
This works, but is not a clean solution, since <div class="top"> might in the
future inherit other style properties that I would not like to have.

This is a one-line addition to the Wikibooks commonPrint.css file, that should
take a very short time for the person in charge. Thank you.

PS: As a follow-up, there could be a generic class for elements that show up on
print, but not on screen (e.g. for correctly placing the title page, etc...). 
Print and screen CSS is especially important for Wikibooks.
Comment 1 Tomer Chachamu 2005-05-28 14:19:30 UTC
I have, err, "reviewed" this change.

The change, remember, is to add the line
.noPrint,
to the top of this  bit in commonPrint.css.

div.top,
div#column-one,
#colophon,
.editsection,
.toctoggle,
.tochidden,
div#f-poweredbyico,
div#f-copyrightico,
li#f-viewcount,
li#f-about,
li#f-disclaimer {
    /* Hides all the elements irrelevant for printing */
    display: none;
}
Comment 2 Niklas Laxström 2005-07-06 18:06:42 UTC
added class noprint (all lower case) to CVS, will appear online sometime

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links