Skip to content

Instantly share code, notes, and snippets.

@ciencia
Created March 26, 2021 17:43
Show Gist options
  • Save ciencia/f6ba0a35b7e6537a93433e43ffec5fed to your computer and use it in GitHub Desktop.
Save ciencia/f6ba0a35b7e6537a93433e43ffec5fed to your computer and use it in GitHub Desktop.
patch Extension:CookieWarning no reflow
--- resources/ext.CookieWarning/ext.CookieWarning.mobile.less 2021-01-31 17:56:11.917323461 +0100
+++ resources/ext.CookieWarning/ext.CookieWarning.mobile.less 2021-01-31 18:31:15.801560790 +0100
@@ -10,6 +10,13 @@
font-weight: 500;
font-style: normal;
font-stretch: normal;
+ /* WikiDex: Hacer que quede pegado abajo para evitar reflow */
+ position: fixed;
+ bottom: 0;
+ z-index: 999;
+ border-top: 1px solid #ccc;
+ box-shadow: 0px -5px 5px #aaa;
+ /* WikiDex: FIN */
.mw-cookiewarning-cimage {
width: 28px;
@@ -56,3 +63,18 @@
}
}
}
+
+/* WikiDex: Adaptaciones ancho para escritorio */
+@media all and ( min-width: @width-breakpoint-tablet ) {
+ .mw-cookiewarning-container.banner-container {
+ box-sizing: border-box;
+ max-width: 100%;
+ width: 100%;
+ }
+ .mw-cookiewarning-text {
+ max-width: 900px;
+ margin: 0 auto 0 auto;
+ }
+}
+/* WikiDex: FIN */
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment