Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Gadget-MaxWidthVector.css: Difference between revisions

MediaWiki interface page
(Created page with "→‎https://www.mediawiki.org/w/index.php?title=Topic:Rqxj1jgjhnr5ezt5&topic_showPostId=vk8gbzfk1r4m59ij#flow-post-vk8gbzfk1r4m59ij: →‎this is combined with a hook added to LocalSettings.php: →‎* * Skin Vector Max Width, see skinVectorWidthWrapper::onAfterFinalPageOutput *: .skin-vector-legacy #skin-vector-maxwidth-wrapper { position: relative; margin-left: auto; margin-right: auto; max-width: 1300px; } →‎html,: body.skin-vector-legacy { back...")
 
(wrap in @media)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
/* this is combined with a hook added to LocalSettings.php */
/* this is combined with a hook added to LocalSettings.php */


/**
@media screen and (min-width: 1401px) {
* Skin Vector Max Width, see skinVectorWidthWrapper::onAfterFinalPageOutput
/**
**/
* Skin Vector Max Width, see skinVectorWidthWrapper::onAfterFinalPageOutput
.skin-vector-legacy #skin-vector-maxwidth-wrapper {
**/
    position: relative;
.skin-vector-legacy #skin-vector-maxwidth-wrapper {
    margin-left: auto;
    position: relative;
    margin-right: auto;
    margin-left: auto;
    max-width: 1300px;
    margin-right: auto;
}
    max-width: 1400px;
 
}
/*html,*/
body.skin-vector-legacy {
/*html,*/
    background-position: top left;
body.skin-vector-legacy {
    background-repeat: repeat-x;
    background-position: top left;
    background-size: 100% 5em;
    background-repeat: repeat-x;
    background-image: url(/w/skins/Vector/images/page-fade.png);
    background-size: 100% 5em;
    background-color: #f6f6f6;
    background-image: url(/w/skins/Vector/images/page-fade.png);
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(50%,#ffffff),color-stop(100%,#f6f6f6));
    background-color: #f6f6f6;
    background-image: -webkit-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(50%,#ffffff),color-stop(100%,#f6f6f6));
    background-image: -moz-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
    background-image: -webkit-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
    background-image: linear-gradient(#ffffff 50%,#f6f6f6 100%);
    background-image: -moz-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
    background-image: linear-gradient(#ffffff 50%,#f6f6f6 100%);
}
/**
* Skin Vector Max Width: fix the position of:
*    personal user menu
*    search bar
*    add right blue border
**/
.skin-vector-legacy #p-personal { right: 3pt; }
.skin-vector-legacy #p-search { margin-right: 3pt; }
.skin-vector-legacy .mw-body { border-right: 1px solid #A7D7F9; }
}
}


Line 38: Line 50:
}
}
}
}
/**
* Skin Vector Max Width: fix the position of:
*    personal user menu
*    search bar
*    add right blue border
**/
.skin-vector-legacy #p-personal { right: 3pt; }
.skin-vector-legacy #p-search { margin-right: 3pt; }
.skin-vector-legacy .mw-body { border-right: 1px solid #A7D7F9; }

Latest revision as of 05:20, 13 August 2022

/* https://www.mediawiki.org/w/index.php?title=Topic:Rqxj1jgjhnr5ezt5&topic_showPostId=vk8gbzfk1r4m59ij#flow-post-vk8gbzfk1r4m59ij */
/* this is combined with a hook added to LocalSettings.php */

@media screen and (min-width: 1401px) {
	/**
	 * Skin Vector Max Width, see skinVectorWidthWrapper::onAfterFinalPageOutput
	**/
	.skin-vector-legacy #skin-vector-maxwidth-wrapper {
	    position: relative;
	    margin-left: auto;
	    margin-right: auto;
	    max-width: 1400px;
	}
	
	/*html,*/
	body.skin-vector-legacy {
	    background-position: top left;
	    background-repeat: repeat-x;
	    background-size: 100% 5em;
	    background-image: url(/w/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%);
	}
	
	/**
	 * Skin Vector Max Width: fix the position of:
	 *    personal user menu
	 *    search bar
	 *    add right blue border
	**/
	.skin-vector-legacy #p-personal { right: 3pt; }
	.skin-vector-legacy #p-search { margin-right: 3pt; }
	.skin-vector-legacy .mw-body { border-right: 1px solid #A7D7F9; }
}

@media print {
	.skin-vector-legacy #skin-vector-maxwidth-wrapper {
	    position: relative;
	    margin-left: 0;
	    margin-right: 0;
	    max-width: 100%;
	}
	
	/*html,*/
	body {
	    background:none;
	}
}