1,333
edits
(Trying to fix infoboxes) Tags: Mobile edit Mobile web edit |
(I think I fixed the infobox issue) Tags: Mobile edit Mobile web edit |
||
Line 4: | Line 4: | ||
h2 { margin-top: 20px; } | h2 { margin-top: 20px; } | ||
.toc { margin-top: 20px; } | .toc { margin-top: 20px; } | ||
/* Infobox template style */ | |||
.infobox { | |||
border: 1px solid #aaaaaa; | |||
background-color: #f9f9f9; | |||
color: black; | |||
margin-bottom: 0.5em; | |||
margin-left: 1em; | |||
padding: 0.2em; | |||
float: right; | |||
clear: right; | |||
} | |||
.infobox td, | |||
.infobox th { | |||
vertical-align: top; | |||
} | |||
.infobox caption { | |||
font-size: larger; | |||
margin-left: inherit; | |||
} | |||
.infobox.bordered { | |||
border-collapse: collapse; | |||
} | |||
.infobox.bordered td, | |||
.infobox.bordered th { | |||
border: 1px solid #aaaaaa; | |||
} | |||
.infobox.bordered .borderless td, | |||
.infobox.bordered .borderless th { | |||
border: 0; | |||
} | |||
/* Multicolumn lists */ | /* Multicolumn lists */ | ||
Line 120: | Line 151: | ||
/* Changes tab on Main Page to "Main Page" instead of "Article" */ | /* Changes tab on Main Page to "Main Page" instead of "Article" */ | ||
jQuery( document ).ready( function( $ ) { var title = mw.config.get( 'wgTitle' ); | jQuery( document ).ready( function( $ ) { var title = mw.config.get( 'wgTitle' ); | ||
var hasMainPageTab = (title == 'Main Page'); | var hasMainPageTab = (title == 'Main Page'); | ||
if ( hasMainPageTab ){ $( '#ca-nstab-main a' ).text( title ); } } ); | if ( hasMainPageTab ){ $( '#ca-nstab-main a' ).text( title ); } } ); | ||