User:RuzDD/Template:Skip to top and bottom/styles.css
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:RuzDD/Template:Skip to top and bottom/styles. |
/* {{pp-template}} */
#skip-to-top-button,
#skip-to-bottom-button {
position: fixed;
bottom: 8px;
z-index: 50;
box-shadow: 2px 2px 7px rgba(0,0,0,0.25)/*, inset -2px -2px 5px rgba(0,0,0,0.25)*/;
}
#skip-to-top-button:hover,
#skip-to-bottom-button:hover {
filter: brightness(1.05) contrast(1.1);
}
#skip-to-top-button:active,
#skip-to-bottom-button:active {
filter: brightness(0.6) contrast(1.5);
box-shadow: 2px 2px 7px rgba(0,0,0,0.25)/*, inset 2px 2px 5px rgba(0,0,0,0.25)*/;
}
#skip-to-bottom-button {
right: 8px;
}
#skip-to-top-button {
right: 64px;
}
/* Avoid overlapping with Vector 2022 width toggle */
@media (min-width: 1400px) {
body.skin-vector-2022 #skip-to-bottom-button {
right: 68px;
}
body.skin-vector-2022 #skip-to-top-button {
right: 124px;
}
}