MediaWiki:Timeless.css

From Elwiki
Revision as of 18:08, 10 May 2020 by Kenny (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will affect users of the Timeless skin */
/****************************** Extension MenuSidebar Styles ******************************/
/* Allow popup submenus to overflow the sidebar area for the Vector skin */
.sidebar-chunk 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 */
.sidebar-chunk div.body ul li {
    font-size: small !important;
}

/* Allow popup submenus to overflow the sidebar area */
.sidebar-chunk 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";
}


.color-left,
.color-middle,
.color-right {
	background: #add8e6;
}

.mw-body h1.firstHeading,
#mw-page-header-links li.selected,
#mw-content-container {
	border-color: #add8e6;
}

/**************** Sidebar *****/
.sidebar-chunk h3 {
    background-image: none !important;
    padding: 0 0 3px 0 !important;
}

.sidebar-chunk h3,
.sidebar-chunk h3:hover,
.sidebar-chunk h3:active,
.sidebar-chunk h3:link,
.sidebar-chunk h3:visited {
    font-weight: bolder !important;
    text-decoration: none !important;
}

.sidebar-chunk li > ul {
    position: absolute;
    visibility: hidden;
    left: 100%;
    background-color: #fff;
    margin-top: -1em !important;
    margin-left: -10px !important;
    min-width: 200px;
    max-width: 250px;
    opacity: 0;
    -webkit-box-shadow: 10px 10px 10px #ccf;
       -moz-box-shadow: 10px 10px 10px #ccf;
            box-shadow: 10px 10px 10px #ccf;
}

.sidebar-chunk li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.sidebar-chunk ul,
.sidebar-chunk li,
.sidebar-chunk a,
.sidebar-chunk strong.selflink {
    display: block;
}

.sidebar-chunk a,
.sidebar-chunk strong.selflink {
    max-width: 96%;
}

.sidebar-chunk li {
    position: relative;
    font-weight: bold;
    font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
    text-decoration: none;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.sidebar-chunk li:hover {
    -webkit-transform: translateX(10px);
       -moz-transform: translateX(10px);
        -ms-transform: translateX(10px);
         -o-transform: translateX(10px);
            transform: translateX(10px);
}

.sidebar-chunk a,
.sidebar-chunk a:link,
.sidebar-chunk a:visited,
.sidebar-chunk a:hover,
.sidebar-chunk a:active,
.sidebar-chunk strong.selflink {
    text-decoration: none;
    color: #000 !important;
}

.sidebar-chunk a:before,
.sidebar-chunk a:after,
.sidebar-chunk strong.selflink:before,
.sidebar-chunk strong.selflink:after {
    color: #07a3d7;
    margin: auto 3px;
}

.sidebar-chunk a:before,
.sidebar-chunk strong.selflink:before {
    content: '>';
}

.sidebar-chunk a:after,
.sidebar-chunk strong.selflink:after {
    content: '<';
    visibility: hidden;
    -webkit-transform: translateX(15px);
       -moz-transform: translateX(15px);
        -ms-transform: translateX(15px);
         -o-transform: translateX(15px);
            transform: translateX(15px);
}

.sidebar-chunk a:hover:after,
.sidebar-chunk strong.selflink:hover:after {
    visibility: visible;
    -webkit-transform: translateX(0px);
       -moz-transform: translateX(0px);
        -ms-transform: translateX(0px);
         -o-transform: translateX(0px);
            transform: translateX(0px);
}

.sidebar-chunk strong.selflink {
    color: #07a3d7 !important;
    border-bottom: 2px #07a3d7 solid;
}

.sidebar-chunk a:after,
.sidebar-chunk strong.selflink:after,
.sidebar-chunk li {
    -webkit-transition: transform .3s;
       -moz-transition: transform .3s;
         -o-transition: transform .3s;
            transition: transform .3s;
}

.sidebar-chunk li > ul {
    -webkit-transition: opacity .3s;
       -moz-transition: opacity .3s;
         -o-transition: opacity .3s;
            transition: opacity .3s;
}



/* Remove .mw-body-content stacking context so the tooltip can
   overlap with elements outside content area and be shown properly */
#bodyContentOuter { z-index: auto; }

@media only screen and (max-width: 850px) {
    #AD-Elwiki-Side{
        display: none;
    }
}