User:Aesulus/common.js: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 20: Line 20:
// the stylesheet
// the stylesheet
const style = document.createElement('style');
const style = document.createElement('style');
style.textContent = `
style.textContent = '\
.mw-wiki-logo {
.mw-wiki-logo {\
background-image: url(https://static.miraheze.org/hololivewiki/c/c5/Nousagi_02.png);
background-image: url(https://static.miraheze.org/hololivewiki/c/c5/Nousagi_02.png);\
}
}\
#pekofyButton {
#pekofyButton {\
filter: drop-shadow(5px 10px 3px gray);
filter: drop-shadow(5px 10px 3px gray);\
}
}\
#pekofyButton:hover circle {
#pekofyButton:hover circle {\
fill: #3584e4;
fill: #3584e4;\
}
}\
#pekofyButton:active {
#pekofyButton:active {\
transform: translateY(5px);
transform: translateY(5px);\
filter: drop-shadow(5px 5px 3px gray);
filter: drop-shadow(5px 5px 3px gray);\
}
}\
#pekofyButton:active circle {
#pekofyButton:active circle {\
fill: #3584e4 !important;
fill: #3584e4 !important;\
}
}\
body:not(.isPeko) #pekofyButtonCircle {
body:not(.isPeko) #pekofyButtonCircle {\
fill: black;
fill: black;\
}
}\
body:not(.isPeko) #pekofyButtonCarrot, body:not(.isPeko) #pekofyButtonStem {
body:not(.isPeko) #pekofyButtonCarrot, body:not(.isPeko) #pekofyButtonStem {\
fill: white;
fill: white;\
}
}';
`
document.body.appendChild(style);
document.body.appendChild(style);