MediaWiki:Vector.css: Difference between revisions
From Elwiki
mNo edit summary |
No edit summary |
||
(95 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
/****************************** Extension MenuSidebar Styles ******************************/ | /****************************** Extension MenuSidebar Styles ******************************/ | ||
/* Allow popup submenus to overflow the sidebar area for the Vector skin */ | /* Allow popup submenus to overflow the sidebar area for the Vector skin */ | ||
Line 104: | Line 70: | ||
::-webkit-scrollbar-button:single-button { | ::-webkit-scrollbar-button:single-button { | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-image: url(' | background-image: url('/wiki/images/9/97/Vector-Scrollbar.png'); | ||
background-origin: | background-origin: margin-box; | ||
display: block; | display: block; | ||
margin: 0; | margin: 0; | ||
Line 124: | Line 90: | ||
/* Button "Up" */ | /* Button "Up" */ | ||
::-webkit-scrollbar-button:vertical:start: | ::-webkit-scrollbar-button:vertical:start:decrement, | ||
::-webkit-scrollbar-button:vertical:start: | ::-webkit-scrollbar-button:vertical:start:decrement:active { | ||
background-position: 0 0; | background-position: 0 0; | ||
} | } | ||
::-webkit-scrollbar-button:vertical:start: | ::-webkit-scrollbar-button:vertical:start:decrement:hover { | ||
background-position: -20px 0; | background-position: -20px 0; | ||
} | } | ||
/* Button "Down" */ | /* Button "Down" */ | ||
::-webkit-scrollbar-button:vertical:end: | ::-webkit-scrollbar-button:vertical:end:increment, | ||
::-webkit-scrollbar-button:vertical:end: | ::-webkit-scrollbar-button:vertical:end:increment:active { | ||
background-position: -10px 0; | background-position: -10px 0; | ||
} | } | ||
::-webkit-scrollbar-button:vertical:end: | ::-webkit-scrollbar-button:vertical:end:increment:hover { | ||
background-position: -30px 0; | background-position: -30px 0; | ||
} | } | ||
/* Button "Left" */ | /* Button "Left" */ | ||
::-webkit-scrollbar-button:horizontal:start: | ::-webkit-scrollbar-button:horizontal:start:decrement, | ||
::-webkit-scrollbar-button:horizontal:start: | ::-webkit-scrollbar-button:horizontal:start:decrement:active { | ||
background-position: 0 -20px; | background-position: 0 -20px; | ||
} | } | ||
::-webkit-scrollbar-button:horizontal:start: | ::-webkit-scrollbar-button:horizontal:start:decrement:hover { | ||
background-position: -20px -20px; | background-position: -20px -20px; | ||
} | } | ||
/* Button "Right" */ | /* Button "Right" */ | ||
::-webkit-scrollbar-button:horizontal:end: | ::-webkit-scrollbar-button:horizontal:end:increment, | ||
::-webkit-scrollbar-button:horizontal:end: | ::-webkit-scrollbar-button:horizontal:end:increment:active { | ||
background-position: -10px -20px; | background-position: -10px -20px; | ||
} | } | ||
::-webkit-scrollbar-button:horizontal:end: | ::-webkit-scrollbar-button:horizontal:end:increment:hover { | ||
background-position: -30px -20px; | background-position: -30px -20px; | ||
} | } | ||
/** @@@@@ | /** @@@@@ | ||
I can not figure out Vector.js to enable Scroll to Top/Bottom/LHome/REnd | I can not figure out Vector.js to enable Scroll to Top/Bottom/LHome/REnd | ||
Please help if anyone can do this. | |||
@@@@ **/ | @@@@@ **/ | ||
/* Button "Top" */ | /* Button "Top" */ | ||
::-webkit-scrollbar-button:vertical:start:increment, | |||
::-webkit-scrollbar-button:vertical:start:increment:active { | |||
background-position: 0 -10px; | background-position: 0 -10px; | ||
} | } | ||
::-webkit-scrollbar | ::-webkit-scrollbar-button:vertical:start:increment:hover { | ||
background-position: -20px -10px; | background-position: -20px -10px; | ||
} | } | ||
/* Button "Bottom" */ | /* Button "Bottom" */ | ||
::-webkit-scrollbar-button:vertical:end:decrement, | |||
::-webkit-scrollbar-button:vertical:end:decrement:active { | |||
background-position: -10px -10px; | background-position: -10px -10px; | ||
} | } | ||
::-webkit-scrollbar | ::-webkit-scrollbar-button:vertical:end:decrement:hover { | ||
background-position: -30px -10px; | background-position: -30px -10px; | ||
} | } | ||
/* Button "LHome" */ | /* Button "LHome" */ | ||
::-webkit-scrollbar-button:horizontal:start:increment, | |||
::-webkit-scrollbar-button:horizontal:start:increment:active { | |||
background-position: 0 -30px; | background-position: 0 -30px; | ||
} | } | ||
::-webkit-scrollbar | ::-webkit-scrollbar-button:horizontal:start:increment:hover { | ||
background-position: -20px -30px; | background-position: -20px -30px; | ||
} | } | ||
/* Button "REnd" */ | /* Button "REnd" */ | ||
::-webkit-scrollbar-button:horizontal:end:decrement, | |||
::-webkit-scrollbar-button:horizontal:end:decrement:active { | |||
background-position: -10px -30px; | background-position: -10px -30px; | ||
} | } | ||
::-webkit-scrollbar | ::-webkit-scrollbar-button:horizontal:end:decrement:hover { | ||
background-position: -30px -30px; | background-position: -30px -30px; | ||
}*/ | } | ||
/****************************** Font Settings ******************************/ | |||
/* Override Fonts to MS YaHei, and can fallback to default */ | |||
html * { | |||
font-family: "Microsoft YaHei"; | |||
} | |||
.vgrid-table > div:not(.vgrid-cat) ul li { | |||
list-style: none; | |||
} | |||
#p-logo { | |||
background: transparent | |||
} |
Latest revision as of 01:14, 28 March 2022
/****************************** Extension MenuSidebar Styles ******************************/
/* Allow popup submenus to overflow the sidebar area for the Vector skin */
#mw-panel div.portal div.body ul li {
overflow: visible !important;
}
/* Positioning tweak for submenus specific to vector */
.menuSidebar ul div {
top: -1px !important; /* vertical offset of submenus */
}
/* keep nested list fonts from continually decreasing in size with each nesting */
#mw-panel div.portal div.body ul li {
font-size: small !important;
}
/* Allow popup submenus to overflow the sidebar area */
#mw-panel div.portal div.body ul li {
overflow: visible !important;
}
/* minor adjustments to the sidebar area for the Vector skin */
.menuSidebar ul div {
top: -1px !important; /* vertical offset of submenus */
}
.menuSidebar ul {
width: 8em; /* width of main menu */
}
/****************************** Webkit Scrollbar Styles ******************************/
::-webkit-scrollbar {
width: 12px;
height: 12px;
background-color: white;
}
::-webkit-scrollbar-track {
border-radius: 6px;
border: 1px white solid;
}
::-webkit-scrollbar-track:hover {
background-color: #e4e3e3;
}
::-webkit-scrollbar-thumb {
border-width: 1px;
border-style: solid;
border-radius: 6px;
background-color: #c6c3bd;
}
::-webkit-scrollbar-thumb:vertical {
border-color: transparent white;
}
::-webkit-scrollbar-thumb:horizontal {
border-color: white transparent;
}
::-webkit-scrollbar-thumb:hover {
background-color: #777571;
}
::-webkit-scrollbar-thumb:active {
background-color: #c6c3bd;
}
::-webkit-scrollbar-button:single-button {
background-repeat: no-repeat;
background-image: url('/wiki/images/9/97/Vector-Scrollbar.png');
background-origin: margin-box;
display: block;
margin: 0;
padding: 0;
width: 12px;
height: 12px;
border: 1px white solid;
border-radius: 2px;
}
::-webkit-scrollbar-button:hover {
border-color: #7c7a76;
}
::-webkit-scrollbar-button:active {
border-color: #adaaa5;
}
/* Button "Up" */
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:start:decrement:active {
background-position: 0 0;
}
::-webkit-scrollbar-button:vertical:start:decrement:hover {
background-position: -20px 0;
}
/* Button "Down" */
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:vertical:end:increment:active {
background-position: -10px 0;
}
::-webkit-scrollbar-button:vertical:end:increment:hover {
background-position: -30px 0;
}
/* Button "Left" */
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:start:decrement:active {
background-position: 0 -20px;
}
::-webkit-scrollbar-button:horizontal:start:decrement:hover {
background-position: -20px -20px;
}
/* Button "Right" */
::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:horizontal:end:increment:active {
background-position: -10px -20px;
}
::-webkit-scrollbar-button:horizontal:end:increment:hover {
background-position: -30px -20px;
}
/** @@@@@
I can not figure out Vector.js to enable Scroll to Top/Bottom/LHome/REnd
Please help if anyone can do this.
@@@@@ **/
/* Button "Top" */
::-webkit-scrollbar-button:vertical:start:increment,
::-webkit-scrollbar-button:vertical:start:increment:active {
background-position: 0 -10px;
}
::-webkit-scrollbar-button:vertical:start:increment:hover {
background-position: -20px -10px;
}
/* Button "Bottom" */
::-webkit-scrollbar-button:vertical:end:decrement,
::-webkit-scrollbar-button:vertical:end:decrement:active {
background-position: -10px -10px;
}
::-webkit-scrollbar-button:vertical:end:decrement:hover {
background-position: -30px -10px;
}
/* Button "LHome" */
::-webkit-scrollbar-button:horizontal:start:increment,
::-webkit-scrollbar-button:horizontal:start:increment:active {
background-position: 0 -30px;
}
::-webkit-scrollbar-button:horizontal:start:increment:hover {
background-position: -20px -30px;
}
/* Button "REnd" */
::-webkit-scrollbar-button:horizontal:end:decrement,
::-webkit-scrollbar-button:horizontal:end:decrement:active {
background-position: -10px -30px;
}
::-webkit-scrollbar-button:horizontal:end:decrement:hover {
background-position: -30px -30px;
}
/****************************** Font Settings ******************************/
/* Override Fonts to MS YaHei, and can fallback to default */
html * {
font-family: "Microsoft YaHei";
}
.vgrid-table > div:not(.vgrid-cat) ul li {
list-style: none;
}
#p-logo {
background: transparent
}