MediaWiki:Vector.less

From RuneScape Classic Wiki
Jump to: navigation, search
/* ========================================================
     CSS placed here will affect users of the Vector skin.
     
     Only CSS that affects parts of the interface outside of
     the content area (.mw-body) should be here; everything
     else should be at [[MediaWiki:Common.less]].
   ======================================================== */

@vector-background: darken( @alabaster, 1% );

/* ----------------
       imports
   ---------------- */

@import 'MediaWiki:Common.less/variables.less';

/* ----------------
         less
   ---------------- */

/* logo */
#p-logo {
    height: 100px;
    margin-bottom: 2.5em;

    a {
    	height: 100px;
    }

}

/* background image */
body {
    background: url('filepath://RuneScape_Wiki_background.png?width=1000') #153e13 top left no-repeat;

    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    	background-image: url('filepath://RuneScape_Wiki_background.png');
    	background-size: 1000px 250px;
    }

}

#mw-page-base {
    background: none;
}

/* sidebar */
div#mw-panel {
    padding-top: 2.5em;

    div.portal h3 {
        font-weight: bold;
        color: white;
    }

    div.portal div.body {
        background: none;
        margin-right: 0.5em;
    }

}

// separate from other links because they are light on dark
#mw-panel .portal .body li a,
#footer a {
	color: #b2dac1;

	&:visited {
		color: #b2dac1;
	}

}

#p-personal a.new {
	color: #fc6f6f;

	&:visited {
		color: #fc6f6f;
	}

}

/* article area */
.mw-body {
    border-color: transparent;
    box-shadow: 0 .25em .6em -0.15em rgba(0,0,0,0.15);
    margin-top: 0;
}

/* border around tabs */
div.vectorTabs,
div.vectorTabs ul,
div#mw-head div.vectorMenu h3 {
    background: @vector-background;
}

/* selected tab */
div.vectorTabs li.selected {
    background: @content-bg;
}

/* hide "read" tab */
#ca-view {
    display: none;
}

/* notifications bell */
#pt-notifications-alert .mw-echo-notifications-badge:before {
    background-size: 75%;
    background-position: center 80%;
}

/* notifications mailbox */
#pt-notifications-notice .mw-echo-notifications-badge:before {
    background-size: 80%;
    background-position: center 90%;
}

/* tabs at the top */
div.vectorTabs {

    /* background */
    ul li {
        background: @vector-background;

        &:hover a {
            text-decoration: none;
        }

    }

    /* padding */
    li a {
        padding: 0 .75em;
    }

    /* remove borders between tabs */
    span {
        background: none;

        /* move tab text up */
        a {
            padding-top: 1em;
            height: 2.25em;
        }

    }

}

/* tab hover */
div.vectorTabs ul li:not(.selected):hover,
div#mw-head div.vectorMenu h3:hover,
/* for the "More" dropdown */
#p-cactions:hover #p-cactions-label {
    background: lighten( @vector-background, 1.5% );
}

/* inner shadow for tabs */
div.vectorTabs ul li:not(.selected),
div#mw-head div.vectorMenu h3 {
    box-shadow: inset 0 -7px 7px -7px rgba(0,0,0,.15);
}

/* remove remaining blue border in VisualEditor */
.ve-activated .vectorTabs .selected {
	box-shadow: none;
}

/* "More" dropdown */
div.vectorMenu {
    line-height: initial;

    h3 span {
        padding-top: 1.1em;
    }

    /* dropdown */
    h3 a {
        height: 2.2em;
    }

    div.menu {
        border: 1px solid #ddd;
        box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
    }

}

#p-cactions-label {
    padding-right: .5em;
}

/* watch star */
#ca-unwatch.icon a,
#ca-watch.icon a {
    padding-top: 2.95em;
}

/* search bar */
#p-search {
    margin: 0;

    form {
        margin-top: 0;
    }

}

div#simpleSearch {
    border: none;
    background: @white;
    height: 2.485em;
    margin-top: 0;
    box-shadow: inset 0 -7px 7px -7px rgba(0,0,0,.15);

    /* search text */
    #searchInput {
        font-family: @sans-serif-stack;
        padding: 1em 0 0 .75em;
    }

    /* magnifying glass */
    #searchButton {
        width: 2.5em;
    }

}

/* sitenotice */
#siteNotice {
    text-align: center;
    margin: .75em 0 1em;
}

.sitedir-ltr .mw-dismissable-notice-body {
    margin: 0;
}

/* space between edit box and mediawiki warnings */
form#editform {
    margin-top: 1.25em;
}

/* buttons */
.button {
	background: #438ab5;
    border: 1px solid #2a83bb;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    height: 19px;
    line-height: 20px;
    padding: 0 10px;
}

/* hide certain links in sidebar tools */
#t-specialpages,
#t-recentchangeslinked,
#t-print,
#t-permalink {
	display: none;
}

// top personal links
#p-personal {
	background: fade( @content-bg, 80% );
	border-radius: 0 0 0 .3em;
	top: 0;
	right: 0;
	height: 30px;

	ul {
		padding: .15em 1em 0 .4em;
	}

}

// footer
#footer ul li {
	color: white;
}

/* [[Forum:Add a better Discord link to the sidebar]] */

#n-Discord a {
    color: white !important;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #5e76c6;
    background-color: #7289da;

    display: block;
    position: relative;
    padding: 4px 0 5px calc(17px + 6.5px * 2); // width of icon + padding on either side
    box-shadow: 0 2px 3px rgba(0, 0, 0, .1);
    transition: .2s ease;

    &::before {
        content: 'Chat on ';
        font-weight: normal;
        opacity: .85;
    }

    &::after {
        content: '';
        background: url('filepath://Discord_icon.png') no-repeat;
        background-size: 17px 13px;
        filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .1));

        position: absolute;
        top: 5px;
        left: 7px;
        width: 17px;
        height: 13px;
    }

    &:hover {
        text-decoration: none;
        background-color: #6980d1;
    }

}

.wgl-darkmode #n-Discord a {
    background-color: #586ebb;

    &:hover {
        background-color: #5166b0;
    }

}