跳转到内容

User:Hat600/script/category-colorcode.css

维基百科,自由的百科全书
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
/**************************************************************/
/* This script is copied from English Wikibooks.              */
/* The original version is available at                       */
/* [[b:en:MediaWiki:Gadget-category-colorcode.css]]           */
/*                                                            */
/* To get a better view, there might be some changes.         */
/*                          EXPERIMENTAL                      */
/**************************************************************/

 #mw-subcategories, #mw-pages { margin:0em; padding:0em; }
 #mw-subcategories h2, #mw-subcategories h3, #mw-pages h2, #mw-pages h3 { text-align:center; border:0px; height:1em; padding:0.5em; }
 #mw-subcategories td, #mw-pages td { width:33%; }
 
 #mw-subcategories table { background:#bcd399; border-spacing:0em; }
 #mw-pages table { background:#9ea9b4; border-spacing:0em; }
 
 #mw-subcategories ul, #mw-pages ul { padding:0px; margin:0em; }
 #mw-subcategories li { background:#ddeecc; list-style:none; padding:0.5em; margin:2px 0em; }
 #mw-subcategories li:hover { background:#ddeeaa; }
 #mw-pages li { background:#ddddff; list-style:none; padding:0.5em; margin:2px 0em; }
 #mw-pages li:hover { background:#ccccff; }
 
 #mw-subcategories a, #mw-pages a { color:#331122; text-decoration:none; font-weight:normal; font-size:125%; }
 #mw-subcategories a:visited, #mw-pages a:visited  { color:#662222; }
 #mw-subcategories li:hover a, #mw-pages li:hover a { font-weight:bold; font-size:100%; }