MediaWiki:Filepage.css

/* CSS placed here is included on the file description page, also included on foreign client wikis */

/** See also: * https://annex.fandom.com/wiki/MediaWiki:Common.css * https://annex.fandom.com/wiki/MediaWiki:Wikia.css * https://annex.fandom.com/wiki/MediaWiki:Common.js * https://annex.fandom.com/wiki/MediaWiki:Wikia.js **/

/*** The following is from https://en.wikipedia.org/wiki/MediaWiki:Filepage.css ***/

/* Cutoff of 500px to test the waters */ @media screen and (max-width : 500px) { .licensetpl { display:block; box-sizing: border-box; overflow-wrap: break-word; }   .licensetpl > * { display: block; width: 100%; box-sizing: border-box; padding: 0 0.5em !important; }   .licensetpl > * > tr { display: flex; flex: 1 1; flex-direction: column; flex-wrap: nowrap; width: 100%; box-sizing: border-box; }   .licensetpl > * > tr > td, .licensetpl > * > tr > th { flex: 1 1; box-sizing: border-box; width: 100% !important; padding: 0 !important; margin: 0 !important; margin-bottom: 0.5em !important; }   .licensetpl > * > tr > td:empty, .licensetpl > * > tr > * > img { display:none; }   .fileinfotpl-type-information { display:block; box-sizing: border-box; border: 1px solid #a2a9b1; padding: 0 !important; overflow-wrap: break-word; }   .fileinfotpl-type-information > * { display: block; width: 100%; box-sizing: border-box; padding: 0 !important; }   .fileinfotpl-type-information > * > tr { display: flex; flex: 1 1; flex-direction: row; flex-wrap: wrap; width: 100%; box-sizing: border-box; }   .fileinfotpl-type-information > * > tr > td { flex: 1 1; box-sizing: border-box; width: 100% !important; padding: 5px !important; margin: 0 !important; border-bottom: 1px solid #a2a9b1; text-align: left; }   .fileinfotpl-type-information > * > tr > td:first-child { flex: 0 0 20vw; border-right: 1px solid #a2a9b1; } }

/* Lots of crappy tables on Commons without classes etc */ table { box-sizing: border-box !important; }

/*** The following is from https://commons.wikimedia.org/wiki/MediaWiki:Filepage.css ***/ /* Make look like part of the info template */ .commons-file-information-table + table.commons-file-information-table, .commons-file-information-table + div.commons-file-information-table > table { border-top: 0; padding-top: 0; margin-top: -8px; } /* Used in several license and collection info templates in the File namespace */ /* such as Template:PermissionOTRS/layout */ .messagebox { border: 1px solid #aaa; background: #f9f9f9; width: 80%; margin: 0 auto 1em; padding: 0.2em; text-align: justify; } /* Styling the paramter fields */ .fileinfo-paramfield { background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight: bold; }