MediaWiki:Custom-Common.less/mainpage.less

// /* ================      Mainpage ================ */

// common styles to both left and right columns // @todo implement these better to be common classes .mp-color { #gradient > .vertical( lighten( average( @theme-page, @theme-buttons ), 20% ), @theme-page ); .border-radius( 5px ); padding: 4px; margin-top: 10px; }

.mp-header { text-align: center; font-weight: bold; font-size: 110%; }

.mp-content { margin: 10px 0; }

// title .mp-title { text-align: center; margin-bottom: 10px; } .mp-title div:not( .center ) { display: inline; padding: 5px; }

// left column .mp-color { .mp-color;

.mp-header { .mp-header; padding: 4px; }

.mp-content { .mp-content; }

.mp-column { width: 33%; // fix against rule in oasis.scss float: left; }

.mp-endrow { clear: both; text-align: right;

.mp-endbox { padding: 4px 50px; display: inline; font-size: 85%; font-weight: bold; }   } }

// right column .mp-color2 { .mp-color;

.mp-header2 { .mp-header; padding: 2px; }

.mp-content2 { .mp-content; } }

// portals .portal-link-wrapper { text-align: center; }

.portal-link { display: inline-block; } .portal-link a { height: 150px; width: 170px; margin: 5px 8px; display: inline-block; background-color: #000; background-repeat: no-repeat; border-radius: 5px; color: #fff; text-align: center; overflow: hidden; line-height: 155px; font-size: 25px; font-family: 'League Spartan', sans-serif; text-transform: uppercase; text-shadow: 0 0 10px #000; box-shadow: 0 0 5px #666; }

.portal-link a:hover { text-decoration: none; opacity: 0.8; } // each tile has a separate image .portal-link.items a { background-image: url( 'http://img3.wikia.nocookie.net/__cb20141227070524/runescape/images/f/f5/Main_Page_Grid_Items.png' ); } .portal-link.skills a { background-image: url( 'http://img4.wikia.nocookie.net/__cb20141227070524/runescape/images/6/64/Main_Page_Grid_Skills.png' ); } .portal-link.bestiary a { background-image: url( 'http://img1.wikia.nocookie.net/__cb20141227070522/runescape/images/3/38/Main_Page_Grid_Bestiary.png' ); } .portal-link.quests a { background-image: url( 'http://img2.wikia.nocookie.net/__cb20141227070524/runescape/images/9/99/Main_Page_Grid_Quests.png' ); } .portal-link.areas a { background-image: url( 'http://img1.wikia.nocookie.net/__cb20141227070522/runescape/images/2/2b/Main_Page_Grid_Areas.png' ); } .portal-link.guides a { background-image: url( 'http://img4.wikia.nocookie.net/__cb20141227070523/runescape/images/4/44/Main_Page_Grid_Guides.png' ); }

// styles for specific modules width: 15%; padding: 2px; }
 * 1) mp-rsnews .mp-content .mp-header {

margin-top: 1em; }
 * 1) mp-patch-header {

text-align: center; }
 * 1) mp-gemw .mp-content2 {

font-size: 85%; margin-top: -2px; }
 * 1) mp-gemw-date {

font-weight: bold; font-size: 110%; }
 * 1) mp-gemw-cti {

// previous poll results margin-top: 5px; font-size: 85%; background: none; width: 100%; }
 * 1) mp-poll-prev-results {

margin-top: 0.75em; }
 * 1) mp-rsnews-endrow {

position: relative; top: -30px; margin-bottom: -30px; }
 * 1) mp-patch-endrow {

// copyright footer background-color: darken( @theme-page, 5% ); margin-top: 10px; text-align: center; font-size: 85%; }
 * 1) mp-footer {