Hi all!
Please help me to change printable output in Chameleon skin.
I want to remove:
1) urls nearby images
2) pencil icon at the bottom of any page
Can't find this code.
Thank you
Hi all!
Please help me to change printable output in Chameleon skin.
I want to remove:
1) urls nearby images
2) pencil icon at the bottom of any page
Can't find this code.
Thank you
You can override styles by on the MediaWiki:Common.css page of your wiki. Alternatively you can import additional style files to the skin. See https://github.com/cmln/chameleon/blob/master/docs/customization.md#changing-styles-fonts-colors-padding-etc
You will need a media query to target print. See https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#Targeting_media_types
MediaWiki:Common.css is a page on the wiki. E.g. on MW.org it would be MediaWiki:Common.css. Additional style files you can put where ever you want on the server. The style files of Chameleon are in .../skins/chameleon/resources/styles. You should never change them directly.
Thank you but I know about css.
Now I want to find out what php files generates this code.
Styles are registered in chameleon/src/Hooks/SetupAfterCache.php
The generation of CSS is then handled by the Bootstrap extension. Registration of style modules is handled by Bootstrap/src/BootstrapManager.php, generation of the css is done by Bootstrap/src/ResourceLoaderBootstrapModule.php, starting from the getStyles() method.
Please forget about styles and css.
I want to know how print page builds. It there any files responsible for that?
There is no special PHP code for printing, just different styling. Chameleon defines print-specific styles in skins/chameleon/resources/styles/print.less, Bootstrap is defining some more styles in extensions/Bootstrap/resources/bootstrap/less/print.less. Finally and most importantly, MediaWiki itself is defining styles. Have a look at resources/Resources.php and search for modules defined for 'media' => 'print'
.