MediaWiki:Vector.less

De RuneScape Wiki
Ir para navegação Ir para pesquisar
/* ========================================================
     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/variaveis.less';

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

/* logo */
#p-logo {
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.25));
    margin: -1.5em 0 1.5em;
        
    a {
    	background-size: contain;
    }
}

/* background image */
body {
    background: url(//pt.runescape.wiki/images/0/0f/Wiki_background.jpg?11111) @vector-background top left no-repeat;

    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    	background-image: url(//pt.runescape.wiki/images/0/0f/Wiki_background.jpg?11111);
    	background-size: 1000px 250px;
    }

}

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

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

    .vector-menu-portal h3 {
        font-weight: bold;
        background-image: none;
    }

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

}

/* 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 */
nav.vector-menu-tabs,
nav.vector-menu-tabs ul {
    padding: 0;
}

div#mw-head nav.vector-menu h3 {
    background: @vector-background;
}

/* selected tab */
nav.vector-menu-tabs li.selected {
    background: @content-bg;
}

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

#pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge {
    background-size: 75%;
    background-position: center 90%;
    background-repeat: no-repeat;
}

/* tabs at the top */
nav.vector-menu-tabs {

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

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

    }

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

    /* remove borders between tabs */
    a {
        background-image: none;
    }

}

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

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

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

/* "More" dropdown */
nav.vector-menu {
    line-height: initial;
    
    h3 {
        padding-top: 1em;
        
        &:after {
            margin-bottom: 0.4em;
        }
    }

    /* 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;
}

/* 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;
		height: 100%;
	    border: none;
	    background: none;
	    padding-left: 1em;
    }
 
	#searchInput:focus, &:hover #searchInput:focus {
		border: none;
		box-shadow: none;
	}

    /* 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;
}

/* [[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 #4b56d0;
    background-color: #5865F2;

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

    &::before {
        content: 'Falar no ';
        font-weight: normal;
        opacity: .85;
    }

    &::after {
        content: '';
        background: url('filepath://Ícone Discord.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: #525ee0;
    }
}