Page MenuHomePhabricator

Hide navigation features within a page (simple change to CSS)
Closed, ResolvedPublic

Description

Author: andreas.ipp

Description:
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.


Version: unspecified
Severity: enhancement

Details

Reference
bz1355
TitleReferenceAuthorSource BranchDest Branch
d/changelog: bump to 16.0.6repos/cloud/toolforge/jobs-cli!25dcarobump_to_16.0.6main
dump: handle new health-checkrepos/cloud/toolforge/jobs-cli!24aborreroarturo-1381-dump-handle-new-hemain
d/changelog: bump to 16.0.5repos/cloud/toolforge/jobs-cli!23dcarobump_to_16.0.5main
d/changelog: bump to 16.0.4repos/cloud/toolforge/jobs-cli!20raymond-ndibebump_versionmain
jobs-api: bump to 0.0.271-20240403154350-2940c48frepos/cloud/toolforge/toolforge-deploy!231project_1317_bot_df3177307bed93c3f34e421e26c86e38bump_jobs-apimain
data: Add Perl 5.36 imagerepos/cloud/toolforge/image-config!10taavitaavi/perl536main
Update function-schemata sub-module to HEAD (1c01f22)repos/abstract-wiki/wikifunctions/function-orchestrator!54jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (1c01f22)repos/abstract-wiki/wikifunctions/function-evaluator!31jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (1c01f22)repos/abstract-wiki/wikifunctions/wikilambda-cli!13jforrestersync-function-schematamain
definitions: Re-label all objects to drop the 'Z' per Aminrepos/abstract-wiki/wikifunctions/function-schemata!28jforresterT335583main
Add initial bookworm based imagesrepos/cloud/toolforge/image-config!6taavitaavi/bookwormmain
Remove support for auto error sinkrepos/data-engineering/eventutilities-python!72ottoT335591_error_sinkmain
port short section filter from section topicsrepos/structured-data/section-image-recs!7mfossatiT335500main
Set default section char limit to 500repos/structured-data/section-topics!26mfossatiT335500main
update urls after switchoverrepos/releng/gitlab-settings!22jeltoupdate-urls-switchovermain
mr widget: exercise greater paranoia about gitlab responsesrepos/phabricator/extensions!6brennenbrennen/mr-widget-status-checkwmf/stable
Show related patches Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 8:10 PM
bzimport set Reference to bz1355.
bzimport added a subscriber: Unknown Object (MLST).

the.r3m0t wrote:

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;

}

added class noprint (all lower case) to CVS, will appear online sometime