貢獻按鈕(ContribsButtons)將 Special:Contributions 上方的連結欄改造成靈活的 WDS-esque 網格按鈕,相較以往連結式的呈現方式,這個腳本所提供的按鈕加大了尺寸,讓使用者能更容易點擊。
此腳本亦相容SOAP檢舉按鈕(若有安裝),原SOAP檢舉按鈕提供的三個按鈕也會併入網格按鈕內。
安裝方法[]
組態[]
When installing ContribsButtons site-wide or personally on an individual wiki, the following CSS rule can be placed below the import to make the buttons adopt whichever colors are desired:
:root {
--contribs-buttons-background: red;
--contribs-buttons-active-background: green;
}
Simply replace “red” with any color value (hex code, rgb, rgba, et cetera) to specify the inert color, and do the same with “green” to specify the color when hovering or clicking.
變更日誌[]
Date | Description |
---|---|
February 3, 2018 | Initial revision. |
February 5, 2018 | SOAPReportButton color fix.
Padding tweak. |
February 8, 2018 | Rewrote main stylesheet for QuickLogs support. Merged fork into the main stylesheet. |
March 5, 2018 | Added CBD extension. |
March 11, 2018 | Vendor prefixes were corrected.
Font-family & background-image properties were standardized to ignore local user styling. |
March 22, 2018 | A bug in older versions of Safari that caused the buttons to break was fixed. |
September 2, 2018 | Resolved an issue where local CSS usages of !important would override flex display.
|
January 7, 2019 | Added script. |
October 11, 2020 | Last round of UCP support fixes applied to CSS. |