mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-13 17:49:25 +00:00
feat: only use smooth scroll in larger viewport
This commit is contained in:
parent
3e217def6e
commit
e9b5ec5575
|
@ -253,11 +253,6 @@ video {
|
|||
max-width: 100%; // Prevent overflow
|
||||
}
|
||||
|
||||
html.citizen-animations-ready {
|
||||
// So that the delay scroll animation won't happen on load
|
||||
scroll-behavior: smooth; // not supported by IE, Edge, Safari, and Opera, use JQuery as fallback
|
||||
}
|
||||
|
||||
.skin-citizen-dark {
|
||||
.mw-editsection > a:before {
|
||||
filter: invert( 1 );
|
||||
|
@ -272,4 +267,11 @@ html.citizen-animations-ready {
|
|||
table {
|
||||
display: table;
|
||||
}
|
||||
|
||||
// Delay scroll animation won't happen on load
|
||||
// Use it only for larger viewport as it is very costly
|
||||
// on mobile devices
|
||||
html.citizen-animations-ready {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue