Difference between revisions of "MediaWiki:Common.css"

From FIThydrowiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
 +
/* set max width and fix the background */
 +
    html,
 +
    body {
 +
    position: relative;
 +
    margin-left: auto !important;
 +
    margin-right: auto !important;
 +
    max-width: 1700px;
 +
        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; }
 +
 +
/* Larger sidebar font */
 +
div#mw-panel div.portal h3,
 +
div#mw-panel div.portal div.body ul li {
 +
  font-size: 1.0em; /* default is 0.75em */
 +
}
 +
 +
/* CSS Hover Gallery for Mediawiki
 +
*
 +
* @author: Unknown
 +
* current version crafted together by [[User:Christharp]] from several CSS sites. For my website:[http://www.yellpedia.com/wiki/Main_Page Yellpedia]
 +
*/
 +
 +
.zoom_img img{
 +
-moz-transition:-moz-transform 0.1s ease-in;
 +
-webkit-transition:-webkit-transform 0.1s ease-in;
 +
-o-transition:-o-transform 0.1s ease-in;
 +
transition:transform 0.1 ease-in;
 +
}
 +
 +
.zoom_img img:hover{
 +
-moz-transform:scale(2);
 +
-webkit-transform:scale(2);
 +
-o-transform:scale(2);
 +
transform:scale(2);
 +
}

Latest revision as of 14:54, 12 February 2020

/* CSS placed here will be applied to all skins */
/* set max width and fix the background */
    html,
    body {
    	position: relative;
    	margin-left: auto !important;
    	margin-right: auto !important;
    	max-width: 1700px;
        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; }

/* Larger sidebar font */
div#mw-panel div.portal h3,
div#mw-panel div.portal div.body ul li {
   font-size: 1.0em; /* default is 0.75em */
}

/* CSS Hover Gallery for Mediawiki
 * 
 * @author: Unknown
 * current version crafted together by [[User:Christharp]] from several CSS sites. For my website:[http://www.yellpedia.com/wiki/Main_Page Yellpedia]
 */

.zoom_img img{
-moz-transition:-moz-transform 0.1s ease-in; 
-webkit-transition:-webkit-transform 0.1s ease-in; 
-o-transition:-o-transform 0.1s ease-in;
transition:transform 0.1 ease-in;
}

.zoom_img img:hover{
-moz-transform:scale(2); 
-webkit-transform:scale(2);
-o-transform:scale(2);
transform:scale(2);
}