MediaWiki:Common.less/vectorsidebar.less

From Old School RuneScape Wiki
Jump to: navigation, search
/* sidebar */
div#mw-panel {
    padding-top: 2.5em;
}

div#mw-panel div.portal h3 {
    font-weight: bold;
}

div#mw-panel div.portal div.body {
    background: 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 #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;
    }

}