User:Rigel Kent/common.css: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
/* Import global stylesheet */
/* Import global stylesheet */
@import url("/w/index.php?title=MediaWiki:Global.css&action=raw&ctype=text/css");
@import url("/w/index.php?title=MediaWiki:Global.css&action=raw&ctype=text/css");
/* Shrink an element to fit its container, similar to images in mobile skins */
.shrink-to-fit {
    max-width:100%;
    height:auto;
}


/*** Navigation styles for desktop skins ***************************
/*** Navigation styles for desktop skins ***************************

Revision as of 02:02, 6 December 2015

/* CSS placed here will be used by desktop view skins. */

/* Import global stylesheet */
@import url("/w/index.php?title=MediaWiki:Global.css&action=raw&ctype=text/css");

/*** Navigation styles for desktop skins ***************************
 *******************************************************************/

.navbox-header {
    margin:2px 2px 0;
}

.navbox-body {
    display:table;
    width:100%;
    border-spacing:2px;
}

.navbox-section {
    display:table-row;
}

.navbox-subheader {
    display:table-cell;
    vertical-align:middle;
    padding:2px 5px 2px 55px; 
    white-space:nowrap; 
    text-align:right;
}

.navbox-content {
    display:table-cell;
    padding:2px 2px 2px 5px;
}

/*
 * custom styles for navigation templates
 * Note: these groups of style classes exist as a set 
 * for a particular 'theme' of nav bars.
 * for example, navMainSeries is the default 'theme'
 */

.navbox-section:nth-child(even) .navMainSeriesContent {
    background: #EAEFFA;
}

/*** End of navigation styles **********************************
 ***************************************************************/