Add 'mediawiki.action.view.filepage' style module
Moved the style definition for a file page from shared.css to a new module. Also for print styles. Change-Id: I8a0f0fecc53967bf2b0241ce92bbbd10b8fc704a
This commit is contained in:
parent
afdbf42328
commit
8410a0de11
7 changed files with 94 additions and 68 deletions
|
|
@ -219,6 +219,9 @@ class ImagePage extends Article {
|
|||
}
|
||||
// always show the local local Filepage.css, bug 29277
|
||||
$out->addModuleStyles( 'filepage' );
|
||||
|
||||
// Add MediaWiki styles for a file page
|
||||
$out->addModuleStyles( 'mediawiki.action.view.filepage' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1353,6 +1353,13 @@ return array(
|
|||
'prefs-editing'
|
||||
),
|
||||
),
|
||||
'mediawiki.action.view.filepage' => array(
|
||||
'styles' => array(
|
||||
'resources/src/mediawiki.action/mediawiki.action.view.filepage.print.css' => array( 'media' => 'print' ),
|
||||
'resources/src/mediawiki.action/mediawiki.action.view.filepage.css',
|
||||
),
|
||||
'position' => 'top',
|
||||
),
|
||||
|
||||
/* MediaWiki Language */
|
||||
|
||||
|
|
@ -1742,6 +1749,8 @@ return array(
|
|||
'styles' => array(
|
||||
// @todo: Remove mediawiki.page.gallery when cache has cleared
|
||||
'resources/src/mediawiki.page/mediawiki.page.gallery.print.css' => array( 'media' => 'print' ),
|
||||
// @todo: Remove mediawiki.action.view.filepage.print.css when cache has cleared
|
||||
'resources/src/mediawiki.action/mediawiki.action.view.filepage.print.css' => array( 'media' => 'print' ),
|
||||
'resources/src/mediawiki.legacy/commonPrint.css' => array( 'media' => 'print' )
|
||||
),
|
||||
'group' => 'print',
|
||||
|
|
@ -1757,6 +1766,9 @@ return array(
|
|||
'styles' => array(
|
||||
// @todo: Remove when mediawiki.page.gallery in cached html.
|
||||
'resources/src/mediawiki.page/mediawiki.page.gallery.css',
|
||||
// @todo: Remove mediawiki.action.view.filepage.css
|
||||
// and mediawiki.legacy/images/checker.png when cache has cleared
|
||||
'resources/src/mediawiki.action/mediawiki.action.view.filepage.css',
|
||||
'resources/src/mediawiki.legacy/shared.css' => array( 'media' => 'screen' )
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 81 B After Width: | Height: | Size: 81 B |
|
|
@ -0,0 +1,71 @@
|
|||
/*!
|
||||
* File description page
|
||||
*/
|
||||
|
||||
div.mw-filepage-resolutioninfo {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
/*
|
||||
* File histories
|
||||
*/
|
||||
h2#filehistory {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
table.filehistory th,
|
||||
table.filehistory td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
table.filehistory th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.filehistory td.mw-imagepage-filesize,
|
||||
table.filehistory th.mw-imagepage-filesize {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
table.filehistory td.filehistory-selected {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add a checkered background image on hover for file
|
||||
* description pages. (bug 26470)
|
||||
*/
|
||||
.filehistory a img,
|
||||
#file img:hover {
|
||||
/* @embed */
|
||||
background: white url(images/checker.png) repeat;
|
||||
}
|
||||
|
||||
/*
|
||||
* filetoc
|
||||
*/
|
||||
ul#filetoc {
|
||||
text-align: center;
|
||||
border: 1px solid #aaaaaa;
|
||||
background-color: #f9f9f9;
|
||||
padding: 5px;
|
||||
font-size: 95%;
|
||||
margin-bottom: 0.5em;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#filetoc li {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
/*
|
||||
* Shared images hint
|
||||
*/
|
||||
#shared-image-dup,
|
||||
#shared-image-conflict {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
/*!
|
||||
* File description page - print style
|
||||
*/
|
||||
|
||||
span.mw-filepage-other-resolutions,
|
||||
#filetoc {
|
||||
display: none;
|
||||
}
|
||||
|
|
@ -30,8 +30,6 @@ li#privacy,
|
|||
#footer-places,
|
||||
.mw-hidden-catlinks,
|
||||
tr.mw-metadata-show-hide-extended,
|
||||
span.mw-filepage-other-resolutions,
|
||||
#filetoc,
|
||||
.usermessage,
|
||||
.patrollink,
|
||||
.ns-0 .mw-redirectedfrom,
|
||||
|
|
|
|||
|
|
@ -164,49 +164,6 @@ span.texhtml {
|
|||
clear: both;
|
||||
}
|
||||
|
||||
/**
|
||||
* File description page
|
||||
*/
|
||||
|
||||
div.mw-filepage-resolutioninfo {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
/**
|
||||
* File histories
|
||||
*/
|
||||
h2#filehistory {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
table.filehistory th,
|
||||
table.filehistory td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
table.filehistory th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.filehistory td.mw-imagepage-filesize,
|
||||
table.filehistory th.mw-imagepage-filesize {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
table.filehistory td.filehistory-selected {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a checkered background image on hover for file
|
||||
* description pages. (bug 26470)
|
||||
*/
|
||||
.filehistory a img,
|
||||
#file img:hover {
|
||||
/* @embed */
|
||||
background: white url(images/checker.png) repeat;
|
||||
}
|
||||
|
||||
/**
|
||||
* rev_deleted stuff
|
||||
*/
|
||||
|
|
@ -448,11 +405,6 @@ p.mw-upload-editlicenses {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
#shared-image-dup,
|
||||
#shared-image-conflict {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Recreating deleted page warning
|
||||
* Reupload file warning
|
||||
|
|
@ -672,24 +624,6 @@ table.wikitable > caption {
|
|||
background-color: #eeeeff;
|
||||
}
|
||||
|
||||
/* filetoc */
|
||||
ul#filetoc {
|
||||
text-align: center;
|
||||
border: 1px solid #aaaaaa;
|
||||
background-color: #f9f9f9;
|
||||
padding: 5px;
|
||||
font-size: 95%;
|
||||
margin-bottom: 0.5em;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#filetoc li {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
/* Classes for Exif data display */
|
||||
table.mw_metadata {
|
||||
font-size: 0.8em;
|
||||
|
|
|
|||
Loading…
Reference in a new issue