MediaWiki討論:Gadget-ding.js

由Xiplus在話題編輯請求 2022-09-02上作出的最新留言:1 年前

This covers up important buttons

編輯

@WhitePhosphorus This gadget hides some important links at the top of the page, for example "Login". The gadget should be fixed so that the important links are still visible. Thanks. ESanders (WMF)留言2020年4月26日 (日) 10:55 (UTC)回覆

One option would be to move the notification to the bottom of the page (bottom: 0;) then add some extra bottom margin to .footer so that the footer is not cut off. ESanders (WMF)留言2020年4月26日 (日) 17:52 (UTC)回覆

編輯請求 2022-09-02

編輯

  請求已處理--Xiplus#Talk 2023年2月9日 (四) 07:36 (UTC)回覆

@@ -18,7 +18,7 @@
         if (persist === void 0) { persist = false; }
         if (!document.getElementById("bluedeck_ding")) {
             document.body.insertAdjacentHTML("afterbegin", "<style>#bluedeck_ding button{margin: 0 0.2em; background:transparent; border:0.2em solid white; border-radius: 9em; padding: 0 0.7em; box-sizing: border-box; color: inherit; font-weight: inherit;}#bluedeck_ding button:active{background:rgba(255,255,255,0.6)}</style>");
-            document.body.insertAdjacentHTML("afterbegin", "<div id='bluedeck_ding'></div>");
+            document.body.insertAdjacentHTML("afterbegin", "<div id='bluedeck_ding' class='noprint'></div>");
         }
         if (!document.getElementById("bluedeck_ding_history")) {
             document.body.insertAdjacentHTML("afterbegin", "<div id='bluedeck_ding_history'></div>");

主要是避免這個東西輸出到列印版本中,但考慮到好像用ding的地方都沒什麼需要列印的必要所以直接改這邊了。#bluedeck_ding_history似乎沒有使用因此沒碰。-- Stang 2022年9月2日 (五) 08:49 (UTC)回覆

返回 "Gadget-ding.js" 頁面。