Skip to content

Instantly share code, notes, and snippets.

@ciencia
Created July 27, 2021 15:28
Show Gist options
  • Save ciencia/08d3c0811e80040eb2c5fad73dcbcb7d to your computer and use it in GitHub Desktop.
Save ciencia/08d3c0811e80040eb2c5fad73dcbcb7d to your computer and use it in GitHub Desktop.
patch Extension:CookieWarning display delay
--- extensions/CookieWarning/resources/ext.CookieWarning/ext.CookieWarning.less 2021-07-27 13:47:14.732034066 +0000
+++ extensions/CookieWarning/resources/ext.CookieWarning/ext.CookieWarning.less 2021-07-27 15:24:20.621631670 +0000
@@ -9,6 +9,7 @@
z-index: 1999;
display: flex;
justify-content: center;
+ animation: mw-cookiewarning-fadein 3s; // WikiDex: delay display
// Narrow mobile screens
// 550px is a mostly arbitrary number, though it's used by a few other exts and skins
@@ -36,3 +37,11 @@
}
}
}
+
+// WikiDex: delay display
+@keyframes mw-cookiewarning-fadein {
+ 0% { opacity: 0; }
+ 80% { opacity: 0; }
+ 100% { opacity: 1; }
+}
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment