MediaWiki:Vector.css: Difference between revisions

From ServantPedia™, the paid (but reliable) encyclopedia
Jump to navigation Jump to search
No edit summary
Replaced content with "All CSS here will be loaded for users of the Vector skin: set max width and fix the background: html, body { position: relative; margin-left: auto !important; margin-right: auto !important; max-width: 1280px; background-position: top left; background-repeat: repeat-x; background-size: 100% 5em; background-image: url(/skins/Vector/images/page-fade.png); background-color: #f6f6f6; background-image: -webkit-gradient(linear,left top,lef..."
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the Vector skin */
/* All CSS here will be loaded for users of the Vector skin */
/* Create a central wrapper */
/* set max width and fix the background */
#mw-page-base, #mw-head-base, #content, #mw-head, #mw-panel, #footer {
html,
     max-width: 1200px;
body {
     margin-left: auto;
position: relative;
     margin-right: auto;
margin-left: auto !important;
margin-right: auto !important;
max-width: 1280px;
    background-position: top left;
    background-repeat: repeat-x;
background-size: 100% 5em;
    background-image: url(/skins/Vector/images/page-fade.png);
    background-color: #f6f6f6;
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(50%,#ffffff),color-stop(100%,#f6f6f6));
     background-image: -webkit-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
     background-image: -moz-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
     background-image: linear-gradient(#ffffff 50%,#f6f6f6 100%);
}
}


/* Optional: Slight padding to keep text from hugging the edge */
/* set blue right border */
#content {
.mw-body { border-right: 1px solid #A7D7F9; }
    padding: 0 20px;
}
 
/* Make sure the sidebar doesn't stay way off to the side */
#mw-panel {
    position: relative;
}


/* Tabs (like View, Edit) also need to stay inside the container */
/** fix the position of:
#p-cactions {
personal user menu
    max-width: 1200px;
search bar
    margin-left: auto;
the pop-up indicator of language selector
    margin-right: auto;
search suggestions
}
**/
#p-personal { right: 3pt; }
#p-search { margin-right: 3pt; }
.imeselector { position: fixed; }
.suggestions { right: 3pt !important; }

Latest revision as of 12:19, 9 April 2025

/* All CSS here will be loaded for users of the Vector skin */
/* set max width and fix the background */
html,
body {
	position: relative;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1280px;
    background-position: top left;
    background-repeat: repeat-x;
	background-size: 100% 5em;
    background-image: url(/skins/Vector/images/page-fade.png);
    background-color: #f6f6f6;
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(50%,#ffffff),color-stop(100%,#f6f6f6));
    background-image: -webkit-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
    background-image: -moz-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
    background-image: linear-gradient(#ffffff 50%,#f6f6f6 100%);
}

/* set blue right border */
.mw-body { border-right: 1px solid #A7D7F9; }

/** fix the position of:
			personal user menu
			search bar
			the pop-up indicator of language selector
			search suggestions 
**/
#p-personal { right: 3pt; }
#p-search { margin-right: 3pt; }
.imeselector { position: fixed; }
.suggestions { right: 3pt !important; }